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 surfaceScalarField::Boundary& faceDiffusivityBf =
131 faceDiffusivity_.boundaryFieldRef();
139 if (patchSet.found(
patchi))
143 scalar dist = cellInfo[faceCells[i]].distSqr();
144 bfld[i] = 1.0/
sqrt(dist);
153 scalar dist = faceInfo[start+i].distSqr();
154 bfld[i] = 1.0/
sqrt(dist);
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nInternalFaces() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual ~inverseFaceDistanceDiffusivity()
Destructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar sqrt(const dimensionedScalar &ds)
label findPatchID(const word &patchName) const
Find patch index given a name.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification...
Pre-declare related SubField type.
Macros for easy insertion into run-time selection tables.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
virtual const labelUList & faceCells() const
Return faceCells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual void correct()
Correct the motion diffusivity.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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/ubuntu/OpenFOAM-5.0/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()
defineTypeNameAndDebug(combustionModel, 0)
Holds information regarding nearest wall point. Used in wall distance calculation.
const List< Type > & allCellInfo() const
Get allCellInfo.
label size() const
Return the number of elements in the UPtrList.
const fvPatch & patch() const
Return patch.
void setSize(const label)
Reset size of List.
label start() const
Return start label of this patch in the polyMesh face list.
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
A patch is a list of labels that address the faces in the global face list.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const vectorField::subField faceCentres() const
Return face centres.