36 const bool primitiveOrdering
42 auto& result = tresult.ref();
45 result.slice(0,
fld.size()) =
fld.primitiveField();
47 label start =
fld.size();
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;
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
A List with indirect addressing. Like IndirectList but does not store addressing.
void size(const label n)
Older name for setAddressableSize.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
label nEdges() const
Number of mesh edges.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.