Go to the documentation of this file.
113 public List<Field<Type> >
123 const word& interpolationScheme,
264 const bool loadFromFiles =
false
275 void verbose(
const bool verbosity =
true);
287 virtual void write();
void clear()
Reset format and field list.
virtual ~sampledSets()
Destructor.
const fvMesh & mesh_
Const reference to fvMesh.
fieldGroup(const word &writeFormat)
Construct for a particular format.
virtual void readUpdate(const polyMesh::readUpdateState state)
Update for changes of mesh due to readUpdate.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
virtual void execute()
Execute, currently does nothing.
A class for handling words, derived from string.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
A class for handling file names.
fieldGroup< vector > vectorFields_
Base class for function objects, adding functionality to read/write state information (data required ...
Set of sets to sample. Call sampledSets.write() to sample&write files.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
virtual void end()
Execute at the final time-loop, currently does nothing.
virtual void read(const dictionary &)
Read the sampledSets.
meshSearch searchEngine_
Mesh search engine.
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
autoPtr< writer< Type > > formatter
The set formatter.
void verbose(const bool verbosity=true)
Set verbosity level.
fieldGroup< tensor > tensorFields_
const word & name() const
Return the field name.
virtual void write()
Sample and write.
fieldGroup< symmTensor > symmTensorFields_
void clearFieldGroups()
Clear old field groups.
void sampleAndWrite(fieldGroup< Type > &fields)
Mesh consisting of general polyhedral cells.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
fileName outputPath_
Output path.
Registry of regIOobjects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void clear()
Clear the addressed list, i.e. set the size to zero.
label appendFieldGroup(const word &fieldName, const word &fieldType)
Append fieldName to the appropriate group.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
word interpolationScheme_
Interpolation scheme to use.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label classifyFields()
Classify field types, returns the number of fields.
volFieldSampler(const word &interpolationScheme, const GeometricField< Type, fvPatchField, volMesh > &field, const PtrList< sampledSet > &)
Construct interpolating field to the sampleSets.
void writeSampleFile(const coordSet &masterSampleSet, const PtrList< volFieldSampler< Type > > &masterFields, const label setI, const fileName &timeDir, const writer< Type > &formatter)
Base class for graphics format writing. Entry points are.
void combineSampledSets(PtrList< coordSet > &masterSampledSets, labelListList &indexSets)
Combine points from all processors. Sort by curveDist and produce.
Holds list of sampling positions.
Mesh data needed to do the Finite Volume discretisation.
void correct()
Correct for mesh changes.
bool loadFromFiles_
Load fields from files (not from objectRegistry)
readUpdateState
Enumeration defining the state of the mesh after a read update.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void operator=(const sampledSets &)
fieldGroup< sphericalTensor > sphericalTensorFields_
const word name_
Name of this collection of values.
fieldGroup< scalar > scalarFields_
void combineSampledValues(const PtrList< volFieldSampler< T > > &sampledFields, const labelListList &indexSets, PtrList< volFieldSampler< T > > &masterFields)
Combine values from all processors.
wordReList fieldSelection_
Names of fields to sample.
dictionary dict_
Keep the dictionary to recreate sets for moving mesh cases.
Class used for sampling volFields.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
TypeName("sets")
Runtime type information.
fieldGroup()
Construct null.
word writeFormat_
Output format to use.
Class used for grouping field types.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void operator=(const word &writeFormat)
Assign a new formatter.
Generic GeometricField class.
static bool verbose_
Output verbosity.
const word & name() const
Return the name.
PtrList< coordSet > masterSampledSets_
sampledSets(const sampledSets &)
Disallow default bitwise copy construct and assignment.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.