44 bool Foam::sampledSets::boxUniform::calcSamples
46 DynamicList<point>& samplingPositions,
48 DynamicList<label>& samplingSegments,
49 DynamicList<label>& samplingCells,
50 DynamicList<label>& samplingFaces
57 for (
label j = 0; j < nPoints_.
y(); ++ j)
59 for (
label i = 0; i < nPoints_.
x(); ++ i)
68 const label celli = searchEngine.findCell(pt);
72 samplingPositions.append(pt);
73 samplingSegments.append
75 i + j*nPoints_.
x() +
k*nPoints_.
x()*nPoints_.
y()
77 samplingCells.append(celli);
78 samplingFaces.append(-1);
99 box_(
dict.lookup(
"box")),
100 nPoints_(
dict.lookup(
"nPoints"))
Macros for easy insertion into run-time selection tables.
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
static const meshSearch & New(const polyMesh &mesh, const pointInCellShapes=pointInCellShapes::tets)
Lookup or construct from mesh and cell decomposition option.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const polyMesh & mesh() const
Access the mesh.
Set of sets to sample. Call sampledSets.write() to sample&write files.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(arcUniform, 0)
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
void cmptMultiply(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1, const LagrangianPatchField< Type > &f2)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void cmptDivide(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1, const LagrangianPatchField< Type > &f2)
Vector< scalar > vector
A scalar version of the templated Vector.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.