Momentum and turbulence source/sink-terms for tree canopy according to Svensson & Häggkvist (1990), with parameters adjusted according t o Mochida et al. (2008). More...
Public Member Functions | |
TypeName ("svenssonHaggkvistCanopySource") | |
Runtime type information. More... | |
svenssonHaggkvistCanopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~svenssonHaggkvistCanopySource () |
Destructor. More... | |
dimensionedScalar | CpEps1 () const |
void | addSup (fvMatrix< vector > &eqn, const label fieldi) |
Source term to momentum equation. More... | |
void | addSup (fvMatrix< scalar > &eqn, const label fieldi) |
Source term to scalar equations (k & epsilon) More... | |
void | addSup (const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source term to compressible momentum equation. More... | |
void | addSup (const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi) |
Source term to compressible scalar equation (k & epsilon) More... | |
TypeName ("svenssonHaggkvistCanopySource") | |
Runtime type information. More... | |
svenssonHaggkvistCanopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~svenssonHaggkvistCanopySource () |
Destructor. More... | |
dimensionedScalar | CpEps1 () const |
void | addSup (fvMatrix< vector > &eqn, const label fieldi) |
Source term to momentum equation. More... | |
void | addSup (fvMatrix< scalar > &eqn, const label fieldi) |
Source term to scalar equations (k & epsilon) More... | |
void | addSup (const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source term to compressible momentum equation. More... | |
void | addSup (const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi) |
Source term to compressible scalar equation (k & epsilon) More... | |
![]() | |
TypeName ("canopySource") | |
Runtime type information. More... | |
canopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~canopySource () |
Destructor. More... | |
bool | read (const dictionary &dict) |
Read dictionary. More... | |
TypeName ("canopySource") | |
Runtime type information. More... | |
canopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~canopySource () |
Destructor. More... | |
bool | read (const dictionary &dict) |
Read dictionary. More... | |
![]() | |
TypeName ("option") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh),(name, modelType, dict, mesh)) | |
option (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
autoPtr< option > | clone () const |
Return clone. More... | |
virtual | ~option () |
Destructor. More... | |
const word & | name () const |
Return const access to the source name. More... | |
const fvMesh & | mesh () const |
Return const access to the mesh database. More... | |
const dictionary & | coeffs () const |
Return dictionary. More... | |
bool | active () const |
Return const access to the source active flag. More... | |
void | setApplied (const label fieldI) |
Set the applied flag to true for field index fieldI. More... | |
Switch & | active () |
Return access to the source active flag. More... | |
virtual bool | isActive () |
Is the source active? More... | |
virtual label | applyToField (const word &fieldName) const |
Return index of field name if found in fieldNames list. More... | |
virtual void | checkApplied () const |
Check that the source has been applied. More... | |
virtual void | addSup (fvMatrix< symmTensor > &eqn, const label fieldI) |
virtual void | addSup (fvMatrix< sphericalTensor > &eqn, const label fieldI) |
virtual void | addSup (fvMatrix< tensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &rho, fvMatrix< symmTensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &rho, fvMatrix< sphericalTensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &rho, fvMatrix< tensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< symmTensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< sphericalTensor > &eqn, const label fieldI) |
virtual void | addSup (const volScalarField &alpha, const volScalarField &rho, fvMatrix< tensor > &eqn, const label fieldI) |
virtual void | constrain (fvMatrix< scalar > &eqn, const label fieldI) |
virtual void | constrain (fvMatrix< vector > &eqn, const label fieldI) |
virtual void | constrain (fvMatrix< sphericalTensor > &eqn, const label fieldI) |
virtual void | constrain (fvMatrix< symmTensor > &eqn, const label fieldI) |
virtual void | constrain (fvMatrix< tensor > &eqn, const label fieldI) |
virtual void | correct (volScalarField &field) |
virtual void | correct (volVectorField &field) |
virtual void | correct (volSphericalTensorField &field) |
virtual void | correct (volSymmTensorField &field) |
virtual void | correct (volTensorField &field) |
virtual void | writeHeader (Ostream &) const |
Write the source header information. More... | |
virtual void | writeFooter (Ostream &) const |
Write the source footer information. More... | |
virtual void | writeData (Ostream &) const |
Write the source properties. More... | |
Private Member Functions | |
svenssonHaggkvistCanopySource (const svenssonHaggkvistCanopySource &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const svenssonHaggkvistCanopySource &) |
Disallow default bitwise assignment. More... | |
template<class RhoFieldType > | |
void | addSup (const RhoFieldType &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source term to momentum equation. More... | |
template<class RhoFieldType > | |
void | addSup (const RhoFieldType &rho, fvMatrix< scalar > &eqn, const label fieldi) |
svenssonHaggkvistCanopySource (const svenssonHaggkvistCanopySource &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const svenssonHaggkvistCanopySource &) |
Disallow default bitwise assignment. More... | |
template<class RhoFieldType > | |
void | addSup (const RhoFieldType &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source term to momentum equation. More... | |
template<class RhoFieldType > | |
void | addSup (const RhoFieldType &rho, fvMatrix< scalar > &eqn, const label fieldi) |
Private Attributes | |
dimensionedScalar | CpEps1_ |
Momentum and turbulence source/sink-terms for tree canopy according to Svensson & Häggkvist (1990), with parameters adjusted according t o Mochida et al. (2008).
Author David Segersson, Swedish Meteorological and Hydrological Institute david .seg ersso n@sm hi.se
Momentum source term is expressed as:
Source term for k is expressed as:
Source term for epsilon is expressed as:
where
![]() | = | density |
![]() | = | magnitude of velocity |
![]() | = | turbulent kinetic energy |
![]() | = | leaf area density [m] |
![]() | = | tree canopy drag coefficient |
![]() | = | coefficient with value 1.8 (Mochida et al. 2008) |
Use with any variant of the k-\epsilon turbulence model.
Reference: Mochida A., Tabata Y., Iwata T., Yoshino H., Examining tree canopy models for CFD prediction of wind environment at pedestrian level, J. Wind Eng. Ind. Aerodyn. 96 (2008) 1667-1677.
Svensson, U., Häggkvist, K. A two-equation turbulence model for canopy flows. J. Wind Eng. Ind. Aerodyn. 35 (1990) 201–211.
SBM { type svenssonHaggkvistCanopySource; active on; }
Author David Segersson, Swedish Meteorological and Hydrological Institute david .seg ersso n@sm hi.se
Momentum source term is expressed as:
Source term for k is expressed as:
Source term for epsilon is expressed as:
where
![]() | = | density |
![]() | = | magnitude of velocity |
![]() | = | turbulent kinetic energy |
![]() | = | leaf area density [m] |
![]() | = | tree canopy drag coefficient |
![]() | = | coefficient with value 1.8 (Mochida et al. 2008) |
Use with any variant of the k-\epsilon turbulence model.
Reference: Mochida A., Tabata Y., Iwata T., Yoshino H., Examining tree canopy models for CFD prediction of wind environment at pedestrian level, J. Wind Eng. Ind. Aerodyn. 96 (2008) 1667-1677.
Svensson, U., Häggkvist, K. A two-equation turbulence model for canopy flows. J. Wind Eng. Ind. Aerodyn. 35 (1990) 201–211.
SBM { type svenssonHaggkvistCanopySource; active on; }
Definition at line 135 of file svenssonHaggkvistCanopySource.H.
|
private |
Disallow default bitwise copy construct.
svenssonHaggkvistCanopySource | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Construct from components.
Definition at line 52 of file svenssonHaggkvistCanopySource.C.
|
inlinevirtual |
Destructor.
Definition at line 192 of file svenssonHaggkvistCanopySource.H.
|
private |
Disallow default bitwise copy construct.
svenssonHaggkvistCanopySource | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Construct from components.
|
inlinevirtual |
Destructor.
Definition at line 192 of file svenssonHaggkvistCanopySource.H.
|
private |
Disallow default bitwise assignment.
Source term to momentum equation.
TypeName | ( | "svenssonHaggkvistCanopySource" | ) |
Runtime type information.
|
inline |
Definition at line 199 of file svenssonHaggkvistCanopySource.H.
References svenssonHaggkvistCanopySource::CpEps1_.
Source term to momentum equation.
Reimplemented from canopySource.
Definition at line 78 of file svenssonHaggkvistCanopySource.C.
References Foam::mag(), fvMatrix::psi(), Foam::fvc::Sp(), and U.
Source term to scalar equations (k & epsilon)
Reimplemented from option.
Definition at line 123 of file svenssonHaggkvistCanopySource.C.
References epsilon, k, Foam::mag(), Foam::pow(), fvMatrix::psi(), Foam::fvc::Sp(), and U.
|
virtual |
Source term to compressible momentum equation.
Reimplemented from canopySource.
Definition at line 98 of file svenssonHaggkvistCanopySource.C.
References Foam::mag(), fvMatrix::psi(), rho, Foam::fvc::Sp(), and U.
|
virtual |
Source term to compressible scalar equation (k & epsilon)
Reimplemented from option.
Definition at line 153 of file svenssonHaggkvistCanopySource.C.
References epsilon, k, Foam::mag(), Foam::pow(), fvMatrix::psi(), rho, Foam::fvc::Sp(), and U.
|
private |
Disallow default bitwise assignment.
Source term to momentum equation.
TypeName | ( | "svenssonHaggkvistCanopySource" | ) |
Runtime type information.
|
inline |
Definition at line 199 of file svenssonHaggkvistCanopySource.H.
References svenssonHaggkvistCanopySource::CpEps1_.
Source term to momentum equation.
Reimplemented from canopySource.
Source term to scalar equations (k & epsilon)
Reimplemented from option.
|
virtual |
Source term to compressible momentum equation.
Reimplemented from canopySource.
|
virtual |
Source term to compressible scalar equation (k & epsilon)
Reimplemented from option.
|
private |
Definition at line 142 of file svenssonHaggkvistCanopySource.H.
Referenced by svenssonHaggkvistCanopySource::CpEps1().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.