41 inverseFaceDistanceDiffusivity,
49 Foam::inverseFaceDistanceDiffusivity::inverseFaceDistanceDiffusivity
76 label nPatchFaces = 0;
85 nPatchFaces += bdry[pID].
size();
96 const polyPatch& patch = bdry[iter.key()];
102 changedFaces[nPatchFaces] = patch.
start() + patchFaceI;
104 faceDist[nPatchFaces] =
wallPoint(fc[patchFaceI], 0);
110 changedFaces.
setSize(nPatchFaces);
117 mesh().globalData().nTotalCells()+1
125 scalar dist = faceInfo[faceI].distSqr();
127 faceDiffusivity_[faceI] = 1.0/
sqrt(dist);
130 forAll(faceDiffusivity_.boundaryField(), patchI)
136 if (patchSet.found(patchI))
140 scalar dist = cellInfo[faceCells[i]].distSqr();
141 bfld[i] = 1.0/
sqrt(dist);
150 scalar dist = faceInfo[start+i].distSqr();
151 bfld[i] = 1.0/
sqrt(dist);
dimensionedScalar sqrt(const dimensionedScalar &ds)
Uniform uniform finite volume mesh motion diffusivity.
Pre-declare related SubField type.
const List< Type > & allCellInfo() const
Get allCellInfo.
Mesh data needed to do the Finite Volume discretisation.
label size() const
Return the number of elements in the PtrList.
const fvPatch & patch() const
Return patch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil)-psi)*pSat, rhoMin);#1"/home/dm2/henry/OpenFOAM/OpenFOAM-3.0.x/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()
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual const labelUList & faceCells() const
Return faceCells.
Holds information regarding nearest wall point. Used in wall distance calculation.
virtual void correct()
Correct the motion diffusivity.
A patch is a list of labels that address the faces in the global face list.
const vectorField::subField faceCentres() const
Return face centres.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label)
Reset size of List.
Macros for easy insertion into run-time selection tables.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label start() const
Return start label of this patch in the polyMesh face list.
label nInternalFaces() const
Holds information regarding type of cell. Used in inside/outside determination in cellClassification...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual ~inverseFaceDistanceDiffusivity()
Destructor.
label findPatchID(const word &patchName) const
Find patch index given a name.
label start() const
Return start label of this patch in the polyMesh face list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
defineTypeNameAndDebug(combustionModel, 0)