Injection of mass directly in the volume (based on mass source terms) can be defined for selected volume zones. The mass conservation equation is then modified as follows:
Γ is the mass source term expressed in kg.m-3.s-1.
The presence of a mass source term modifies the evolution equation of the other variables, too. Let be any solved variable apart from the pressure (velocity component, turbulent energy, dissipation, scalar, ...). Its evolution equation becomes:
is the value of
associated to the mass entering or leaving the domain. After discretization, the equation may be written:
Mass source terms can be defined using the cs_equation_add_volume_mass_injection
series of functions in cs_user_finalize_setup. The value assigned to the pressure variable is the mass injection rate.
For each other variable , there are two possibilities:
For the variance, do not take into account the scalar in the environment where
generates a variance source.
Examples of data settings for volume mass injection
Further details and examples in the linked example page above.