Fluid Film condensation and evaporation simulations are prone to divergence or Floating Point Exception if the thermodynamic settings are not chosen properly. This article aims to help users identify and resolve the most common problems that can lead to such issues.
Attachments: | createRelativeHumidityFF.java (28 KB) |
This Best-Practice has improved many simulations but there are likely limitations.
Most tested applications came from home appliances with water/air systems.
Please contact your DSE if you find issues with these settings.
Symbols used in this document:
The fluid film model uses shell regions for the meshing. As shells are defined on a boundary the quality of the boundary mesh is important for good fluid film convergence.
If very bad quality boundary cells cannot be avoided one may use the remove invalid cells on the fluid region. This will automatically remove the shell cells adjacent to the bad quality volume cell.
In fluid film evaporation/condensation cases the heat transfer is always important and often CHT is considered. Thus, all best practices for CHT meshing apply for the best heat flux (and mass transfer) approximation. Low y+ meshes are preferred for this reason.
If simulation speed is of high importance - especially for long simulations (minutes, hours) - high y+ meshing can be a good way to go. The convergence can be better and cell count is reduced leading to faster run times while keeping reasonable results.
Select Fluid Film Models as shown on the right.
The physics needs to use multi-component gas. Air and H2O (Steam) is used here but can be changed. The Fluid Film has to use multi-component liquid with H2O.
When setting up evaporation/condensation cases it is often necessary to define the relative humidity for the environment.
This can be calculated by hand and set using the mass or mole fraction setting on open boundaries.
For some applications there are special walls that can be considered as always wet or dry. For these the film thickness should be neglected.
An 'always wet wall' can be any water surface like puddles, free water surfaces. This wall is considered never to dry out, hence it is not necessary to keep track of the film thickness.
Many cooled walls for humidity removal are designed to let the film drain. Therefore, the wall remains mostly dry or only droplets remain on the wall. If a wall is always cooled below the dew point it can be beneficial to not consider the actual film thickness.
In transient simulations always check for convergence in each time step.
The relevant quantities on the film should converge asymptotically to one value. You could check Temperatures, Relative Humidities or the Evaporation Rate. In this example you can see how the evaporation rate is not perfectly asymptotic at 0.6 seconds, but looks good at 1 second.
Many of the above mentioned settings influence the time-step convergence. The most important ones are listed below.
Play around until you find a good compromise.
The main driver for evaporation and condensation is the relative humidity in the air. Above 100% relative humidity condensation should occur.
As there is no 'humid air' material in Simcenter STAR-CCM+ using fluid film, there is unfortunately no special built-in function for relative humidity.
The attached java macro creates partial pressure and relative humidity field functions for water - air. The Antoine coefficients are set up using global parameters, so the method can easily be adapted for different materials.
The units %, per cent, is also created. You can choose these units for any value/function with an empty dimension - changing 0.01 to 1 %.
As described above, the macro also sets up the 'Env RH Mole Fraction Water' parameter to be used in boundary conditions.
With the settings described in this document Time Step sizes of 0.2-2 seconds are possible.
Smaller time step sizes are expected to be needed, though. Especially when the evaporation rate changes a lot, a smaller time step is necessary. A reason could be changing thermal boundary conditions or simply the start of the simulation.