62 auto& result = tresult.
ref();
68 auto& bf = result.boundaryFieldRef();
74 const labelList& agglom = patchFaceAgglomeration_[patchi];
75 label nAgglom =
max(agglom)+1;
82 forAll(coarseToFine, coarseI)
84 const labelList& fineFaces = coarseToFine[coarseI];
99 result.internalField(),
118 result.internalField(),
const dimensionSet & dimensions() const noexcept
Return dimensions.
Generic GeometricField class.
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of entries in the list.
const Time & time() const
Return the top-level database.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
static const word & calculatedType() noexcept
The type name for calculated patch fields.
static tmp< fvPatchField< Type > > New(const word &patchFieldType, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
Patch field mapper class for agglomerated meshes.
bool agglomerate() const noexcept
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Map volField. Internal field set to average, patch fields straight copies.
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
List< scalarList > scalarListList
List of scalarList.
Type gAverage(const FieldField< Field, Type > &f, const label comm)
The global arithmetic average of a FieldField.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
DirectFieldMapper< fvPatchFieldMapper > directFvPatchFieldMapper
A fvPatchFieldMapper with direct mapping.
void inplaceReorder(const labelUList &oldToNew, ListType &input, const bool prune=false)
Inplace reorder the elements of a list.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
labelListList invertOneToMany(const label len, const labelUList &map)
Invert one-to-many map. Unmapped elements will be size 0.
List< scalar > scalarList
List of scalar.
#define forAll(list, i)
Loop across all elements in list.