45 const typename GeoField::Boundary& bFld = sFld.
boundaryField();
49 for (
const T& val : bFld[patchi])
61 label oldFacei =
faceMap[facei];
73 for (
auto ownFacei : ownFaces)
77 tmpValue += tsFld[ownFacei];
83 for (
auto neiFacei : neiFaces)
87 tmpValue += tsFld[neiFacei];
94 sFld[facei] = tmpValue/counter;
115 <<
"dynamicRefineFvMesh::mapNewInternalFaces():"
116 <<
" Mapping new internal faces by interpolation on "
117 << iter.key()<<
endl;
119 GeoField& sFld = *iter();
121 if (sFld.oriented()())
124 << sFld.name() <<
" since of type " << sFld.type()
129 mapNewInternalFaces(
faceMap, sFld);
151 <<
"dynamicRefineFvMesh::mapNewInternalFaces():"
152 <<
" Mapping new internal faces by interpolation on "
153 << iter.key() <<
endl;
155 GeoField& sFld = *iter();
157 if (sFld.oriented()())
160 <<
"dynamicRefineFvMesh::mapNewInternalFaces(): "
161 <<
"Converting oriented field " << iter.key()
162 <<
" to intensive field and mapping" <<
endl;
175 NormalGeoField fFld(sFld*Sf/
Foam::sqr(magSf));
178 mapNewInternalFaces(
faceMap, fFld);
185 mapNewInternalFaces(
faceMap, sFld);
Generic templated field type.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
A HashTable similar to std::unordered_map.
SubField is a Field obtained as a section of another Field, without its own allocation....
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
A cell is defined as a list of faces with extra functionality.
void mapNewInternalFaces(const labelList &faceMap, GeometricField< T, fvsPatchField, surfaceMesh > &)
Map single non-flux surface<Type>Field.
const labelUList & owner() const
Internal face owner. Note bypassing virtual mechanism so.
const labelUList & neighbour() const
Internal face neighbour.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual const labelList & faceOwner() const
Return face owner.
virtual const labelList & faceNeighbour() const
Return face neighbour.
label nInternalFaces() const noexcept
Number of internal faces.
label nFaces() const noexcept
Number of mesh faces.
Mesh data needed to do the Finite Volume discretisation.
type
Volume classification types.
#define DebugInfo
Report an information message using Foam::Info.
#define WarningInFunction
Report a warning using Foam::Warning.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
#define forAll(list, i)
Loop across all elements in list.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
A non-counting (dummy) refCount.