Class SingleCellSampler
Defined in File SingleCellSampler.H
Inheritance Relationships
Base Type
public Sampler(Class Sampler)
Class Documentation
-
class SingleCellSampler : public Sampler
Class for sampling data to the wall models for a single cell per face.
Contributors/Copyright: 2019 Timofey Mukha.
Contributors/Copyright: 2018-2026 Timofey Mukha
- Source files
- Source files
Public Functions
-
SingleCellSampler(const fvPatch&, scalar averagingTime, const word interpolationType = "cell", const word cellFinderType = "Tree", const word lengthScaleType = "CubeRootVol", bool hIsIndex = false, bool excludeWallAdjacent = false)
-
SingleCellSampler(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)
-
SingleCellSampler(const SingleCellSampler&) = default
-
virtual ~SingleCellSampler()
-
virtual void addField(SampledField*) override
Add field for sampling.
-
inline const labelList &indexList() const
Return the list of cell-indices that are used to sample data.
-
inline const scalarField &h() const
Return h.
-
inline virtual const scalarField &lengthList() const
Return the length-list.
-
inline label operator[](const label i) const
Element access operator.
-
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.