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;
107 typedef GeometricField<T, fvsPatchField, surfaceMesh> GeoField;
114 <<
"dynamicRefineFvMesh::mapNewInternalFaces():"
115 <<
" Mapping new internal faces by interpolation on "
116 << sFld.name()<<
endl;
118 if (sFld.is_oriented())
121 << sFld.name() <<
" since of type " << sFld.type() <<
endl;
125 mapNewInternalFaces(
faceMap, sFld);
154 <<
"dynamicRefineFvMesh::mapNewInternalFaces():"
155 <<
" Mapping new internal faces by interpolation on "
156 << sFld.name() <<
endl;
158 if (sFld.is_oriented())
161 <<
"dynamicRefineFvMesh::mapNewInternalFaces(): "
162 <<
"Converting oriented field " << sFld.name()
163 <<
" to intensive field and mapping" <<
endl;
169 NormalGeoField fFld(sFld*Sf/
Foam::sqr(magSf));
172 mapNewInternalFaces(
faceMap, fFld);
179 mapNewInternalFaces(
faceMap, sFld);
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Generic GeometricField class.
const Internal & internalField() const noexcept
Return a const-reference to the dimensioned internal field.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
SubField is a Field obtained as a section of another Field, without its own allocation....
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.
const surfaceVectorField & Sf() const
Return cell face area vectors.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
UPtrList< Type > sorted()
Return sorted list of objects with a class satisfying isA<Type> or isType<Type> (with Strict).
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
A traits class, which is primarily used for primitives and vector-space.
label start() const noexcept
The start label of boundary faces in the polyMesh face list.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
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.
#define DebugInfo
Report an information message using Foam::Info.
#define WarningInFunction
Report a warning using Foam::Warning.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< label > labelList
A List of labels.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< cell > cellList
List of cell.
static constexpr const zero Zero
Global zero (0).
UList< label > labelUList
A UList of labels.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define forAll(list, i)
Loop across all elements in list.