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);
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)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< DimensionedField< Type, GeoMesh, Field > > cmptMultiply(const DimensionedField< Type, GeoMesh, PrimitiveField1 > &df1, const DimensionedField< Type, GeoMesh, PrimitiveField2 > &df2)
Vector< scalar > vector
A scalar version of the templated Vector.
tmp< DimensionedField< Type, GeoMesh, Field > > cmptDivide(const DimensionedField< Type, GeoMesh, PrimitiveField1 > &df1, const DimensionedField< Type, GeoMesh, PrimitiveField2 > &df2)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.