36 const DimensionedField<vector, volMesh>& iF
39 tractionDisplacementFvPatchVectorField(p, iF),
41 liquidSurfacePressure_(0.0),
42 liquidSurfacePoint_(
Zero)
50 const DimensionedField<vector, volMesh>& iF,
51 const dictionary&
dict 54 tractionDisplacementFvPatchVectorField(p, iF),
55 rhoLiquid_(dict.
lookup<scalar>(
"rhoLiquid")),
56 liquidSurfacePressure_(dict.
lookup<scalar>(
"liquidSurfacePressure")),
57 liquidSurfacePoint_(dict.
lookup(
"liquidSurfacePoint"))
64 const hydrostaticDisplacementFvPatchVectorField& tdpvf,
66 const DimensionedField<vector, volMesh>& iF,
67 const fvPatchFieldMapper& mapper
70 tractionDisplacementFvPatchVectorField(tdpvf, p, iF, mapper),
71 rhoLiquid_(tdpvf.rhoLiquid_),
72 liquidSurfacePressure_(tdpvf.liquidSurfacePressure_),
73 liquidSurfacePoint_(tdpvf.liquidSurfacePoint_)
80 const hydrostaticDisplacementFvPatchVectorField& tdpvf,
81 const DimensionedField<vector, volMesh>& iF
84 tractionDisplacementFvPatchVectorField(tdpvf, iF),
85 rhoLiquid_(tdpvf.rhoLiquid_),
86 liquidSurfacePressure_(tdpvf.liquidSurfacePressure_),
87 liquidSurfacePoint_(tdpvf.liquidSurfacePoint_)
105 liquidSurfacePressure_
107 *
max(g.value() & (patch().Cf() - liquidSurfacePoint_), scalar(0))
116 writeEntry(os,
"liquidSurfacePressure", liquidSurfacePressure_);
117 writeEntry(os,
"liquidSurfacePoint", liquidSurfacePoint_);
virtual void write(Ostream &) const
Write.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fvPatchField< vector > fvPatchVectorField
UniformDimensionedField< vector > uniformDimensionedVectorField
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
stressControl lookup("compactNormalStress") >> compactNormalStress
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
hydrostaticDisplacementFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)