Class to create the weighting-factors based on the face-flux. More...
#include <finiteVolume/PhiScheme.H>
Class to create the weighting-factors based on the face-flux.
The particular differencing scheme class is supplied as a template argument, the weight function of which is called by the weight function of this class for the internal faces as well as faces of coupled patches (e.g. processor-processor patches). The weight function is supplied with the central-differencing weighting factor, the face-flux, the face neighbour cell values and the face area.
This code organisation is both neat and efficient, allowing for convenient implementation of new schemes to run on parallelised cases.
Definition at line 60 of file PhiScheme.H.
Public Member Functions | |
TypeName ("PhiScheme") | |
Runtime type information.
| |
PhiScheme (const fvMesh &mesh, const surfaceScalarField &faceFlux, const PhiLimiter &weight) | |
Construct from mesh, faceFlux and blendingFactor.
| |
PhiScheme (const fvMesh &mesh, Istream &is) | |
Construct from mesh and Istream.
| |
PhiScheme (const fvMesh &mesh, const surfaceScalarField &faceFlux, Istream &is) | |
Construct from mesh, faceFlux and Istream.
| |
virtual tmp< surfaceScalarField > | limiter (const GeometricField< Type, fvPatchField, volMesh > &) const |
Return the interpolation weighting factors.
|
PhiScheme | ( | const fvMesh & | mesh, |
const surfaceScalarField & | faceFlux, | ||
const PhiLimiter & | weight | ||
) | [inline]
|
Construct from mesh, faceFlux and blendingFactor.
Definition at line 84 of file PhiScheme.H.
Construct from mesh and Istream.
The name of the flux field is read from the Istream and looked-up from the mesh objectRegistry
Definition at line 98 of file PhiScheme.H.
PhiScheme | ( | const fvMesh & | mesh, |
const surfaceScalarField & | faceFlux, | ||
Istream & | is | ||
) | [inline]
|
Construct from mesh, faceFlux and Istream.
Definition at line 109 of file PhiScheme.H.
TypeName | ( | "PhiScheme< Type, PhiLimiter >" | ) |
Runtime type information.
tmp< surfaceScalarField > limiter | ( | const GeometricField< Type, fvPatchField, volMesh > & | phi ) | const [virtual]
|
Return the interpolation weighting factors.
Implements limitedSurfaceInterpolationScheme< Type >.
Definition at line 41 of file PhiScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), IOobject::db(), Foam::dimArea, Foam::dimDensity, Foam::dimless, Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, Foam::fvc::interpolate(), PhiLimiter::limiter(), fvMesh::magSf(), mesh, fvMesh::neighbour(), fvMesh::owner(), rho, fvMesh::Sf(), fvMesh::time(), and Time::timeName().