Skip to content

2D transient CFD simulation of water solidification in a square cavity using ANSYS Fluent. Includes temperature and liquid fraction contours, animations, and mesh visualization.

License

Notifications You must be signed in to change notification settings

CFDBY/Solidification-of-Water-in-a-Square-Cavity-2D-Transient-CFD-Analysis-

Repository files navigation

Solidification-of-Water-in-a-Square-Cavity-2D-Transient-CFD-Analysis-

2D transient CFD simulation of water solidification in a square cavity using ANSYS Fluent. Includes temperature and liquid fraction contours, animations, and mesh visualization.

Solidification of Water in a Square Cavity (2D Transient CFD Analysis)

This project investigates the solidification of water in a small square enclosure using ANSYS Fluent.
The study simulates the freezing process of water under laminar, transient conditions, where cold outer walls drive heat transfer and phase change.


🧊 Geometry and Setup

  • Domain: 2D square cavity
    • Outer square: 0.04 m × 0.04 m
    • Inner square: 0.01 m × 0.01 m (centered)
  • Material: Pure water (from Fluent materials database)
  • Initial temperature (liquid region): 2 °C
  • Wall temperature: −20 °C
  • Gravitational acceleration: 9.81 m/s²
  • Latent heat of fusion: 334,000 J/kg
  • Flow regime: Laminar
  • Simulation type: Transient
  • Number of elements: 494,064
  • Solver: Pressure-based, SIMPLE
  • Pressure discretization: PRESTO!

🧱 Mesh

High-resolution 2D mesh ensuring refined gradients near the inner and outer boundaries.

Mesh


🔥 Boundary and Physical Conditions

  • Cold walls at −20 °C induce solidification starting from boundaries.
  • Gravity considered to capture buoyancy effects.
  • The continuity residual stabilized and remained sufficiently low —
    an acceptable convergence criterion for this type of phase change analysis.

⏱️ Simulation Details

  • Time-dependent (transient) analysis
  • >5000 iterations
  • The simulation duration was limited, so complete solidification was not achieved.
    However, the phase front evolution and temperature distribution clearly represent realistic solidification behavior.

📊 Results and Visualization

Temperature Contour

Cold walls propagate temperature gradients inward, matching expected conduction patterns.

Temperature Contour

Liquid Fraction Contour

Formation of solid regions starts from the walls.
A mushy zone remains in the corners — due to limited simulation time.

Liquid Fraction Contour

Geometry

Geometry

Residuals

Scaled Residuals


🎞️ Animations

Temperature evolution: Temperature Animation

Solidification process: Solidification Animation


💡 Key Observations

  • Heat transfers from the outer cold walls toward the inner liquid region, as expected.
  • Solidification initiates near the boundaries, progressing inward over time.
  • The mushy zone persists at corners due to residual heat and limited simulation time.
  • Despite residual fluctuations, continuity residuals stabilized, validating the transient convergence.
  • The simulation demonstrates the solidification mechanism effectively in small-scale enclosures under natural convection and conduction-driven cooling.

🧮 Conclusion

This CFD study successfully models the freezing of water in a confined cavity.
Even with partial solidification, the temperature gradients, phase interface movement,
and solid growth pattern are in strong agreement with physical expectations.


📂 Files Included

File Description
geometry.png Geometry of the computational domain
mesh_494064.png Mesh visualization
static_temp_cont.png Temperature contour
liquid_Fraction_cont.png Liquid fraction contour
scaled_residuals.png Residuals plot
temperature-animation.gif Temperature evolution animation
solidification-animation.gif Solidification process animation

About

2D transient CFD simulation of water solidification in a square cavity using ANSYS Fluent. Includes temperature and liquid fraction contours, animations, and mesh visualization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published