Go to the documentation of this file.
62 baseMesh_.time().timeName(),
97 return reconstructFvVolumeInternalField(
fld);
133 >::GeometricBoundaryField& bfld =
fld.boundaryField();
137 if (patchFaceMaps_.set(patchI))
140 patchFields.
set(patchI, bfld[patchI].clone());
145 patchFaceMaps_[patchI]
149 patchFields[patchI].autoMap(mapper);
156 baseMesh_.boundary().size()
161 forAll(patchFields, patchI)
163 if (patchFields.
set(patchI))
165 const fvPatch& basePatch = baseMesh_.boundary()[patchI];
188 forAll(basePatchFields, patchI)
190 if (patchI >= patchFields.
size() || !patchFields.
set(patchI))
198 baseMesh_.boundary()[patchI],
209 baseMesh_.time().timeName(),
245 return reconstructFvVolumeField(
fld);
287 baseMesh_.nInternalFaces()
303 >::GeometricBoundaryField& bfld =
fld.boundaryField();
307 if (patchFaceMaps_.set(patchI))
310 patchFields.
set(patchI, bfld[patchI].clone());
315 patchFaceMaps_[patchI]
319 patchFields[patchI].autoMap(mapper);
326 baseMesh_.boundary().size()
331 forAll(patchFields, patchI)
333 if (patchFields.
set(patchI))
335 const fvPatch& basePatch = baseMesh_.boundary()[patchI];
358 forAll(basePatchFields, patchI)
360 if (patchI >= patchFields.
size() || !patchFields.
set(patchI))
368 baseMesh_.boundary()[patchI],
379 baseMesh_.time().timeName(),
414 return reconstructFvSurfaceField(
fld);
431 Info<<
" Reconstructing " << fieldClassName <<
"s\n" <<
endl;
437 selectedFields.
empty()
438 || selectedFields.
found(fieldIter()->
name())
441 Info<<
" " << fieldIter()->name() <<
endl;
445 reconstructFvVolumeInternalField<Type>(*fieldIter())
466 const word& fieldClassName =
473 Info<<
" Reconstructing " << fieldClassName <<
"s\n" <<
endl;
477 const word&
name = fieldIter()->name();
482 &&
name !=
"cellDist"
489 reconstructFvVolumeField<Type>(*fieldIter())
509 const word& fieldClassName =
516 Info<<
" Reconstructing " << fieldClassName <<
"s\n" <<
endl;
522 selectedFields.
empty()
523 || selectedFields.
found(fieldIter()->
name())
526 Info<<
" " << fieldIter()->name() <<
endl;
530 reconstructFvSurfaceField<Type>(*fieldIter())
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
FieldMapper with direct mapping from remote quantities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
tmp< DimensionedField< Type, volMesh > > reconstructFvVolumeInternalField(const DimensionedField< Type, volMesh > &) const
Reconstruct volume internal field.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Mesh data needed to do the Finite Volume discretisation.
A List obtained as a section of another List.
Mesh data needed to do the Finite Volume discretisation.
Foam::emptyFvsPatchField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool set(const label) const
Is element set.
void reconstructFvVolumeInternalFields(const IOobjectList &objects, const HashSet< word > &selectedFields) const
Read, reconstruct and write all/selected volume internal fields.
bool empty() const
Return true if the hash table is empty.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void assign(const UList< T > &)
Assign elements to those from UList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
This boundary condition provides an 'empty' condition for reduced dimensions cases,...
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > reconstructFvSurfaceField(const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
Reconstruct surface field.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool found(const Key &) const
Return true if hashedEntry is found in table.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
void reconstructFvSurfaceFields(const IOobjectList &objects, const HashSet< word > &selectedFields) const
Read, reconstruct and write all/selected surface fields.
List of IOobjects with searching and retrieving facilities.
conserve internalField()+
const fvPatch & patch() const
Return patch.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
tmp< GeometricField< Type, fvPatchField, volMesh > > reconstructFvVolumeField(const GeometricField< Type, fvPatchField, volMesh > &fld) const
Reconstruct volume field.
label start() const
Return start label of this patch in the polyMesh face list.
label size() const
Return the number of elements in the PtrList.
direct fvPatchFieldMapper
void reconstructFvVolumeFields(const IOobjectList &objects, const HashSet< word > &selectedFields) const
Read, reconstruct and write all/selected volume fields.
Generic GeometricField class.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
FieldMapper with direct mapping from remote quantities.
word name(const complex &)
Return a string representation of a complex.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...