Creates a cell set pressure gradient source. More...
#include <finiteVolume/pressureGradientExplicitSource.H>
Creates a cell set pressure gradient source.
Note: Currently only handles kinematic pressure
Definition at line 55 of file pressureGradientExplicitSource.H.
Collaboration diagram for pressureGradientExplicitSource:Public Member Functions | |
| pressureGradientExplicitSource (const word &sourceName, volVectorField &U) | |
| Construct from explicit source name and mesh.
| |
| tmp< DimensionedField< vector, volMesh > > | Su () const |
| Return a tmp field of the source.
| |
| void | update () |
| Correct driving force for a constant mass flow rate.
| |
| pressureGradientExplicitSource | ( | const word & | sourceName, |
| volVectorField & | U | ||
| ) |
Construct from explicit source name and mesh.
Definition at line 58 of file pressureGradientExplicitSource.C.
References Foam::endl(), IOstream::good(), Foam::Info, dictionary::lookup(), topoSetSource::NEW, Foam::nl, dictionary::null, propsDict(), and Foam::returnReduce().
| Foam::tmp< Foam::DimensionedField< Foam::vector, Foam::volMesh > > Su | ( | ) | const |
Return a tmp field of the source.
Definition at line 130 of file pressureGradientExplicitSource.C.
References forAllConstIter, IOobject::NO_READ, IOobject::NO_WRITE, and Vector< Cmpt >::zero.
| void update | ( | ) |
Correct driving force for a constant mass flow rate.
Definition at line 162 of file pressureGradientExplicitSource.C.
References Foam::endl(), forAllConstIter, Foam::Info, Foam::mag(), Foam::reduce(), rUA, and Foam::tab.