43 void Foam::fv::interRegionModel::readCoeffs()
45 master_ = coeffs().lookupOrDefault<
bool>(
"master",
true);
48 coeffs().lookupBackwardsCompatible<word>
54 coeffs().lookup(
"interpolationMethod") >> interpolationMethod_;
58 void Foam::fv::interRegionModel::setMapper()
const 69 <<
"Inter-region model selected, but local and " 70 <<
"neighbour regions are the same: " <<
nl 71 <<
" local region: " <<
mesh().name() <<
nl 72 <<
" secondary region: " << nbrMesh().name() <<
nl 76 if (
mesh().bounds().overlaps(nbrMesh().bounds()))
92 <<
"regions " <<
mesh().name() <<
" and " 93 << nbrMesh().name() <<
" do not intersect" 104 const fvMesh& nbrMesh =
mesh().time().lookupObject<
fvMesh>(nbrRegionName());
109 forAll(fvModels, fvModeli)
111 if (isA<interRegionModel>(fvModels[fvModeli]))
114 refCast<const interRegionModel>(fvModels[fvModeli]);
124 <<
"Neighbour model not found in region " << nbrMesh.
name() <<
nl 126 return NullObjectRef<interRegionModel>();
135 const word& modelType,
140 fvModel(name, modelType, dict, mesh),
143 interpolationMethod_(directMethod::typeName),
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.
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.
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.
Ostream & incrIndent(Ostream &os)
Increment the indent level.