53 void Foam::fv::interRegionHeatTransfer::readCoeffs(
const dictionary&
dict)
55 semiImplicit_ =
dict.lookup<
bool>(
"semiImplicit");
57 TName_ =
dict.lookupOrDefault<word>(
"T",
"T");
58 TNbrName_ =
dict.lookupOrDefault<word>(
"TNbr",
"T");
62 heatTransferAv_.reset(
new heatTransferAv(
dict,
mesh()));
64 heatTransferCoefficientModel_ =
71 Foam::fv::interRegionHeatTransfer::nbrHeatTransfer()
const
73 return refCast<const interRegionHeatTransfer>(nbrModel());
82 const word& modelType,
90 TNbrName_(
word::null),
91 heatTransferAv_(nullptr),
92 heatTransferCoefficientModel_(nullptr)
127 nbrMesh().lookupObject<volScalarField>(TNbrName_),
128 tTnbr->primitiveFieldRef()
153 *heatTransferCoefficientModel_->htc()
154 *heatTransferAv_->Av();
159 nbrHeatTransfer().heatTransferCoefficientModel_->htc()
160 *nbrHeatTransfer().heatTransferAv_->Av();
192 eqn += htcAv*(Tnbr -
T);
212 heatTransferCoefficientModel_->correct();
249 readCoeffs(coeffs(
dict));
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
Base-class for fluid and solid thermodynamic properties.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
const fvMesh & mesh() const
Return const access to the mesh database.
static autoPtr< heatTransferCoefficientModel > New(const dictionary &dict, const fvMesh &mesh)
Select from dictionary and mesh.
Model for inter-region heat exchange. Requires specification of a model for the heat transfer coeffic...
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
interRegionHeatTransfer(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual void correct()
Correct the model.
virtual void addSup(const volScalarField &he, fvMatrix< scalar > &eqn) const
Source term to energy equation.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual ~interRegionHeatTransfer()
Destructor.
Base class for inter-region exchange.
bool master() const
Return whether the master region.
virtual bool read(const dictionary &dict)
Read dictionary.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Volume integrate volField creating a volField.
Calculate the matrix for implicit and explicit sources.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
List< word > wordList
A List of words.
const dimensionSet dimEnergy
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
const dimensionSet dimless
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTemperature
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const dimensionSet dimMass
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fluidMulticomponentThermo & thermo