Skip to content

Commit

Permalink
Debug elmer.py, update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arvedes committed Aug 2, 2021
1 parent 314302d commit 3e11c3b
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 243 deletions.
19 changes: 9 additions & 10 deletions examples/2D_crystal_growth/crystal_growth_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,22 @@

###############
# elmer setup
sim = elmer.load_simulation("axi-symmetric_steady", setup_file="./data/simulations.yml")

elmer.data_dir = "./data"

sim = elmer.load_simulation("axi-symmetric_steady")

# materials
tin_solid = elmer.load_material("tin_solid", sim, setup_file="./data/materials.yml")
tin_solid = elmer.load_material("tin_solid", sim)
tin_solid.data.update({"Emissivity": 0.5})
tin_liquid = elmer.load_material("tin_liquid", sim, setup_file="./data/materials.yml")
tin_liquid = elmer.load_material("tin_liquid", sim)
tin_liquid.data.update({"Emissivity": 0.5, "Heat Conductivity": 32.0})
graphite = elmer.load_material(
"graphite_CZ3-R6300", sim, setup_file="./data/materials.yml"
)
graphite = elmer.load_material("graphite_CZ3-R6300", sim)
graphite.data.update({"Emissivity": 0.5, "Heat Conductivity": 236})

# solver, equation
solver_heat = elmer.load_solver("HeatSolver", sim, setup_file="./data/solvers.yml")
solver_output = elmer.load_solver(
"ResultOutputSolver", sim, setup_file="./data/solvers.yml"
)
solver_heat = elmer.load_solver("HeatSolver", sim)
solver_output = elmer.load_solver("ResultOutputSolver", sim)
eqn = elmer.Equation(sim, "main", [solver_heat])

# bodies
Expand Down
Binary file not shown.
Loading

0 comments on commit 3e11c3b

Please sign in to comment.