32#ifndef MapFvSurfaceField_H
33#define MapFvSurfaceField_H
43template<
class Type,
class MeshMapper>
54 const MeshMapper& mapper
59template<
class Type,
class MeshMapper>
63 const MeshMapper& mapper
66 if (
field.size() != mapper.surfaceMap().sizeBeforeMapping())
69 <<
"Incompatible size before mapping. Field size: " <<
field.size()
70 <<
" map size: " << mapper.surfaceMap().sizeBeforeMapping()
77 field.autoMap(mapper.surfaceMap(),
field.is_oriented());
79 if (
field.is_oriented())
82 const labelList flipFaces = mapper.surfaceMap().flipFaceFlux().toc();
86 if (flipFaces[i] <
field.size())
88 field[flipFaces[i]] *= -1.0;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
MapInternalField()=default
Mesh data needed to do the Finite Volume discretisation.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define forAll(list, i)
Loop across all elements in list.