30 #ifndef MapFvSurfaceField_H 31 #define MapFvSurfaceField_H 41 template<
class Type,
class MeshMapper>
52 const MeshMapper& mapper
57 template<
class Type,
class MeshMapper>
61 const MeshMapper& mapper
64 if (field.
size() != mapper.surfaceMap().sizeBeforeMapping())
67 <<
"Incompatible size before mapping. Field size: " << field.
size()
68 <<
" map size: " << mapper.surfaceMap().sizeBeforeMapping()
72 field.
autoMap(mapper.surfaceMap());
75 const labelList flipFaces = mapper.surfaceMap().flipFaceFlux().toc();
79 if (flipFaces[i] < field.
size())
81 field[flipFaces[i]] *= -1.0;
#define forAll(list, i)
Loop across all elements in list.
Mesh data needed to do the Finite Volume discretisation.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Pre-declare SubField and related Field type.
errorManip< error > abort(error &err)
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...