55 <<
"Inter-region model selected, but local and "
56 <<
"neighbour regions are the same: " <<
nl
58 <<
" secondary region: " << nbrMesh.name() <<
nl
72 "interpolationMethod",
89 <<
"regions " <<
mesh_.name() <<
" and "
90 << nbrMesh.name() <<
" do not intersect"
102 const word& modelType,
114 master_(coeffs_.getOrDefault(
"master", true)),
115 nbrRegionName_(coeffs_.get<word>(
"nbrRegion")),
bool overlaps(const boundBox &bb) const
Overlaps/touches boundingBox?
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const word & name() const
Return reference to name.
Intermediate class for handling inter-region exchanges.
word nbrRegionName_
Name of the neighbour region to map.
interRegionOption(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
autoPtr< meshToMesh > meshInterpPtr_
Mesh to mesh interpolation object.
virtual bool read(const dictionary &dict)
Read dictionary.
void setMapper()
Set the mesh to mesh interpolation object.
bool master_
Master or slave region.
const word & name() const noexcept
Return const access to the source name.
const fvMesh & mesh_
Reference to the mesh database.
option(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
bool active() const noexcept
True if source is active.
virtual bool read(const dictionary &dict)
Read source dictionary.
dictionary coeffs_
Dictionary containing source coefficients.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
Class to calculate the cell-addressing between two overlapping meshes.
static const Enum< procMapMethod > procMapMethodNames_
static const Enum< interpolationMethod > interpolationMethodNames_
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
const boundBox & bounds() const noexcept
Return mesh bounding box.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Namespace for finite-volume.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).