The fvOptions functionality in OpenFOAM is flexible framework to add various source terms to the governing equations without the need to rewrite the original source code. The available options in the latest versions of OpenFOAM (v4.0 and v1606+) are listed below.
My explanations are available for the options shown in red.
I’ll extend the coverage.
General Sources:
Pressure Gradient Sources:
Heat Exchanger Sources:
Buoyancy Sources:
- buoyancyForce:
to add the gravitational force term \(\rho\boldsymbol{g}\) to the momentum conservation equation in XiFoam, reactingFoam and rhoReactingFoam
- buoyancyEnergy:
to add the work done by gravitational force \(\rho(\boldsymbol{u} \cdot \boldsymbol{g})\) to the energy conservation equation
Porosity Sources:
Acceleration Source:
Phase Change Source:
Acoustic Damping Source:
Other Sources:
Solver Robustness:
Set Value:
When specifying a source term using fvOptions in OpenFOAM, we can select the selectionMode (how to set the source region) from the following four options:
- points
- cellSet
- cellZone
- all
The meanings of these options are described in this post.