30 #ifndef MapFvSurfaceField_H
31 #define MapFvSurfaceField_H
40 template<
class Type,
class MeshMapper>
51 const MeshMapper& mapper
56 template<
class Type,
class MeshMapper>
60 const MeshMapper& mapper
63 if (field.size() != mapper.surfaceMap().sizeBeforeMapping())
66 <<
"Incompatible size before mapping. Field size: " << field.size()
67 <<
" map size: " << mapper.surfaceMap().sizeBeforeMapping()
71 mapper.surfaceMap()(field, field);
76 const labelList flipFaces = mapper.surfaceMap().flipFaceFlux().toc();
80 if (flipFaces[i] < field.
size())
82 field[flipFaces[i]] *= -1.0;
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void size(const label)
Override size to be inconsistent with allocated storage.
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
Mesh data for surface fields.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
bool isFlux(const DimensionedField< Type, surfaceMesh > &df)
Check if surfaceField is a flux.