Go to the documentation of this file.
50 dict_(renumberDict.subDict(typeName+
"Coeffs")),
91 position[cellI] = cellI;
98 for (
label iter = 0; iter < maxIter_; iter++)
112 forAll(cellCells, oldCellI)
114 const labelList& cCells = cellCells[oldCellI];
115 label cellI = oldToNew[oldCellI];
119 label nbrCellI = oldToNew[cCells[i]];
121 sumForce[cellI] += (position[nbrCellI]-position[cellI]);
135 Info<<
"Iter:" << iter
136 <<
" maxCo:" <<
maxCo
137 <<
" deltaT:" << deltaT
151 position += displacement;
152 position -=
min(position);
153 position *= (position.size()-1)/
max(position);
156 maxCo *= freezeFraction_;
static void calcCellCells(const polyMesh &mesh, const labelList &agglom, const label nLocalCoarse, const bool global, CompactListList< label > &cellCells)
Helper: determine (local or global) cellCells from mesh.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
void shuffle(UList< T > &)
Mesh consisting of general polyhedral cells.
ListType renumber(const labelUList &oldToNew, const ListType &)
Renumber the values (not the indices) of a list.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
springRenumber(const springRenumber &)
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Abstract base class for renumbering.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label readLabel(Istream &is)
labelList invert(const label len, const labelUList &)
Invert one-to-one map. Unmapped elements will be -1.
void size(const label)
Override size to be inconsistent with allocated storage.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
stressControl lookup("compactNormalStress") >> compactNormalStress