54 const this_bctype& gcpsf,
60 parent_bctype(gcpsf,
p, iF, mapper),
61 theta0_(gcpsf.theta0_),
62 uTheta_(gcpsf.uTheta_),
63 thetaA_(gcpsf.thetaA_),
64 thetaR_(gcpsf.thetaR_)
76 parent_bctype(
p, iF,
dict),
77 theta0_(
dict.
get<scalar>(
"theta0")),
78 uTheta_(
dict.
get<scalar>(
"uTheta")),
79 thetaA_(
dict.
get<scalar>(
"thetaA")),
80 thetaR_(
dict.
get<scalar>(
"thetaR"))
89 const this_bctype& gcpsf,
93 parent_bctype(gcpsf, iF),
94 theta0_(gcpsf.theta0_),
95 uTheta_(gcpsf.uTheta_),
96 thetaA_(gcpsf.thetaA_),
97 thetaR_(gcpsf.thetaR_)
119 Uwall -= (nf & Uwall)*nf;
125 nWall /= (
mag(nWall) + SMALL);
131 return theta0_ + (thetaA_ - thetaR_)*
tanh(uwall/uTheta_);
153 dynamicAlphaContactAngleFvPatchScalarField
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
Macros for easy insertion into run-time selection tables.
fvPatchField< scalar > fvPatchScalarField
constexpr T & get(FixedList< T, N > &list) noexcept
A FieldMapper for finite-volume patch fields.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
A class for managing temporary objects.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...