31#include "surfaceInterpolate.H"
39void Foam::threePhaseInterfaceProperties::correctContactAngle
41 surfaceVectorField::Boundary& nHatb
45 mixture_.alpha1().boundaryField();
47 mixture_.alpha2().boundaryField();
49 mixture_.alpha3().boundaryField();
51 mixture_.U().boundaryField();
53 const fvMesh&
mesh = mixture_.U().mesh();
60 const alphaContactAngleTwoPhaseFvPatchScalarField& a2cap =
64 const alphaContactAngleTwoPhaseFvPatchScalarField& a3cap =
73 twoPhaseAlpha2 + twoPhaseAlpha3 + SMALL
76 twoPhaseAlpha2 /= sumTwoPhaseAlpha;
77 twoPhaseAlpha3 /= sumTwoPhaseAlpha;
85 twoPhaseAlpha2*(180 - a2cap.theta(
U[patchi], nHatp))
86 + twoPhaseAlpha3*(180 - a3cap.theta(
U[patchi], nHatp))
102 b2[facei] =
cos(
acos(a12[facei]) - theta[facei]);
110 nHatp = a*nf +
b*nHatp;
112 nHatp /= (
mag(nHatp) + deltaN_.value());
118void Foam::threePhaseInterfaceProperties::calculateK()
134 correctContactAngle(nHatfv.boundaryFieldRef());
137 nHatf_ = nHatfv & Sf;
152Foam::threePhaseInterfaceProperties::threePhaseInterfaceProperties
163 ).
get<scalar>(
"cAlpha")
190 "interfaceProperties:K",
211Foam::tmp<Foam::volScalarField>
216 pos0(mixture_.alpha1() - 0.01)*
pos0(0.99 - mixture_.alpha1()),
217 pos0(mixture_.alpha2() - 0.01)*
pos0(0.99 - mixture_.alpha2())
const volScalarField & alpha1
const volScalarField & alpha2
const Mesh & mesh() const noexcept
Return const reference to mesh.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Mesh data needed to do the Finite Volume discretisation.
const surfaceVectorField & Sf() const
Return cell face area vectors.
tmp< volScalarField > nearInterface() const
Indicator of the proximity of the interface.
tmp< surfaceScalarField > surfaceTensionForce() const
tmp< volScalarField > sigmaK() const
A class for managing temporary objects.
Calculate the divergence of the given field.
Calculate the gradient of the given field.
Calculate the snGrad of the given volField.
const expr V(m.psi().mesh().V())
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
dimensionedScalar det(const dimensionedSphericalTensor &dt)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimless
Dimensionless.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
dimensionedScalar cbrt(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &f1, const label comm)
fvsPatchField< vector > fvsPatchVectorField
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar acos(const dimensionedScalar &ds)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.