40namespace areaSurfaceFilmModels
49void contactAngleForce::initialise()
64 Ccf_(coeffDict_.get<scalar>(
"Ccf")),
69 typeName +
":fContactForceMask",
70 film.primaryMesh().time().
timeName(),
99 typeName +
":contactForce",
101 film().primaryMesh(),
129 const label faceO = own[edgei];
130 const label faceN = nbr[edgei];
133 if ((talpha()[faceO] > 0.5) && (talpha()[faceN] < 0.5))
137 else if ((talpha()[faceO] < 0.5) && (talpha()[faceN] > 0.5))
142 if (facei != -1 && mask_[facei] > 0.5)
147 gradAlpha[facei]/(
mag(gradAlpha[facei]) + ROOTVSMALL)
152 Ccf_*
n*sigma[facei]*(1 - cosTheta)/invDx/
rhof[facei];
170 tfvm.
ref() += tForce;
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Field< Type > & field() const
Return field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
bool writeTime() const noexcept
True if this is a write time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const edgeScalarField & deltaCoeffs() const
Return reference to difference factors array.
const Time & time() const
Return reference to time.
const DimensionedField< scalar, areaMesh > & S() const
Return face areas.
const labelUList & owner() const
Internal face owner.
const labelUList & neighbour() const
Internal face neighbour.
virtual bool write(const bool valid=true) const
Write using setting from DB.
const liquidFilmBase & film() const
Return const access to the film surface film model.
Base class for film (stress-based) force models.
virtual const areaScalarField & sigma() const =0
Access const reference sigma.
tmp< areaScalarField > alpha() const
Wet indicator using h0.
virtual const areaScalarField & rho() const =0
Access const reference rho.
const faMesh & regionMesh() const
Return the region mesh database.
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.
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
const dimensionSet dimless
Dimensionless.
const dimensionSet dimArea(sqr(dimLength))
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
faMatrix< vector > faVectorMatrix
const dimensionSet dimForce
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimDensity
dimensionedScalar cos(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.