Go to the documentation of this file.
45 const typename GeoField::Boundary& bFld = sFld.
boundaryField();
49 for (
const T& val : bFld[patchi])
56 const labelUList& neighbour = this->faceNeighbour();
59 for (label facei = 0; facei < nInternalFaces(); facei++)
61 label oldFacei =
faceMap[facei];
72 const cell& ownFaces =
cells[owner[facei]];
73 for (
auto ownFacei : ownFaces)
77 tmpValue += tsFld[ownFacei];
82 const cell& neiFaces =
cells[neighbour[facei]];
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);
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
static constexpr const zero Zero
Global zero (0)
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Mesh data needed to do the Finite Volume discretisation.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
void mapNewInternalFaces(const labelList &faceMap, GeometricField< T, fvsPatchField, surfaceMesh > &)
Map single non-flux surface<Type>Field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
#define forAll(list, i)
Loop across all elements in list.
SubField is a Field obtained as a section of another Field, without its own allocation....
#define forAllIters(container, iter)
Iterate across all elements in the container object.
A HashTable similar to std::unordered_map.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
#define DebugInfo
Report an information message using Foam::Info.
A traits class, which is primarily used for primitives.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
Generic GeometricField class.
#define WarningInFunction
Report a warning using Foam::Warning.
A cell is defined as a list of faces with extra functionality.
const Boundary & boundaryField() const
Return const-reference to the boundary field.