Foam::cellCutPlot Namespace Reference

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< weightcalcNonInterpolatingWeights (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< weightcalcInterpolatingWeights (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< weightcalcWeights (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< weightcalcWeights (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< scalarFieldcalcCutXs (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...
 

Detailed Description

Functions for generating weights for a cut-plot of a patch.

Source files

Function Documentation

◆ fieldPairPtr()

autoPtr<Pair<Field<Type> > > Foam::cellCutPlot::fieldPairPtr ( const label  size)

Allocate and return a pair of fields.

Definition at line 46 of file cellCutPlot.C.

◆ fieldPairPairPtr()

autoPtr<Pair<Pair<Field<Type> > > > Foam::cellCutPlot::fieldPairPairPtr ( const label  size)

Allocate and return a pair of a pair of fields.

Definition at line 58 of file cellCutPlot.C.

◆ calcNonInterpolatingWeights()

◆ calcInterpolatingWeights()

◆ calcWeights() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcWeights() [2/2]

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 
)

◆ calcCutXs()

◆ writeLayers()

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().

Here is the call graph for this function:

◆ applyWeights()

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().

Here is the caller graph for this function: