51 const word& sourceName,
52 const word& modelType,
59 TName_(
dict.getOrDefault<
word>(
"T",
"T")),
60 TprimaryName_(
dict.get<
word>(
"Tprimary")),
74 zeroGradientFaPatchScalarField::typeName
76 thicknessLayers_(Zero),
119 vsm().mapInternalToSurface<scalar>(vfb)()
120 )*patch().deltaCoeffs();
122 if (contactRes_ != 0)
163 Tw1_.primitiveFieldRef() =
164 this->
vsm().mapInternalToSurface<scalar>(vfb);
168 eqn += -
fam::Sp(htcw(), eqn.
psi()) + htcw()*Tw1_;
170 curTimeIndex_ =
mesh().time().timeIndex();
180 coeffs_.readIfPresent(
"T", TName_);
182 if (
dict.readIfPresent(
"thicknessLayers", thicknessLayers_))
184 dict.readEntry(
"kappaLayers", kappaLayers_);
186 if (thicknessLayers_.size() > 0)
189 forAll(thicknessLayers_, iLayer)
191 contactRes_ += thicknessLayers_[iLayer]/kappaLayers_[iLayer];
193 contactRes_ = scalar(1)/contactRes_;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void resize(const label len)
Adjust allocated size of list.
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A special matrix type and solver, designed for finite area solutions of scalar equations....
const GeometricField< Type, faPatchField, areaMesh > & psi() const
Intermediate abstract class for handling face-set options for the derived faOptions.
Base abstract class for handling finite area options (i.e. faOption).
wordList fieldNames_
Field names to apply source to - populated by derived models.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Common functions used in temperature coupled boundaries.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
volSurfaceMapping vsm(aMesh)
Calculate the finiteArea matrix for implicit and explicit sources.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define DebugInfo
Report an information message using Foam::Info.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
zeroField Sp(const Foam::zero, const GeometricField< Type, faPatchField, areaMesh > &)
A no-op source.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimPower
const dimensionSet dimArea(sqr(dimLength))
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define forAll(list, i)
Loop across all elements in list.