42 void Foam::fv::interRegionModel::readCoeffs()
44 master_ = coeffs().lookupOrDefault<
bool>(
"master",
true);
47 coeffs().lookupBackwardsCompatible<word>
53 interpolationMethod_ =
56 coeffs().
lookup(
"interpolationMethod")
61 void Foam::fv::interRegionModel::setMapper()
const 72 <<
"Inter-region model selected, but local and " 73 <<
"neighbour regions are the same: " <<
nl 74 <<
" local region: " <<
mesh().name() <<
nl 75 <<
" secondary region: " << nbrMesh().name() <<
nl 79 if (
mesh().bounds().overlaps(nbrMesh().bounds()))
95 <<
"regions " <<
mesh().name() <<
" and " 96 << nbrMesh().name() <<
" do not intersect" 107 const fvMesh& nbrMesh =
mesh().time().lookupObject<
fvMesh>(nbrRegionName());
112 forAll(fvModels, fvModeli)
114 if (isA<interRegionModel>(fvModels[fvModeli]))
117 refCast<const interRegionModel>(fvModels[fvModeli]);
127 <<
"Neighbour model not found in region " << nbrMesh.
name() <<
nl 129 return NullObjectRef<interRegionModel>();
138 const word& modelType,
143 fvModel(name, modelType, dict, mesh),
const word & nbrRegionName() const
Return const access to the neighbour region name.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
#define forAll(list, i)
Loop across all elements in list.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool read(const dictionary &dict)
Read source dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const NamedEnum< interpolationMethod, 3 > interpolationMethodNames_
Finite volume model abstract base class.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Base class for inter-region exchange.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
interRegionModel(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
static const word null
An empty word.
virtual bool read(const dictionary &dict)
Read dictionary.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
word name(const complex &)
Return a string representation of a complex.
const word & name() const
Return reference to name.
Mesh data needed to do the Finite Volume discretisation.
virtual ~interRegionModel()
Destructor.
const interRegionModel & nbrModel() const
Get the neighbour interRegionModel.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
Ostream & incrIndent(Ostream &os)
Increment the indent level.