36 namespace regionModels
38 namespace surfaceFilmModels
47 void contactAngleForce::initialise()
54 if (zeroForcePatches.size())
59 Info<<
" Assigning zero contact force within " << dLim
60 <<
" of patches:" <<
endl;
66 label patchi = iter.key();
95 contactAngleForce::contactAngleForce
102 force(typeName, film, dict),
108 typeName +
":contactForceMask",
138 typeName +
":contactForce",
166 const label cellO = own[facei];
167 const label cellN = nbr[facei];
170 if ((alpha[cellO] > 0.5) && (alpha[cellN] < 0.5))
174 else if ((alpha[cellO] < 0.5) && (alpha[cellN] > 0.5))
179 if (celli != -1 && mask_[celli] > 0.5)
183 gradAlpha[celli]/(
mag(gradAlpha[celli]) + rootVSmall);
184 const scalar cosTheta =
cos(
degToRad(theta[celli]));
185 force[celli] += Ccf_*n*sigma[celli]*(1 - cosTheta)/invDx;
202 if (maskPf[facei] > 0.5)
204 label cellO = faceCells[facei];
206 if ((alpha[cellO] > 0.5) && (alphaPf[facei] < 0.5))
210 /(
mag(gradAlpha[cellO]) + rootVSmall);
211 const scalar cosTheta =
cos(
degToRad(thetaPf[facei]));
213 Ccf_*n*sigmaPf[facei]*(1 - cosTheta)/invDx[facei];
232 tfvm.
ref() += tForce;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Base class for surface film models.
Base class for film (stress-based) force models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
Unit conversion functions.
virtual const volScalarField & alpha() const =0
Return the film coverage, 1 = covered, 0 = uncovered / [].
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the reference to the time database.
const Time & time() const
Return the top-level database.
const dictionary coeffDict_
Coefficients dictionary.
Macros for easy insertion into run-time selection tables.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
const labelUList & neighbour() const
Internal face neighbour.
bool writeTime() const
Return true if this is a write time.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
const dimensionSet dimVolume(pow3(dimLength))
dimensionedScalar cos(const dimensionedScalar &ds)
Calculate the gradient of the given field.
A class for handling words, derived from string.
bool isCoupledPatch(const label regionPatchi) const
Return true if patchi on the local region is a coupled.
const fvMesh & regionMesh() const
Return the region mesh database.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const fvPatch & patch() const
Return patch.
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimForce
const labelUList & owner() const
Internal face owner.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fvMatrix< vector > fvVectorMatrix
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
dimensioned< scalar > mag(const dimensioned< Type > &)
List< wordRe > wordReList
A List of wordRe (word or regular expression)
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
virtual const volScalarField & sigma() const =0
Return the film surface tension [N/m].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
const surfaceScalarField & deltaCoeffs() const
Return reference to cell-centre difference coefficients.
const dimensionSet dimArea(sqr(dimLength))
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.