Functions for generating weights for a cut-plot of a patch. More...
Classes | |
| class | faceData |
| Base class for classes which manage incomplete sets of face data. More... | |
| class | faceCutData |
| Class to manage face cut data. More... | |
| class | faceFsData |
| Class to manage face basis function data. More... | |
Functions | |
| template<class Type > | |
| autoPtr< Pair< Field< Type > > > | fieldPairPtr (const label size) |
| Allocate and return a pair of fields. More... | |
| template<class Type > | |
| autoPtr< Pair< Pair< Field< Type > > > > | fieldPairPairPtr (const label size) |
| Allocate and return a pair of a pair of fields. More... | |
| List< weight > | calcNonInterpolatingWeights (const polyMesh &mesh, const generatedCellZone &zone, const scalarField &pointXs, const scalarField &zoneCellMinXs, const scalarField &zoneCellMaxXs, const labelList &zoneCellMinOrder, const scalarField &cutXs, const bool normalise) |
| List< weight > | calcInterpolatingWeights (const polyMesh &mesh, const generatedCellZone &zone, const scalarField &pointXs, const scalarField &zoneCellMinXs, const scalarField &zoneCellMaxXs, const labelList &zoneCellMinOrder, const scalarField &cutXs, const bool normalise) |
| List< weight > | calcWeights (const polyMesh &mesh, const generatedCellZone &zone, const scalarField &pointXs, const scalarField &cellMinXs, const scalarField &cellMaxXs, const labelList &cellMinOrder, const scalarField &cutXs, const bool interpolate, const bool normalise) |
| List< weight > | calcWeights (const polyMesh &mesh, const generatedCellZone &zone, const scalarField &pointXs, const scalarField &cutXs, const bool interpolate, const bool normalise=true) |
| Calculate and return weights. More... | |
| tmp< scalarField > | calcCutXs (const polyMesh &mesh, const generatedCellZone &zone, const scalarField &pointXs, const bool interpolate, const label nCuts, const label nIter, const bool debug=false, const word &functionName=word::null, const setWriter &functionFormatter=NullObjectRef< setWriter >()) |
| Compute and return evenly-spaced cut coordinates. More... | |
| void | writeLayers (const fvMesh &mesh, const List< cellCutPlot::weight > &weights, const word &functionName) |
| Write the layers as components of a tensor field for debugging. More... | |
| template<class Type > | |
| tmp< Field< Type > > | applyWeights (const label n, const List< cellCutPlot::weight > &weights, const Field< Type > &cellValues) |
| Construct plot values from cell values given a set of weights. More... | |
Functions for generating weights for a cut-plot of a patch.
Allocate and return a pair of fields.
Definition at line 46 of file cellCutPlot.C.
Allocate and return a pair of a pair of fields.
Definition at line 58 of file cellCutPlot.C.
| List<weight> Foam::cellCutPlot::calcNonInterpolatingWeights | ( | const polyMesh & | mesh, |
| const generatedCellZone & | zone, | ||
| const scalarField & | pointXs, | ||
| const scalarField & | zoneCellMinXs, | ||
| const scalarField & | zoneCellMaxXs, | ||
| const labelList & | zoneCellMinOrder, | ||
| const scalarField & | cutXs, | ||
| const bool | normalise | ||
| ) |
Definition at line 373 of file cellCutPlot.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), faceCutData::cache(), Foam::cutPoly::cellCuts(), Foam::cutPoly::cellCutVolume(), generatedCellZone::celli(), cells, primitiveMesh::cells(), primitiveMesh::cellVolumes(), faceData::clear(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), faceCutData::faceCutAreas(), faceCutData::faceCuts(), polyMesh::faces(), forAll, UList< T >::last(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::max(), mesh, generatedCellZone::nCells(), DemandDrivenMeshObject< polyMesh, TopoChangeableMeshObject, cellEdgeAddressingList >::New(), Foam::normalise(), points, polyMesh::points(), List< T >::size(), and List< T >::transfer().
Referenced by calcWeights().


| List<weight> Foam::cellCutPlot::calcInterpolatingWeights | ( | const polyMesh & | mesh, |
| const generatedCellZone & | zone, | ||
| const scalarField & | pointXs, | ||
| const scalarField & | zoneCellMinXs, | ||
| const scalarField & | zoneCellMaxXs, | ||
| const labelList & | zoneCellMinOrder, | ||
| const scalarField & | cutXs, | ||
| const bool | normalise | ||
| ) |
Definition at line 540 of file cellCutPlot.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), faceCutData::cache(), faceFsData::cache(), Foam::cutPoly::cellCuts(), Foam::cutPoly::cellCutVolumeIntegral(), generatedCellZone::celli(), cells, primitiveMesh::cells(), Foam::cutPoly::cellVolumeIntegral(), primitiveMesh::cellVolumes(), faceData::clear(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), faceCutData::faceCutAreas(), faceFsData::faceCutFs(), faceCutData::faceCuts(), faceFsData::faceFs(), polyMesh::faces(), forAll, UList< T >::last(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::max(), mesh, generatedCellZone::nCells(), DemandDrivenMeshObject< polyMesh, TopoChangeableMeshObject, cellEdgeAddressingList >::New(), Foam::normalise(), faceFsData::pointFs(), points, polyMesh::points(), List< T >::size(), and List< T >::transfer().
Referenced by calcWeights().


| List<weight> Foam::cellCutPlot::calcWeights | ( | const polyMesh & | mesh, |
| const generatedCellZone & | zone, | ||
| const scalarField & | pointXs, | ||
| const scalarField & | cellMinXs, | ||
| const scalarField & | cellMaxXs, | ||
| const labelList & | cellMinOrder, | ||
| const scalarField & | cutXs, | ||
| const bool | interpolate, | ||
| const bool | normalise | ||
| ) |
Definition at line 847 of file cellCutPlot.C.
References calcInterpolatingWeights(), calcNonInterpolatingWeights(), Foam::fvc::interpolate(), mesh, and Foam::normalise().
Referenced by calcCutXs(), calcWeights(), pointMVCWeight::calcWeights(), cutLayerAverage::write(), and patchCutLayerAverage::write().


| Foam::List< Foam::cellCutPlot::weight > calcWeights | ( | const polyMesh & | mesh, |
| const generatedCellZone & | zone, | ||
| const scalarField & | pointXs, | ||
| const scalarField & | cutXs, | ||
| const bool | interpolate, | ||
| const bool | normalise = true |
||
| ) |
Calculate and return weights.
Definition at line 886 of file cellCutPlot.C.
References calcWeights(), generatedCellZone::celli(), cells, primitiveMesh::cells(), polyMesh::faces(), forAll, Foam::fvc::interpolate(), Foam::max(), mesh, Foam::min(), generatedCellZone::nCells(), Foam::normalise(), and Foam::sortedOrder().

| Foam::tmp< Foam::scalarField > calcCutXs | ( | const polyMesh & | mesh, |
| const generatedCellZone & | zone, | ||
| const scalarField & | pointXs, | ||
| const bool | interpolate, | ||
| const label | nCuts, | ||
| const label | nIter, | ||
| const bool | debug = false, |
||
| const word & | functionName = word::null, |
||
| const setWriter & | functionFormatter = NullObjectRef<setWriter>() |
||
| ) |
Compute and return evenly-spaced cut coordinates.
Definition at line 940 of file cellCutPlot.C.
References applyWeights(), calcWeights(), generatedCellZone::celli(), cells, primitiveMesh::cells(), primitiveMesh::cellVolumes(), DeclareTypeFieldValues, f(), polyMesh::faces(), fieldNames, FOR_ALL_FIELD_TYPES, forAll, TimePaths::globalPath(), Foam::gMax(), Foam::gMin(), Foam::fvc::interpolate(), UList< T >::last(), Foam::linearSequence01(), Foam::mag(), Foam::max(), mesh, Foam::min(), mkDir(), fvMesh::name(), dimensioned< Type >::name(), Foam::name(), generatedCellZone::nCells(), nIntervals(), tmp< T >::ref(), List< T >::resize(), ResizeTypeFieldValues, scalarField(), Foam::sortedOrder(), fvMesh::time(), TypeFieldValuesParameter, setWriter::write(), xMax, and xMin.

| void writeLayers | ( | const fvMesh & | mesh, |
| const List< cellCutPlot::weight > & | weights, | ||
| const word & | functionName | ||
| ) |
Write the layers as components of a tensor field for debugging.
Definition at line 1129 of file cellCutPlot.C.
References primitiveMesh::cellVolumes(), weight::cuti, Foam::dimensions::dimless, weight::elementi, Foam::endl(), forAll, Foam::Info, mesh, IOobject::name(), dimensioned< Type >::name(), fvMesh::time(), weight::value, and regIOobject::write().

| tmp<Field<Type> > Foam::cellCutPlot::applyWeights | ( | const label | n, |
| const List< cellCutPlot::weight > & | weights, | ||
| const Field< Type > & | cellValues | ||
| ) |
Construct plot values from cell values given a set of weights.
Referenced by Foam::patchCutPlot::calcCutXs(), and calcCutXs().
