51 namespace regionModels
74 void constructMeshObjects();
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,
const dictionary & solution() const
Return the solution dictionary.
const fvMesh & primaryMesh_
Reference to the primary mesh database.
const word modelName_
Model name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool isRegionPatch(const label primaryPatchi) const
Return true if patchi on the primary region is a coupled.
const Time & time() const
Return the reference to the time database.
wordList interRegionAMINames_
List of region names this region is coupled to.
virtual void evolveRegion()
Evolve the region.
virtual void info()
Provide some feedback.
const Switch & active() const
Return the active flag.
A list of keyword definitions, which are a keyword followed by any number of values (e...
label regionPatchID(const label primaryPatchID) const
Return region ID corresponding to primaryPatchID.
bool isCoupledPatch(const label regionPatchi) const
Return true if patchi on the local region is a coupled.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
autoPtr< fvMesh > regionMeshPtr_
Pointer to the region mesh database.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
TypeName("regionModel")
Runtime type information.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
autoPtr< IOdictionary > outputPropertiesPtr_
Dictionary of output properties.
const fvMesh & regionMesh() const
Return the region mesh database.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const dictionary & coeffs() const
Return the model coefficients dictionary.
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.
virtual void preEvolveRegion()
Pre-evolve region.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
virtual bool read()
Read control parameters from dictionary.
virtual void postEvolveRegion()
Post-evolve region.
const word & modelName() const
Return the model name.
label nbrCoupledPatchID(const regionModel &nbrRegion, const label regionPatchi) const
Return the coupled patch ID paired with coupled patch.
Switch infoOutput_
Active information output.
const IOdictionary & outputProperties() const
Return const access to the output properties dictionary.
void toRegion(const label regionPatchi, List< Type > &primaryFieldField) const
Convert a primary region field to the local region.
Switch active_
Active flag.
const labelList & primaryPatchIDs() const
Return the list of patch IDs on the primary region coupled.
PtrList< PtrList< AMIPatchToPatchInterpolation > > interRegionAMI_
List of AMI objects per coupled region.
virtual ~regionModel()
Destructor.
dictionary coeffs_
Model coefficients dictionary.
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.
void toPrimary(const label regionPatchi, List< Type > ®ionField) const
Convert a local region field to the primary region.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const Time & time_
Reference to the time database.
regionModelFunctionObjectList functions_
Region model function objects.
Mesh data needed to do the Finite Volume discretisation.
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
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.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
A class for managing temporary objects.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
word regionName_
Region name.
const Switch & infoOutput() const
Return the information flag.
labelList primaryPatchIDs_
List of patch IDs on the primary region coupled to this region.