Functions for generating weights for a cut-plot of a patch. More...
Functions | |
| List< weight > | calcNonInterpolatingWeights (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 normalise) |
| List< weight > | calcInterpolatingWeights (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 normalise) |
| 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) |
| List< weight > | calcWeights (const faceList &faces, const UList< vector > &faceAreas, const UList< vector > &faceNormals, const pointField &points, const scalarField &pointXs, const scalarField &cutXs, const bool interpolate, const bool normalise=true) |
| Calculate and return weights. More... | |
| template<class PatchType > | |
| List< weight > | calcWeights (const PatchType &p, const scalarField &localPointXs, const scalarField &cutXs, const bool interpolate, const bool normalise=true) |
| Calculate and return weights. More... | |
| 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. More... | |
| template<class PatchType > | |
| tmp< scalarField > | calcCutXs (const PatchType &p, const scalarField &localPointXs, 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. More... | |
| 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. More... | |
| void | writeLayers (const UIndirectList< face > &faces, const List< patchCutPlot::weight > &weights, const word &functionName, const fvMesh &functionMesh) |
| Write the layers as components of a tensor field for debugging. More... | |
Functions for generating weights for a cut-plot of a patch.
| List<weight> Foam::patchCutPlot::calcNonInterpolatingWeights | ( | 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 | normalise | ||
| ) |
Definition at line 43 of file patchCutPlot.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::cutPoly::faceCutArea(), Foam::cutPoly::faceCuts(), forAll, UList< T >::last(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::normalise(), points, List< T >::size(), and List< T >::transfer().
Referenced by calcWeights().


| List<weight> Foam::patchCutPlot::calcInterpolatingWeights | ( | 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 | normalise | ||
| ) |
Definition at line 160 of file patchCutPlot.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::cutPoly::faceAreaAverage(), Foam::cutPoly::faceCutAreaIntegral(), Foam::cutPoly::faceCuts(), forAll, UList< T >::last(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::max(), Foam::normalise(), points, List< T >::size(), and List< T >::transfer().
Referenced by calcWeights().


| List<weight> Foam::patchCutPlot::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 | ||
| ) |
Definition at line 396 of file patchCutPlot.C.
References calcInterpolatingWeights(), calcNonInterpolatingWeights(), Foam::fvc::interpolate(), Foam::normalise(), and points.
Referenced by calcCutXs(), calcWeights(), and sectionalForcesBase::weights().


| Foam::List< Foam::patchCutPlot::weight > calcWeights | ( | const faceList & | faces, |
| const UList< vector > & | faceAreas, | ||
| const UList< vector > & | faceNormals, | ||
| const pointField & | points, | ||
| const scalarField & | pointXs, | ||
| const scalarField & | cutXs, | ||
| const bool | interpolate, | ||
| const bool | normalise = true |
||
| ) |
Calculate and return weights.
Definition at line 439 of file patchCutPlot.C.
References calcWeights(), forAll, Foam::fvc::interpolate(), Foam::max(), Foam::min(), Foam::normalise(), points, List< T >::size(), and Foam::sortedOrder().

| List<weight> Foam::patchCutPlot::calcWeights | ( | const PatchType & | p, |
| const scalarField & | localPointXs, | ||
| const scalarField & | cutXs, | ||
| const bool | interpolate, | ||
| const bool | normalise = true |
||
| ) |
Calculate and return weights.
| Foam::tmp< Foam::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.
Definition at line 487 of file patchCutPlot.C.
References Foam::cellCutPlot::applyWeights(), calcWeights(), DeclareTypeFieldValues, f(), fieldNames, FOR_ALL_FIELD_TYPES, forAll, TimePaths::globalPath(), Foam::gMax(), Foam::gMin(), Foam::fvc::interpolate(), UList< T >::last(), Foam::linearSequence01(), Foam::mag(), Foam::max(), Foam::min(), mkDir(), IOobject::name(), dimensioned< Type >::name(), Foam::name(), nIntervals(), points, tmp< T >::ref(), List< T >::resize(), ResizeTypeFieldValues, scalarField(), List< T >::size(), Foam::sortedOrder(), objectRegistry::time(), TypeFieldValuesParameter, setWriter::write(), xMax, and xMin.
Referenced by sectionalForceGraph::distances().


| tmp<scalarField> Foam::patchCutPlot::calcCutXs | ( | const PatchType & | p, |
| const scalarField & | localPointXs, | ||
| 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.
| 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.
Definition at line 674 of file patchCutPlot.C.
References polyMesh::boundary(), GeometricField< Type, GeoMesh, PrimitiveField >::boundaryFieldRef(), weight::cuti, Foam::dimensions::dimless, weight::elementi, Foam::endl(), polyMesh::faces(), forAll, Foam::Info, primitiveMesh::magFaceAreas(), IOobject::name(), dimensioned< Type >::name(), primitiveMesh::nInternalFaces(), patchi, polyBoundaryMesh::patchIndices(), fvMesh::poly(), fvMesh::time(), weight::value, and regIOobject::write().

| void writeLayers | ( | const UIndirectList< face > & | faces, |
| const List< patchCutPlot::weight > & | weights, | ||
| const word & | functionName, | ||
| const fvMesh & | functionMesh | ||
| ) |
Write the layers as components of a tensor field for debugging.
Definition at line 741 of file patchCutPlot.C.
References UIndirectList< T >::addressing(), polyMesh::boundary(), GeometricField< Type, GeoMesh, PrimitiveField >::boundaryFieldRef(), weight::cuti, Foam::dimensions::dimless, weight::elementi, Foam::endl(), forAll, Foam::Info, primitiveMesh::magFaceAreas(), IOobject::name(), dimensioned< Type >::name(), primitiveMesh::nInternalFaces(), patchi, polyBoundaryMesh::patchIndices(), fvMesh::poly(), fvMesh::time(), weight::value, and regIOobject::write().
