Class MultiCellSampler
Defined in File MultiCellSampler.H
Inheritance Relationships
Base Type
public Sampler(Class Sampler)
Class Documentation
-
class MultiCellSampler : public Sampler
Class for sampling from several consecutive cells per wall face.
Contributors/Copyright: 2018-2026 Timofey Mukha
- Source files
Public Functions
-
MultiCellSampler(const fvPatch&, scalar averagingTime, const word interpolationType = "cell", const word cellFinderType = "Tree", const word lengthScaleType = "CubeRootVol", bool hIsIndex = false, bool excludeWallAdjacent = false)
Construct from patch and averaging time.
-
MultiCellSampler(const word &samplerName, const fvPatch &p, scalar averagingTime, const word interpolationType = "cell", const word cellFinderType = "Tree", const word lengthScaleType = "CubeRootVol", bool hIsIndex = false, bool excludeWallAdjacent = false)
Construct from type, patch and averaging time.
-
inline MultiCellSampler(const MultiCellSampler &orig)
Copy constructor.
-
inline virtual ~MultiCellSampler()
-
virtual void addField(SampledField*) override
Add field for sampling.
-
inline const labelListList &indexList() const
Return the list of lists of cell-indices that are used to sample data.
-
inline const scalarListList &h() const
Return h.
-
inline const scalarListList &lengthList() const
Return the length-list.
-
inline labelList operator[](const label i) const
Returning sampling cell indices for a given wall face using [].
-
virtual void sample() const override
Sample the fields.
Protected Functions
-
virtual void createIndexList() override
Create list of cell-indices from where data is sampled.
-
virtual void createLengthList(const word lengthScaleType) override
Compute the length-scales.
-
void createLengthListCubeRootVol()
Compute length-scales as cubic root of the volume.
-
void createLengthListWallNormalDistance()
Compute length-scales as distance across wall-normal direction.