33 template<
class TransferType>
38 const bool correctWalls
54 correctWalls_(correctWalls),
63 template<
class TransferType>
70 template<
class TransferType>
108 Boundary& bf = boundaryFieldRef();
115 if (!isA<emptyFvPatchScalarField>(boundaryField()[
patchi]))
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
virtual ~wallDistData()
Destructor.
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the top-level database.
Takes a set of patches to start MeshWave from.
const dimensionSet dimLength
Collection of functions used in wall distance calculation.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
wallDistData(const fvMesh &mesh, GeometricField< Type, fvPatchField, volMesh > &, bool correctWalls=true)
Construct from mesh and flag whether or not to correct wall.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const FieldField< Field, Type > & patchData() const
virtual void correct()
Correct for mesh geom/topo changes.
label size() const
Return the number of elements in the UPtrList.
const scalarField & distance() const
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
void transfer(UPtrList< T > &)
Transfer the contents of the argument UPtrList into this.
const FieldField< Field, scalar > & patchDistance() const
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void transfer(List< Type > &)
Transfer the contents of the argument List into this list.
const Field< Type > & cellData() const