35 #ifndef patchCutPlot_H
36 #define patchCutPlot_H
50 namespace patchCutPlot
56 using cutPlot::weight;
62 const UList<vector>& faceAreas,
63 const UList<vector>& faceNormals,
72 template<
class PatchType>
93 const bool debug =
false,
95 const polyMesh& functionMesh = NullObjectRef<polyMesh>(),
96 const setWriter& functionFormatter = NullObjectRef<setWriter>()
100 template<
class PatchType>
108 const bool debug =
false,
110 const polyMesh& functionMesh = NullObjectRef<polyMesh>(),
111 const setWriter& functionFormatter = NullObjectRef<setWriter>()
120 const fvMesh& functionMesh
129 const fvMesh& functionMesh
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A List obtained as a section of another List.
A List with indirect addressing.
A functionName is a word starting with '#'.
Mesh data needed to do the Finite Volume discretisation.
Motion of the mesh specified as a list of pointMeshMovers.
Mesh consisting of general polyhedral cells.
Base class for writing coordinate sets with data.
A class for managing temporary objects.
A class for handling words, derived from string.
static const word null
An empty word.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
void writeLayers(const SubList< face > &faces, const List< patchCutPlot::weight > &weights, const word &functionName, const fvMesh &functionMesh)
Write the layers as components of a tensor field for debugging.
List< weight > calcWeights(const faceList &faces, const UList< vector > &faceAreas, const UList< vector > &faceNormals, const pointField &points, const scalarField &pointXs, const scalarField &faceMinXs, const scalarField &faceMaxXs, const labelList &faceMinOrder, const scalarField &cutXs, const bool interpolate, const bool normalise)
tmp< scalarField > calcCutXs(const faceList &faces, const Field< vector > &faceAreas, const Field< vector > &faceNormals, const pointField &points, const scalarField &pointXs, const bool interpolate, const label nCuts, const label nIter, const bool debug=false, const word &functionName=word::null, const polyMesh &functionMesh=NullObjectRef< polyMesh >(), const setWriter &functionFormatter=NullObjectRef< setWriter >())
Compute and return evenly-spaced cut coordinates.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
quaternion normalise(const quaternion &q)
Return the normalised (unit) quaternion of the given quaternion.