36 #ifndef fvFieldDecomposer_H 37 #define fvFieldDecomposer_H 80 const fvMesh& completeMesh_;
101 label completePatchID(
const label procPatchi)
const;
130 const fvMesh& completeMesh,
153 const bool allowUnknownPatchFields =
false 165 template<
class GeoField>
Patch field decomposer class.
Generic GeometricField class.
tmp< GeometricField< Type, fvPatchField, volMesh > > decomposeField(const GeometricField< Type, fvPatchField, volMesh > &field, const bool allowUnknownPatchFields=false) const
Decompose volume field.
fvFieldDecomposer(const fvMesh &completeMesh, const fvMesh &procMesh, const labelList &faceAddressing, const labelList &cellAddressing, const surfaceLabelField::Boundary &faceAddressingBf)
Construct from components.
Pre-declare SubField and related Field type.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual const labelUList & addressing() const
Access to the direct map addressing.
Finite Volume volume and surface field decomposer.
direct fvPatchFieldMapper
patchFieldDecomposer(const labelUList &addressing)
Construct given addressing.
Generic GeometricBoundaryField class.
bool isFlux(const DimensionedField< Type, surfaceMesh > &df)
Check if surfaceField is a flux.
void operator=(const UList< label > &)
Assignment to UList operator. Takes linear time.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
~fvFieldDecomposer()
Destructor.
A class for managing temporary objects.
void decomposeFields(const PtrList< GeoField > &fields) const
Decompose a list of fields.