39 namespace patchDistMethods
47 Foam::patchDistMethods::exact::patchSurface()
const 61 localBb.extend(
rndGen, 1E-3)
77 dict.add(
"mergeDistance", 1
e-6*localBb.mag());
80 Info<<
"Triangulating local patch faces" <<
nl <<
endl;
86 new distributedTriSurfaceMesh
108 Info<<
"Redistributing surface" <<
nl <<
endl;
109 autoPtr<mapDistribute>
faceMap;
110 autoPtr<mapDistribute> pointMap;
111 patchSurfPtr_().distribute
121 return patchSurfPtr_();
127 Foam::patchDistMethods::exact::exact
138 Foam::patchDistMethods::exact::exact
176 if (info[celli].hit())
178 const point& cc = mesh_.cellCentres()[celli];
179 y[celli] = info[celli].point().dist(cc);
187 y.correctBoundaryConditions();
191 OBJstream str(mesh_.time().timePath()/
"wallPoint.obj");
192 Info<<
type() <<
": dumping nearest wall point to " 193 << str.name() <<
endl;
194 forAll(mesh_.cellCentres(), celli)
196 const point& cc = mesh_.cellCentres()[celli];
197 str.writeLine(cc, info[celli].
point());
206 n.correctBoundaryConditions();
static const Enum< distributionType > distributionTypeNames_
const polyBoundaryMesh & pbm
const labelList patchIDs(pbm.patchSet(polyPatchNames, false, true).sortedToc())
A list of keyword definitions, which are a keyword followed by a number of values (eg...
addToRunTimeSelectionTable(patchDistMethod, advectionDiffusion, dictionary)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
const fvMesh & mesh_
Reference to the mesh.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionedScalar e
Elementary charge.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const
From a set of points and indices get the normal.
IOoject and searching on distributed triSurface. All processor hold (possibly overlapping) part of th...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const word & constant() const noexcept
Return constant name.
int debug
Static debugging option.
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const
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/chef2/andy/OpenFOAM/release/v2306/OpenFOAM-v2306/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=clamp((rho - rholSat)/(rhovSat - rholSat), zero_one{});alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
static const GeometricField< vector, fvPatchField, volMesh > & null()
Return a null geometric field.
vector point
Point is a vector.
Mesh data needed to do the Finite Volume discretisation.
defineTypeNameAndDebug(advectionDiffusion, 0)
virtual bool correct(volScalarField &y)
Correct the given distance-to-patch field.
const labelHashSet patchIDs_
Set of patch IDs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< label > labelList
A List of labels.
Specialisation of patchDist for wall distance calculation.
List< treeBoundBox > meshBb(1, treeBoundBox(coarseMesh.points()).extend(rndGen, 1e-3))
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.