Cell to surface interpolation scheme. Included in fvMesh. More...
Public Member Functions | |
ClassName ("surfaceInterpolation") | |
surfaceInterpolation (const fvMesh &) | |
Construct given an fvMesh. More... | |
~surfaceInterpolation () | |
Destructor. More... | |
const surfaceScalarField & | weights () const |
Return reference to linear difference weighting factors. More... | |
const surfaceScalarField & | deltaCoeffs () const |
Return reference to cell-centre difference coefficients. More... | |
const surfaceScalarField & | nonOrthDeltaCoeffs () const |
Return reference to non-orthogonal cell-centre difference. More... | |
const surfaceVectorField & | nonOrthCorrectionVectors () const |
Return reference to non-orthogonality correction vectors. More... | |
bool | movePoints () |
Do what is neccessary if the mesh has moved. More... | |
Protected Member Functions | |
void | clearOut () |
Clear all geometry and addressing. More... | |
Private Member Functions | |
void | makeWeights () const |
Construct central-differencing weighting factors. More... | |
void | makeDeltaCoeffs () const |
Construct face-gradient difference factors. More... | |
void | makeNonOrthDeltaCoeffs () const |
Construct face-gradient difference factors. More... | |
void | makeNonOrthCorrectionVectors () const |
Construct non-orthogonality correction vectors. More... | |
Private Attributes | |
const fvMesh & | mesh_ |
surfaceScalarField * | weights_ |
Linear difference weighting factors. More... | |
surfaceScalarField * | deltaCoeffs_ |
Cell-centre difference coefficients. More... | |
surfaceScalarField * | nonOrthDeltaCoeffs_ |
Non-orthogonal cell-centre difference coefficients. More... | |
surfaceVectorField * | nonOrthCorrectionVectors_ |
Non-orthogonality correction vectors. More... | |
Cell to surface interpolation scheme. Included in fvMesh.
Definition at line 52 of file surfaceInterpolation.H.
|
explicit |
Construct given an fvMesh.
Definition at line 56 of file surfaceInterpolation.C.
~surfaceInterpolation | ( | ) |
Destructor.
Definition at line 68 of file surfaceInterpolation.C.
|
private |
Construct central-differencing weighting factors.
Definition at line 136 of file surfaceInterpolation.C.
References GeometricField::boundaryField(), Foam::dimless, Foam::endl(), forAll, GeometricField::internalField(), Foam::mag(), IOobject::NO_READ, IOobject::NO_WRITE, patchi, Foam::Pout, and w().
|
private |
Construct face-gradient difference factors.
Definition at line 204 of file surfaceInterpolation.C.
References GeometricField::boundaryField(), C::C(), Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), IOobject::NO_READ, IOobject::NO_WRITE, patchi, and Foam::Pout.
|
private |
Construct face-gradient difference factors.
Definition at line 252 of file surfaceInterpolation.C.
References GeometricField::boundaryField(), C::C(), delta, Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), Foam::max(), IOobject::NO_READ, IOobject::NO_WRITE, patchi, and Foam::Pout.
|
private |
Construct non-orthogonality correction vectors.
Definition at line 317 of file surfaceInterpolation.C.
References GeometricField::boundaryField(), C::C(), fvsPatchField::coupled(), delta, Foam::dimless, Foam::endl(), forAll, IOobject::NO_READ, IOobject::NO_WRITE, p, fvsPatchField::patch(), patchi, Foam::Pout, and Vector< scalar >::zero.
|
protected |
Clear all geometry and addressing.
Definition at line 45 of file surfaceInterpolation.C.
References Foam::deleteDemandDrivenData(), surfaceInterpolation::deltaCoeffs_, surfaceInterpolation::nonOrthCorrectionVectors_, surfaceInterpolation::nonOrthDeltaCoeffs_, and surfaceInterpolation::weights_.
Referenced by fvMesh::clearOut(), and fvMesh::updateMesh().
ClassName | ( | "surfaceInterpolation" | ) |
const Foam::surfaceScalarField & weights | ( | ) | const |
Return reference to linear difference weighting factors.
Definition at line 77 of file surfaceInterpolation.C.
Referenced by cubic< Type >::correction(), domainDecomposition::distributeCells(), and limitedSurfaceInterpolationScheme< Type >::weights().
const Foam::surfaceScalarField & deltaCoeffs | ( | ) | const |
Return reference to cell-centre difference coefficients.
Definition at line 89 of file surfaceInterpolation.C.
Referenced by CoBlended< Type >::blendingFactor(), CoEulerDdtScheme< Type >::CofrDeltaT(), contactAngleForce::correct(), orthogonalSnGrad< Type >::deltaCoeffs(), and reactingOneDim::solidRegionDiffNo().
const Foam::surfaceScalarField & nonOrthDeltaCoeffs | ( | ) | const |
Return reference to non-orthogonal cell-centre difference.
coefficients
Definition at line 101 of file surfaceInterpolation.C.
Referenced by correctedSnGrad< Type >::deltaCoeffs(), uncorrectedSnGrad< Type >::deltaCoeffs(), faceCorrectedSnGrad< Type >::deltaCoeffs(), CentredFitSnGradScheme< Type, Polynomial, Stencil >::deltaCoeffs(), and limitedSnGrad< Type >::deltaCoeffs().
const Foam::surfaceVectorField & nonOrthCorrectionVectors | ( | ) | const |
Return reference to non-orthogonality correction vectors.
Definition at line 113 of file surfaceInterpolation.C.
bool movePoints | ( | ) |
Do what is neccessary if the mesh has moved.
Definition at line 125 of file surfaceInterpolation.C.
References Foam::deleteDemandDrivenData().
Referenced by fvMesh::movePoints(), dynamicMotionSolverFvMesh::update(), dynamicInkJetFvMesh::update(), multiSolidBodyMotionFvMesh::update(), and solidBodyMotionFvMesh::update().
|
private |
Definition at line 57 of file surfaceInterpolation.H.
|
mutableprivate |
Linear difference weighting factors.
Definition at line 62 of file surfaceInterpolation.H.
Referenced by surfaceInterpolation::clearOut().
|
mutableprivate |
Cell-centre difference coefficients.
Definition at line 65 of file surfaceInterpolation.H.
Referenced by surfaceInterpolation::clearOut().
|
mutableprivate |
Non-orthogonal cell-centre difference coefficients.
Definition at line 68 of file surfaceInterpolation.H.
Referenced by surfaceInterpolation::clearOut().
|
mutableprivate |
Non-orthogonality correction vectors.
Definition at line 71 of file surfaceInterpolation.H.
Referenced by surfaceInterpolation::clearOut().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.