Skip to content

Commit

Permalink
minor update to serial script for paper
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Apr 29, 2024
1 parent 710e126 commit 637c228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/_dev/Paper_scripts/therm_comp_serial.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using LevelSetTopOpt, Gridap

function main()
function main(write_dir)
# FE parameters
order = 1 # Finite element order
xmax,ymax = (1.0,1.0) # Domain size
Expand All @@ -23,7 +23,7 @@ function main()
vf = 0.4 # Volume fraction constraint
lsf_func = initial_lsf(4,0.2) # Initial level set function
iter_mod = 10 # VTK Output modulo
path = "./results/therm_comp_serial/" # Output path
path = "$write_dir/therm_comp_serial/" # Output path
mkpath(path) # Create path
# Model
model = CartesianDiscreteModel(dom,el_size);
Expand Down Expand Up @@ -79,4 +79,4 @@ function main()
"H(φ)"=>(H φh),"|∇(φ)|"=>(norm (φh)),"uh"=>uh])
end

main()
main("results/")

0 comments on commit 637c228

Please sign in to comment.