A finiteVolume patch using a polyPatch and a fvBoundaryMesh. More...

Public Types | |
| typedef fvMesh | Mesh |
| Mesh type. More... | |
| typedef fvBoundaryMesh | BoundaryMesh |
| Boundary mesh type. More... | |
| typedef faceZone | Zone |
| Zone type. More... | |
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 & | poly () 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 | constraint () const |
| Return true if this patch is a constraint type. 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 objectRegistry & | db () const |
| Return the local object registry. More... | |
| const fvMesh & | mesh () const |
| Return mesh reference. More... | |
| const Time & | time () const |
| Return time. More... | |
| const fvBoundaryMesh & | boundaryMesh () const |
| Return boundaryMesh reference. 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... | |
| const DimensionedField< vector, fvPatch > & | C () const |
| Return dimensioned 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... | |
| tmp< scalarField > | polyFaceFraction () const |
| Return the fraction of the poly-face that each fv-face in this. More... | |
| virtual void | makeWeights (scalarField &) const |
| Make patch weighting factors. 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... | |
| template<class Type > | |
| tmp< DimensionedField< Type, fvPatch > > | lookupField (const word &) const |
| Lookup a dimensioned field for this geometry. More... | |
| void | operator= (const fvPatch &)=delete |
| Disallow default bitwise assignment. More... | |
| const fvMesh & | operator() () const |
| Return reference to fvMesh. More... | |
| template<class Type > | |
| Foam::tmp< Foam::Field< Type > > | patchInternalField (const UList< Type > &f) const |
| template<class Type > | |
| Foam::tmp< Foam::DimensionedField< Type, Foam::fvPatch > > | lookupField (const word &name) 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... | |
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
| typedef fvBoundaryMesh BoundaryMesh |
| fvPatch | ( | const polyPatch & | p, |
| const fvBoundaryMesh & | bm | ||
| ) |
Construct from polyPatch and fvBoundaryMesh.
| 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 DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by fvMeshAdder::add(), fvMesh::addPatch(), and fvMesh::swap().


|
inline |
Return the polyPatch.
Definition at line 129 of file fvPatch.H.
Referenced by Foam::levelSetFraction(), mappedValueFvPatchField< Type >::mappedValueFvPatchField(), fvMeshStitcher::patchCoupleds(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), and regionSizeDistribution::write().

|
inlinevirtual |
Return name.
Definition at line 135 of file fvPatch.H.
References patchIdentifier::name().
Referenced by advectiveFvPatchField< Type >::advectiveFvPatchField(), Foam::checkNonConformalCoupledPatchOrdering(), Foam::checkNonConformalErrorPatchOrdering(), Foam::checkProcMeshesOrdering(), genericFvPatchField< Type >::genericFvPatchField(), mappedFvPatchBaseBase::getMap(), FvFaceCellWave< Type, TrackingData >::handleCyclicPatches(), FvFaceCellWave< Type, TrackingData >::handleProcPatches(), mappedValueFvPatchField< Type >::mappedValueFvPatchField(), processorFvPatchField< Type >::processorFvPatchField(), surfaceFieldValue::read(), coupledTemperatureFvPatchScalarField::updateCoeffs(), wallHeatFlux::write(), wallHeatTransferCoeff::write(), wallShearStress::write(), and yPlus::write().


|
inlinevirtual |
Return start label of this patch in the polyMesh face list.
Reimplemented in nonConformalMappedWallFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, and nonConformalCyclicFvPatch.
Definition at line 141 of file fvPatch.H.
References polyPatch::start().
Referenced by CentredFitSnGradData< Polynomial >::calcFit(), extendedFaceToCellStencil::collectData(), extendedCellToFaceStencil::collectData(), conformedFvPatchField< Type >::conform(), pointLinear< Type >::correction(), fvMeshSubset::interpolate(), inversePointDistanceDiffusivity::operator()(), Foam::fvMeshStitcherTools::origNcMagSfb(), fvPatch::patchSlice(), conformedFvPatchField< Type >::unconform(), extendedCellToFaceStencil::weightedSum(), and extendedUpwindCellToFaceStencil::weightedSum().


|
inlinevirtual |
Return size.
Reimplemented in nonConformalMappedWallFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, nonConformalCyclicFvPatch, and emptyFvPatch.
Definition at line 147 of file fvPatch.H.
References UList< T >::size().
Referenced by Foam::checkNonConformalErrorPatchOrdering(), conformedFvPatchField< Type >::conform(), FvFaceCellWave< Type, TrackingData >::handleCyclicPatches(), FvFaceCellWave< Type, TrackingData >::handleProcPatches(), fvMeshSubset::interpolate(), Foam::levelSetFraction(), Foam::fvMeshStitcherTools::origNcMagSfb(), fvPatch::patchInternalField(), fvPatch::patchSlice(), PatchCollisionDensity< CloudType >::preEvolve(), radiationCoupledBase::radiationCoupledBase(), movingMappedWallVelocityFvPatchVectorField::updateCoeffs(), wallHeatFlux::write(), and wallHeatTransferCoeff::write().


|
inlinevirtual |
Return true if this patch is a constraint type.
Definition at line 153 of file fvPatch.H.
References polyPatch::constraint().

|
inlinevirtual |
Return true if this patch is coupled.
Reimplemented in processorFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalCyclicFvPatch, and coupledFvPatch.
Definition at line 159 of file fvPatch.H.
References polyPatch::coupled().
Referenced by Foam::fvc::smooth(), Foam::fvc::spread(), and Foam::fvc::sweep().


|
inline |
Return the index of this patch in the fvBoundaryMesh.
Definition at line 165 of file fvPatch.H.
References patchIdentifier::index().
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), FvFaceCellWave< Type, TrackingData >::checkCyclic(), VoFFilmTransfer::correct(), cyclicFvsPatchField< Type >::cyclicFvsPatchField(), filmFvPatch::deltaCoeffs(), radiationCoupledBase::emissivity(), emptyFvsPatchField< Type >::emptyFvsPatchField(), FvFaceCellWave< Type, TrackingData >::getChangedPatchFaces(), internalFvsPatchField< Type >::internalFvsPatchField(), MRFPatchField::makeAbsolute(), MRFPatchField::makeRelative(), processorFvPatch::makeWeights(), FvFaceCellWave< Type, TrackingData >::mergeFaceInfo(), nonConformalCyclicFvsPatchField< Type >::nonConformalCyclicFvsPatchField(), nonConformalErrorFvsPatchField< Type >::nonConformalErrorFvsPatchField(), processorCyclicFvsPatchField< Type >::processorCyclicFvsPatchField(), processorFvsPatchField< Type >::processorFvsPatchField(), symmetryFvsPatchField< Type >::symmetryFvsPatchField(), symmetryPlaneFvsPatchField< Type >::symmetryPlaneFvsPatchField(), filmSurfaceVelocityFvPatchVectorField::updateCoeffs(), mappedVelocityFluxFvPatchField::updateCoeffs(), movingMappedWallVelocityFvPatchVectorField::updateCoeffs(), and wedgeFvsPatchField< Type >::wedgeFvsPatchField().


| const Foam::objectRegistry & db | ( | ) | const |
| const Foam::fvMesh & mesh | ( | ) | const |
Return mesh reference.
Definition at line 67 of file fvPatch.C.
Referenced by filmFvPatch::deltaCoeffs(), nonConformalMappedFvPatchBase::fromNeighbour(), and processorFvPatch::makeWeights().

| const Foam::Time & time | ( | ) | const |
Return time.
Definition at line 73 of file fvPatch.C.
References objectRegistry::time().
Referenced by timeVaryingMappedFvPatchField< Type >::time().


|
inline |
Return boundaryMesh reference.
Definition at line 180 of file fvPatch.H.
Referenced by cyclicFvPatch::nbrPatch(), cyclicFvPatch::neighbFvPatch(), nonConformalFvPatch::origPatch(), processorCyclicFvPatch::referPatch(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), and activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs().

Slice list to patch.
Definition at line 187 of file fvPatch.H.
References fvPatch::size(), and fvPatch::start().
Referenced by domainDecomposition::procFaceAddressingBf().


|
virtual |
Return faceCells.
Reimplemented in nonConformalMappedWallFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalErrorFvPatch, nonConformalCyclicFvPatch, emptyFvPatch, and coupledFvPatch.
Definition at line 79 of file fvPatch.C.
Referenced by nearWallFields::calcAddressing(), VoFFilmTransfer::correct(), LRR< BasicMomentumTransportModel >::correct(), SSG< BasicMomentumTransportModel >::correct(), pointLinear< Type >::correction(), coupledFvPatch::faceCells(), VoFFilmTransfer::filmVoFTransferRate(), inversePointDistanceDiffusivity::operator()(), wallCellWallFunctionFvPatchScalarField::patchFieldAddToCellField(), fvPatch::patchInternalField(), Foam::fvc::smooth(), Foam::fvc::spread(), Foam::fvc::sweep(), and VoFFilmTransfer::TransferRate().

| const Foam::vectorField & Cf | ( | ) | const |
Return face centres.
Definition at line 85 of file fvPatch.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), fvMesh::Cf(), and mesh.
Referenced by nearWallFields::calcAddressing(), and processorFvPatch::makeWeights().


| const Foam::DimensionedField< Foam::vector, Foam::fvPatch > & C | ( | ) | const |
Return dimensioned face centres.
Definition at line 92 of file fvPatch.C.
References Foam::dimLength, mesh, Foam::name(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::dimensions::time.
Referenced by processorFvPatch::makeWeights().


| Foam::tmp< Foam::vectorField > Cn | ( | ) | const |
Return neighbour cell centres.
Definition at line 122 of file fvPatch.C.
References primitiveMesh::cellCentres(), forAll, mesh, and tmp< T >::ref().

| const Foam::vectorField & Sf | ( | ) | const |
Return face area vectors.
Definition at line 147 of file fvPatch.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), mesh, and fvMesh::Sf().
Referenced by cyclicFvPatch::makeWeights(), processorFvPatch::makeWeights(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), and activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs().


| const Foam::scalarField & magSf | ( | ) | const |
Return face area magnitudes.
Definition at line 153 of file fvPatch.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), fvMesh::magSf(), and mesh.
Referenced by conformedFvPatchField< Type >::conform(), wallCellWallFunctionFvPatchScalarField::initMaster(), wallCellWallFunctionFvPatchScalarField::patchFieldsToWallCellField(), activeBaffleVelocityFvPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), movingMappedWallVelocityFvPatchVectorField::updateCoeffs(), and outletMappedUniformInletFvPatchField< Type >::updateCoeffs().


| Foam::tmp< Foam::vectorField > nf | ( | ) | const |
Return face normals.
Definition at line 141 of file fvPatch.C.
Referenced by nearWallFields::calcAddressing(), dynamic::cosTheta(), nonConformalCoupledFvPatch::makeWeights(), and movingMappedWallVelocityFvPatchVectorField::updateCoeffs().

|
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, nonConformalErrorFvPatch, and cyclicFvPatch.
| Foam::tmp< Foam::scalarField > polyFaceFraction | ( | ) | const |
Return the fraction of the poly-face that each fv-face in this.
patch covers. Will be equal to one, unless the mesh is non-conformal.
Definition at line 167 of file fvPatch.C.
References fvMesh::conformal(), and mesh.

|
virtual |
Make patch weighting factors.
Reimplemented in coupledFvPatch, processorFvPatch, nonConformalProcessorCyclicFvPatch, nonConformalCyclicFvPatch, and cyclicFvPatch.
| const Foam::scalarField & weights | ( | ) | const |
Return patch weighting factors.
Definition at line 193 of file fvPatch.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), mesh, and surfaceInterpolation::weights().

|
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 187 of file fvPatch.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), surfaceInterpolation::deltaCoeffs(), and mesh.
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), VoFFilmTransfer::correct(), 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 53 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 71 of file fvPatchTemplates.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField().

| GeometricField::Patch & patchField | ( | GeometricField & | gf | ) | const |
Return the corresponding patchField reference of the named field.
Definition at line 81 of file fvPatchTemplates.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::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 91 of file fvPatchTemplates.C.
References Foam::name().
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), temperatureDependent::cosTheta(), filmSurfaceVelocityFvPatchVectorField::updateCoeffs(), mappedFilmPressureFvPatchScalarField::updateCoeffs(), mappedFlowRateVelocityFvPatchVectorField::updateCoeffs(), and coupledTemperatureFvPatchScalarField::updateCoeffs().


| tmp<DimensionedField<Type, fvPatch> > lookupField | ( | const word & | ) | const |
Lookup a dimensioned field for this geometry.
|
delete |
Disallow default bitwise assignment.
| const Foam::fvMesh & operator() | ( | ) | const |
| Foam::tmp<Foam::Field<Type> > patchInternalField | ( | const UList< Type > & | f | ) | const |
Definition at line 33 of file fvPatchTemplates.C.
References f(), fvPatch::faceCells(), forAll, tmp< T >::ref(), and fvPatch::size().

| Foam::tmp<Foam::DimensionedField<Type, Foam::fvPatch> > lookupField | ( | const word & | name | ) | const |
Definition at line 105 of file fvPatchTemplates.C.
References Foam::abort(), GeometricField< Type, GeoMesh, PrimitiveField >::boundaryField(), DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::FatalError, FatalErrorInFunction, Foam::name(), Foam::nl, IOobject::NO_READ, IOobject::NO_WRITE, sf(), Foam::dimensions::time, and Foam::typeName().
