35 #ifndef cutPolyIntegral_H
36 #define cutPolyIntegral_H
41 #include <type_traits>
53 template<
template<
class>
class FaceValues,
class ... Types>
57 const FaceValues<point>& fPs,
59 const std::tuple<FaceValues<Types> ...>& fPsis,
60 const std::tuple<Types ...>& fPsiAvg
75 const scalar isoAlpha,
98 const scalar isoAlpha,
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 2-tuple for storing two objects of different types.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
const dimensionedScalar c
Speed of light in a vacuum.
std::tuple< vector, typename outerProduct< vector, Types >::type ... > faceAreaIntegral(const FaceValues< point > &fPs, const point &fPAvg, const std::tuple< FaceValues< Types > ... > &fPsis, const std::tuple< Types ... > &fPsiAvg)
Compute the face-area and face-area-integrals of the given properties over.
Tuple2< scalar, Type > cellCutVolumeIntegral(const cell &c, const cellEdgeAddressing &cAddr, const scalar cVolume, const Type &cPsi, const labelListList &cCuts, const faceUList &fs, const vectorField &fAreas, const vectorField &fCentres, const vectorField &fPsis, const vectorField &fCutAreas, const vectorField &fCutPsis, const pointField &ps, const Field< Type > &pPsis, const scalarField &pAlphas, const scalar isoAlpha, const bool below)
Compute the cell-volume and cell-volume-integral of the given property over.
Tuple2< vector, typename outerProduct< vector, Type >::type > faceCutAreaIntegral(const face &f, const vector &fArea, const Type &fPsi, const List< labelPair > &fCuts, const pointField &ps, const Field< Type > &pPsis, const scalarField &pAlphas, const scalar isoAlpha, const bool below)
Compute the face-area and face-area-integral of the given property over.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.