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);
#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.
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)
Holds information regarding type of cell. Used in inside/outside determination in cellClassification...
Pre-declare related SubField type.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Macros for easy insertion into run-time selection tables.
label start() const
Return start label of this patch in the polyMesh face list.
const List< Type > & allCellInfo() const
Get allCellInfo.
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)
virtual const labelUList & faceCells() const
Return faceCells.
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-4.1/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)
const fvPatch & patch() const
Return patch.
Holds information regarding nearest wall point. Used in wall distance calculation.
void setSize(const label)
Reset size of List.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
Mesh data needed to do the Finite Volume discretisation.
const vectorField::subField faceCentres() const
Return face centres.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
label findPatchID(const word &patchName) const
Find patch index given a name.
label nInternalFaces() const
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
label size() const
Return the number of elements in the UPtrList.