Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/4830.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modeling solidification workflow and image
Binary file modified doc/source/_static/modeling_solidification_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions examples/00-fluent/Modeling_solidification_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
Methods,
Results,
RunCalculation,
Scene,
Setup,
Solution,
VelocityInlet,
Expand Down Expand Up @@ -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")
Comment thread
MohammedAnsys marked this conversation as resolved.
scene.graphics_objects.add(name="temperature-mushy")
Comment thread
MohammedAnsys marked this conversation as resolved.
scene.display()

graphics.views.restore_view(view_name="front")
graphics.views.auto_scale()
Expand All @@ -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

Copilot AI May 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read_case_data(file_name="steady_state") passes a name without a .cas* extension. In the settings API, the corresponding data filename is inferred by replacing .cas with .dat; without .cas in the name, the case/data arguments can end up identical, which can make Fluent look for the wrong data file. Consider writing/reading with an explicit case filename like steady_state.cas.h5 (so the matching .dat.h5 is derived correctly).

Copilot uses AI. Check for mistakes.

controls.equations = {"flow": True, "w-swirl": True}
Expand Down Expand Up @@ -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()
Expand Down
Loading