๐ŸŒก๏ธ Condensation UDF

This UDF simulates vapor โ†’ liquid transformation when the local temperature is below saturation. It handles mass transfer and energy release due to condensation in multiphase cells.

  • ๐Ÿ’ง Phase Transition: Vapor โ†’ Liquid
  • ๐ŸงŠ Condition: Triggers when T < Tsat
  • โšก Energy Logic: Releases latent heat into the system
  • ๐Ÿ“ Interface Detection: Based on volume fraction of each phase
  • ๐Ÿ” Reset: Clears memory at end of timestep
Condensation UDF

๐Ÿ”ฅ Evaporation UDF

This UDF models liquid โ†’ vapor transition when temperatures rise above saturation. It simulates energy absorption and mass loss due to boiling or heating.

  • ๐Ÿ”ฅ Phase Transition: Liquid โ†’ Vapor
  • ๐ŸŒก๏ธ Condition: Triggers when T > Tsat
  • โ„๏ธ Energy Logic: Absorbs latent heat from fluid
  • ๐Ÿง  Interface Check: Targets multiphase interface cells
  • ๐Ÿงน Cleanup: Resets UDMs at each timestep
Evaporation UDF

โ™ป๏ธ Combined Phase Change UDF

A single UDF that handles both condensation and evaporation based on whether T is above or below Tsat.

  • โ™ป๏ธ Phase Transition: Vapor โ‡„ Liquid
  • ๐Ÿ”€ Condition: Dynamically switches logic based on temp
  • ๐Ÿ“Š Detection: Checks cell VOF + local temperature
  • ๐Ÿ“˜ Use Case: Transient thermal simulations
  • โœ… Bonus: Fully annotated and documented
Combined UDF

๐Ÿงช Comparing UDF Types for Phase Change

Technical breakdown of each UDF and how they behave under various thermal conditions:

๐Ÿ’ง Condensation

Simulates vapor โ†’ liquid when T < Tsat.

  • โœ” Applies latent heat release
  • โœ” Simple and lightweight
  • โœ˜ No evaporation logic

๐Ÿ”ฅ Evaporation

Models liquid โ†’ vapor when T > Tsat.

  • โœ” Absorbs latent heat
  • โœ” Focused on boiling/thermal rise
  • โœ˜ No condensation behavior

โ™ป๏ธ Combined

Switches between both modes depending on temperature.

  • โœ” Fully dynamic (bi-directional)
  • โœ” Ideal for full heat cycles
  • ๐Ÿง  Slightly more complex logic