Class RoughLogLawOfTheWall

Inheritance Relationships

Base Type

Class Documentation

class RoughLogLawOfTheWall : public LawOfTheWall

A log-law, in which the wall-normal distance is scaled by roughness length-scale.

\[ u^+ = 1/\kappa \log \left( y/k_s \right) + B \]

Since the formula above provides an explicit value for the friction velocity Newton’s method will converge in a single iteration.

Usage:

    Law
    {
        type      RoughLogLaw;
        kappa     value; (default 0.4)
        B         value; 
        ks        value;
    }

Contributors/Copyright: 2019-2023 Timofey Mukha

Source files

Public Functions

RoughLogLawOfTheWall(const dictionary&)

Construct provided dictionary.

RoughLogLawOfTheWall(const word &lawname, const dictionary&)

Construct provided TypeName and dictionary.

RoughLogLawOfTheWall(const scalar kappa, const scalar B, const scalar ks)

Construct from model constants.

RoughLogLawOfTheWall(const RoughLogLawOfTheWall&) = default

Copy constructor.

RoughLogLawOfTheWall &operator=(const RoughLogLawOfTheWall&) = default

Assignment.

inline virtual autoPtr<LawOfTheWall> clone() const override

Clone.

inline virtual ~RoughLogLawOfTheWall()

Destructor.

inline scalar kappa() const
inline scalar B() const
inline scalar ks() const
virtual void printCoeffs() const override

Print the model coefficients to terminal.

virtual scalar value(const SingleCellSampler &sampler, label index, scalar uTau, scalar nu) const override

Return the value of the implicit function defining the law.

scalar value(scalar u, scalar y, scalar uTau, scalar nu) const
virtual scalar derivative(const SingleCellSampler &sampler, label index, scalar uTau, scalar nu) const override

Return the value of the derivative of the implicit function.

defining the law.

scalar derivative() const