-
Notifications
You must be signed in to change notification settings - Fork 67
fix: modeling solidification workflow and image #4830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8d47b46
ce793aa
6773e64
2fdca28
3ddd50d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Modeling solidification workflow and image |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,6 +93,7 @@ | |
| Methods, | ||
| Results, | ||
| RunCalculation, | ||
| Scene, | ||
| Setup, | ||
| Solution, | ||
| VelocityInlet, | ||
|
|
@@ -346,7 +347,10 @@ | |
| "option": "auto-range-off", | ||
| "auto_range_off": {"clip_to_range": True, "minimum": 1100, "maximum": 1200}, | ||
| } | ||
| mushy_temp.display() | ||
| scene = Scene(solver, new_instance_name="scene-1") | ||
| scene.graphics_objects.add(name="mesh-1") | ||
| scene.graphics_objects.add(name="temperature-mushy") | ||
|
MohammedAnsys marked this conversation as resolved.
|
||
| scene.display() | ||
|
|
||
| graphics.views.restore_view(view_name="front") | ||
| graphics.views.auto_scale() | ||
|
|
@@ -365,6 +369,7 @@ | |
| # %% | ||
| # Enable transient flow and heat transfer | ||
| # --------------------------------------- | ||
| solver.settings.file.read_case_data(file_name="steady_state") | ||
| solver_general_settings.solver.time = "unsteady-1st-order" # First-order implicit | ||
|
Comment on lines
+372
to
373
|
||
|
|
||
| controls.equations = {"flow": True, "w-swirl": True} | ||
|
|
@@ -400,7 +405,9 @@ | |
| solutions.run_calculation.calculate() | ||
|
|
||
| # Liquid fraction at t = 5.0 s | ||
| liquid_fraction_contour_t_5_sec = Contour(solver, new_instance_name="liquid-fraction") | ||
| liquid_fraction_contour_t_5_sec = Contour( | ||
| solver, new_instance_name="liquid-fraction_t_5_sec" | ||
| ) | ||
|
|
||
| liquid_fraction_contour_t_5_sec.field = "liquid-fraction" | ||
| liquid_fraction_contour_t_5_sec.display() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.