36 const bool primitiveOrdering
42 auto& result = tresult.ref();
45 result.slice(0,
fld.size()) =
fld.primitiveField();
47 label start =
fld.size();
52 const labelList& edgeLabels =
mesh.boundary()[patchi].edgeLabels();
53 const label len = edgeLabels.
size();
54 const auto& pfld =
fld.boundaryField()[patchi];
59 if (len == pfld.size())
61 if (primitiveOrdering)
69 result.slice(start, len) = pfld;
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
void size(const label n)
Older name for setAddressableSize.
Generic GeometricField class.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A List with indirect addressing. Like IndirectList but does not store addressing. ...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)