Go to the documentation of this file.
51 namespace regionModels
150 const label regionPatchI,
151 const label nbrPatchI,
171 const word& regionType,
180 const word& regionType,
258 const label regionPatchI
266 const label regionPatchI,
267 const label nbrPatchI,
269 const bool flip =
false
277 const word& fieldName,
278 const label regionPatchI,
279 const bool flip =
false
288 const word& fieldName,
289 const label regionPatchI,
290 const bool flip =
false
297 const label regionPatchI,
305 const label regionPatchI,
310 template<
class Type,
class CombineOp>
313 const label regionPatchI,
319 template<
class Type,
class CombineOp>
322 const label regionPatchI,
label nbrCoupledPatchID(const regionModel &nbrRegion, const label regionPatchI) const
Return the coupled patch ID paired with coupled patch.
const fvMesh & primaryMesh_
Reference to the primary mesh database.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const Switch & active() const
Return the active flag.
wordList interRegionAMINames_
List of region names this region is coupled to.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
void initialise()
Initialise the region.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
bool isCoupledPatch(const label regionPatchI) const
Return true if patchI on the local region is a coupled.
void constructMeshObjects()
Construct region mesh and fields.
const word modelName_
Model name.
const IOdictionary & outputProperties() const
Return const access to the output properties dictionary.
A class for managing temporary objects.
virtual void evolveRegion()
Evolve the region.
virtual void info()
Provide some feedback.
autoPtr< fvMesh > regionMeshPtr_
Pointer to the region mesh database.
const Time & time() const
Return the reference to the time database.
bool isRegionPatch(const label primaryPatchI) const
Return true if patchI on the primary region is a coupled.
This function object reads fields from the time directories and adds them to the mesh database for fu...
autoPtr< IOdictionary > outputPropertiesPtr_
Dictionary of output properties.
const word & modelName() const
Return the model name.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
void operator=(const regionModel &)
Disallow default bitwise assignment.
TypeName("regionModel")
Runtime type information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void postEvolveRegion()
Post-evolve region.
virtual void preEvolveRegion()
Pre-evolve region.
regionModel(const regionModel &)
Disallow default bitwise copy construct.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual bool read()
Read control parameters from dictionary.
void toRegion(const label regionPatchI, List< Type > &primaryFieldField) const
Convert a primary region field to the local region.
const dictionary & solution() const
Return the solution dictionary.
label regionPatchID(const label primaryPatchID) const
Return region ID corresponding to primaryPatchID.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Switch active_
Active flag.
Switch infoOutput_
Active information output.
PtrList< PtrList< AMIPatchToPatchInterpolation > > interRegionAMI_
List of AMI objects per coupled region.
tmp< Foam::Field< Type > > mapRegionPatchField(const regionModel &nbrRegion, const label regionPatchI, const label nbrPatchI, const Field< Type > &nbrField, const bool flip=false) const
Map patch field from another region model to local patch.
Mesh data needed to do the Finite Volume discretisation.
dictionary coeffs_
Model coefficients dictionary.
const labelList & primaryPatchIDs() const
Return the list of patch IDs on the primary region coupled.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual const AMIPatchToPatchInterpolation & interRegionAMI(const regionModel &nbrRegion, const label regionPatchI, const label nbrPatchI, const bool flip) const
Create or return a new inter-region AMI object.
virtual ~regionModel()
Destructor.
const Time & time_
Reference to the time database.
regionModelFunctionObjectList functions_
Region model function objects.
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
void toPrimary(const label regionPatchI, List< Type > ®ionField) const
Convert a local region field to the primary region.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
const dictionary & coeffs() const
Return the model coefficients dictionary.
const Switch & infoOutput() const
Return the information flag.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
tmp< Field< Type > > mapRegionPatchInternalField(const regionModel &nbrRegion, const word &fieldName, const label regionPatchI, const bool flip=false) const
Map patch internal field from another region model to local.
word regionName_
Region name.
labelList primaryPatchIDs_
List of patch IDs on the primary region coupled to this region.
const fvMesh & regionMesh() const
Return the region mesh database.