A finiteVolume patch using a polyPatch and a fvBoundaryMesh. More...
Public Types | |
typedef fvBoundaryMesh | BoundaryMesh |
Public Member Functions | |
TypeName (polyPatch::typeName_()) | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, fvPatch, polyPatch,(const polyPatch &patch, const fvBoundaryMesh &bm),(patch, bm)) | |
fvPatch (const polyPatch &, const fvBoundaryMesh &) | |
Construct from polyPatch and fvBoundaryMesh. More... | |
fvPatch (const fvPatch &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~fvPatch () |
Destructor. More... | |
const polyPatch & | patch () const |
Return the polyPatch. More... | |
virtual const word & | name () const |
Return name. More... | |
virtual label | start () const |
Return start label of this patch in the polyMesh face list. More... | |
virtual label | size () const |
Return size. More... | |
virtual bool | coupled () const |
Return true if this patch is coupled. More... | |
label | index () const |
Return the index of this patch in the fvBoundaryMesh. More... | |
const fvBoundaryMesh & | boundaryMesh () const |
Return boundaryMesh reference. More... | |
const objectRegistry & | db () const |
Return the local object registry. More... | |
template<class T > | |
const List< T >::subList | patchSlice (const List< T > &l) const |
Slice list to patch. More... | |
virtual const labelUList & | faceCells () const |
Return faceCells. More... | |
const vectorField & | Cf () const |
Return face centres. More... | |
tmp< vectorField > | Cn () const |
Return neighbour cell centres. More... | |
const vectorField & | Sf () const |
Return face area vectors. More... | |
const scalarField & | magSf () const |
Return face area magnitudes. More... | |
tmp< vectorField > | nf () const |
Return face normals. More... | |
virtual tmp< vectorField > | delta () const |
Return cell-centre to face-centre vector. More... | |
const scalarField & | weights () const |
Return patch weighting factors. More... | |
virtual const scalarField & | deltaCoeffs () const |
Return the face - cell distance coefficient. More... | |
template<class Type > | |
tmp< Field< Type > > | patchInternalField (const UList< Type > &) const |
Return given internal field next to patch as patch field. More... | |
template<class Type > | |
void | patchInternalField (const UList< Type > &, Field< Type > &) const |
Return given internal field next to patch as patch field. More... | |
template<class GeometricField , class Type > | |
const GeometricField::Patch & | patchField (const GeometricField &) const |
Return the corresponding patchField of the named field. More... | |
template<class GeometricField , class Type > | |
GeometricField::Patch & | patchField (GeometricField &) const |
Return the corresponding patchField reference of the named field. More... | |
template<class GeometricField , class Type > | |
const GeometricField::Patch & | lookupPatchField (const word &name) const |
Lookup and return the patchField of the named field from the. More... | |
void | operator= (const fvPatch &)=delete |
Disallow default bitwise assignment. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | patchInternalField (const UList< Type > &f) const |
Static Public Member Functions | |
static autoPtr< fvPatch > | New (const polyPatch &, const fvBoundaryMesh &) |
Return a pointer to a new patch created on freestore from polyPatch. More... | |
static bool | constraintType (const word &pt) |
Return true if the given type is a constraint type. More... | |
static wordList | constraintTypes () |
Return a list of all the constraint patch types. More... | |
Protected Member Functions | |
virtual void | makeWeights (scalarField &) const |
Make patch weighting factors. More... | |
virtual void | initMovePoints () |
Initialise the patches for moving points. More... | |
virtual void | movePoints () |
Correct patches after moving points. More... | |
Friends | |
class | fvBoundaryMesh |
class | surfaceInterpolation |
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
typedef fvBoundaryMesh BoundaryMesh |
fvPatch | ( | const polyPatch & | p, |
const fvBoundaryMesh & | bm | ||
) |
Construct from polyPatch and fvBoundaryMesh.
|
protectedvirtual |
Make patch weighting factors.
Reimplemented in coupledFvPatch, processorFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalCyclicFvPatch, and cyclicFvPatch.
|
protectedvirtual |
|
protectedvirtual |
TypeName | ( | polyPatch::typeName_() | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
fvPatch | , | ||
polyPatch | , | ||
(const polyPatch &patch, const fvBoundaryMesh &bm) | , | ||
(patch, bm) | |||
) |
|
static |
Return a pointer to a new patch created on freestore from polyPatch.
Definition at line 31 of file fvPatchNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, Foam::nl, and fvPatch::patch().
Referenced by fvMeshAdder::add(), fvMesh::addPatch(), and fvMesh::swap().
|
inline |
Return the polyPatch.
Definition at line 140 of file fvPatch.H.
Referenced by Foam::levelSetFraction(), fvPatch::New(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), and regionSizeDistribution::write().
|
inlinevirtual |
Return name.
Definition at line 146 of file fvPatch.H.
References patchIdentifier::name().
Referenced by advectiveFvPatchField< Type >::advectiveFvPatchField(), fvMeshStitcher::connect(), cyclicFvPatchField< Type >::cyclicFvPatchField(), genericFvPatchField< Type >::genericFvPatchField(), FvFaceCellWave< Type, TrackingData >::handleCyclicPatches(), FvFaceCellWave< Type, TrackingData >::handleProcPatches(), processorCyclicFvPatchField< Type >::processorCyclicFvPatchField(), processorFvPatchField< Type >::processorFvPatchField(), symmetryFvPatchField< Type >::symmetryFvPatchField(), symmetryPlaneFvPatchField< Type >::symmetryPlaneFvPatchField(), coupledTemperatureFvPatchScalarField::updateCoeffs(), wedgeFvPatchField< Type >::wedgeFvPatchField(), wallHeatFlux::write(), wallHeatTransferCoeff::write(), wallShearStress::write(), and yPlus::write().
|
inlinevirtual |
Return start label of this patch in the polyMesh face list.
Reimplemented in nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, and nonConformalCyclicFvPatch.
Definition at line 152 of file fvPatch.H.
References polyPatch::start().
Referenced by CentredFitSnGradData< Polynomial >::calcFit(), extendedFaceToCellStencil::collectData(), extendedCellToFaceStencil::collectData(), fvMeshStitcher::conformalNccBoundaryField(), pointLinear< Type >::correction(), fvMeshStitcher::getOrigNccMagSfb(), fvMeshSubset::interpolate(), fvMeshStitcher::nonConformalBoundaryField(), inversePointDistanceDiffusivity::operator()(), fvPatch::patchSlice(), constSolidThermo::readProperty(), extendedCellToFaceStencil::weightedSum(), and extendedUpwindCellToFaceStencil::weightedSum().
|
inlinevirtual |
Return size.
Reimplemented in nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, nonConformalCyclicFvPatch, and emptyFvPatch.
Definition at line 158 of file fvPatch.H.
Referenced by fvMeshStitcher::conformalNccBoundaryField(), fvMeshStitcher::getOrigNccMagSfb(), FvFaceCellWave< Type, TrackingData >::handleCyclicPatches(), FvFaceCellWave< Type, TrackingData >::handleProcPatches(), fvMeshSubset::interpolate(), Foam::levelSetFraction(), fvPatch::patchInternalField(), fvPatch::patchSlice(), PatchCollisionDensity< CloudType >::preEvolve(), and radiationCoupledBase::radiationCoupledBase().
|
inlinevirtual |
Return true if this patch is coupled.
Reimplemented in processorFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalCyclicFvPatch, and coupledFvPatch.
Definition at line 164 of file fvPatch.H.
References polyPatch::coupled().
Referenced by Foam::fvc::smooth(), Foam::fvc::spread(), Foam::fvc::sweep(), and fvMeshStitcher::synchronisedBoundaryField().
|
static |
|
static |
Return a list of all the constraint patch types.
Definition at line 67 of file fvPatch.C.
References List< T >::setSize().
|
inline |
Return the index of this patch in the fvBoundaryMesh.
Definition at line 176 of file fvPatch.H.
References patchIdentifier::index().
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), epsilonWallFunctionFvPatchScalarField::calculate(), omegaWallFunctionFvPatchScalarField::calculate(), FvFaceCellWave< Type, TrackingData >::checkCyclic(), fvMeshStitcher::connect(), cyclicFvsPatchField< Type >::cyclicFvsPatchField(), filmFvPatch::deltaCoeffs(), radiationCoupledBase::emissivity(), emptyFvsPatchField< Type >::emptyFvsPatchField(), FvFaceCellWave< Type, TrackingData >::getChangedPatchFaces(), internalFvsPatchField< Type >::internalFvsPatchField(), MRFPatchField::makeAbsolute(), MRFPatchField::makeRelative(), nonConformalProcessorCyclicFvPatch::makeWeights(), FvFaceCellWave< Type, TrackingData >::mergeFaceInfo(), nonConformalCyclicFvsPatchField< Type >::nonConformalCyclicFvsPatchField(), nonConformalErrorFvsPatchField< Type >::nonConformalErrorFvsPatchField(), processorCyclicFvsPatchField< Type >::processorCyclicFvsPatchField(), processorFvsPatchField< Type >::processorFvsPatchField(), symmetryFvsPatchField< Type >::symmetryFvsPatchField(), symmetryPlaneFvsPatchField< Type >::symmetryPlaneFvsPatchField(), fWallFunctionFvPatchScalarField::updateCoeffs(), kLowReWallFunctionFvPatchScalarField::updateCoeffs(), v2WallFunctionFvPatchScalarField::updateCoeffs(), and wedgeFvsPatchField< Type >::wedgeFvsPatchField().
|
inline |
Return boundaryMesh reference.
Definition at line 182 of file fvPatch.H.
Referenced by filmFvPatch::deltaCoeffs(), nonConformalProcessorCyclicFvPatch::makeWeights(), cyclicFvPatch::nbrPatch(), cyclicFvPatch::neighbFvPatch(), nonConformalFvPatch::origPatch(), processorCyclicFvPatch::referPatch(), timeVaryingMappedFvPatchField< Type >::time(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), and activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs().
const Foam::objectRegistry & db | ( | ) | const |
Slice list to patch.
Definition at line 192 of file fvPatch.H.
References fvPatch::size(), and fvPatch::start().
Referenced by domainDecomposition::procFaceAddressingBf().
|
virtual |
Return faceCells.
Reimplemented in nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, nonConformalCyclicFvPatch, emptyFvPatch, and coupledFvPatch.
Definition at line 99 of file fvPatch.C.
Referenced by nearWallFields::calcAddressing(), epsilonWallFunctionFvPatchScalarField::calculate(), omegaWallFunctionFvPatchScalarField::calculate(), epsilonWallFunctionFvPatchScalarField::calculateTurbulenceFields(), omegaWallFunctionFvPatchScalarField::calculateTurbulenceFields(), LRR< BasicMomentumTransportModel >::correct(), SSG< BasicMomentumTransportModel >::correct(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), pointLinear< Type >::correction(), coupledFvPatch::faceCells(), omegaWallFunctionFvPatchScalarField::manipulateMatrix(), inversePointDistanceDiffusivity::operator()(), fvPatch::patchInternalField(), Foam::fvc::smooth(), Foam::fvc::spread(), Foam::fvc::sweep(), fWallFunctionFvPatchScalarField::updateCoeffs(), kLowReWallFunctionFvPatchScalarField::updateCoeffs(), omegaWallFunctionFvPatchScalarField::updateCoeffs(), and v2WallFunctionFvPatchScalarField::updateCoeffs().
const Foam::vectorField & Cf | ( | ) | const |
Return face centres.
Definition at line 105 of file fvPatch.C.
Referenced by nearWallFields::calcAddressing(), and nonConformalProcessorCyclicFvPatch::makeWeights().
Foam::tmp< Foam::vectorField > Cn | ( | ) | const |
Return neighbour cell centres.
Definition at line 111 of file fvPatch.C.
References forAll, and tmp< T >::ref().
const Foam::vectorField & Sf | ( | ) | const |
Return face area vectors.
Definition at line 136 of file fvPatch.C.
Referenced by cyclicFvPatch::makeWeights(), nonConformalCyclicFvPatch::makeWeights(), nonConformalProcessorCyclicFvPatch::makeWeights(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), and activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs().
const Foam::scalarField & magSf | ( | ) | const |
Return face area magnitudes.
Definition at line 142 of file fvPatch.C.
Referenced by activeBaffleVelocityFvPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), and outletMappedUniformInletFvPatchField< Type >::updateCoeffs().
Foam::tmp< Foam::vectorField > nf | ( | ) | const |
Return face normals.
Definition at line 130 of file fvPatch.C.
Referenced by nearWallFields::calcAddressing(), dynamic::cosTheta(), and nonConformalCoupledFvPatch::makeWeights().
|
virtual |
Return cell-centre to face-centre vector.
except for coupled patches for which the cell-centre to coupled-cell-centre vector is returned
Reimplemented in coupledFvPatch, processorFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, nonConformalCyclicFvPatch, and cyclicFvPatch.
const Foam::scalarField & weights | ( | ) | const |
|
virtual |
Return the face - cell distance coefficient.
except for coupled patches for which the cell-centre to coupled-cell-centre distance coefficient is returned
Reimplemented in filmFvPatch.
Definition at line 170 of file fvPatch.C.
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), filmFvPatch::deltaCoeffs(), and filmSurfaceVelocityFvPatchVectorField::updateCoeffs().
Return given internal field next to patch as patch field.
Return given internal field next to patch as patch field.
Definition at line 52 of file fvPatchTemplates.C.
References f(), forAll, and List< T >::setSize().
const GeometricField::Patch & patchField | ( | const GeometricField & | gf | ) | const |
Return the corresponding patchField of the named field.
Definition at line 70 of file fvPatchTemplates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField().
GeometricField::Patch & patchField | ( | GeometricField & | gf | ) | const |
Return the corresponding patchField reference of the named field.
Definition at line 80 of file fvPatchTemplates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef().
const GeometricField::Patch & lookupPatchField | ( | const word & | name | ) | const |
Lookup and return the patchField of the named field from the.
local objectRegistry.
Definition at line 90 of file fvPatchTemplates.C.
References Foam::name().
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), temperatureDependent::cosTheta(), filmSurfaceVelocityFvPatchVectorField::updateCoeffs(), mappedFlowRateVelocityFvPatchVectorField::updateCoeffs(), and coupledTemperatureFvPatchScalarField::updateCoeffs().
|
delete |
Disallow default bitwise assignment.
Foam::tmp<Foam::Field<Type> > patchInternalField | ( | const UList< Type > & | f | ) | const |
Definition at line 32 of file fvPatchTemplates.C.
References f(), fvPatch::faceCells(), forAll, tmp< T >::ref(), and fvPatch::size().
|
friend |
|
friend |