Class LawOfTheWall

Inheritance Relationships

Base Type

  • public refCount

Derived Types

Class Documentation

class LawOfTheWall : public refCount

Base abstract class for laws of the wall.

It is to be used in conjuction with the LOTW wall model. The law of the wall provides an implicit function \(F(u, y, u_\tau, \nu)\) and its derivative, which can be used to iteratively solve for the friction velocity.

Authors Timofey Mukha, Saleh Rezaeiravesh.

Contributors/Copyright: 2016-2019 Timofey Mukha 2017 Saleh Rezaeiravesh

Subclassed by IntegratedReichardtLawOfTheWall, IntegratedWernerWengleLawOfTheWall, ReichardtLawOfTheWall, RoughLogLawOfTheWall, SpaldingLawOfTheWall, WernerWengleLawOfTheWall

Public Functions

inline LawOfTheWall(const dictionary &dict)

Construct from dictionary.

inline LawOfTheWall(const word &lawName, const dictionary &dict)

Construct from TypeName and dictionary.

LawOfTheWall() = default

Default constructor.

LawOfTheWall &operator=(const LawOfTheWall&) = default

Assignment.

inline LawOfTheWall(const LawOfTheWall &orig)

Copy constructor.

inline virtual ~LawOfTheWall()

Destructor.

virtual autoPtr<LawOfTheWall> clone() const = 0

Clone.

inline virtual void addFieldsToSampler(Sampler &sampler)

Add necessary sampled fields to the sampler.

virtual void printCoeffs() const = 0

Print info to terminal.

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

Return the value of the implicit function defining the law.

virtual scalar derivative(const SingleCellSampler &sampler, label index, scalar uTau, scalar nu) const = 0

Return the value of the derivative of the implicit function.

defining the law. Should throw an error if derivative does not exist.

virtual void write(Ostream &os) const

Write information about the law to stream.

inline dictionary constDict() const

Return the dictionary with the constants.

Public Static Functions

static autoPtr<LawOfTheWall> New(const dictionary &dict)
static autoPtr<LawOfTheWall> New(const word &lawName, const dictionary &dict)

Protected Attributes

dictionary constDict_

Dictionary holding the model constants that the law uses.