Momentum source term is expressed as: More...
Public Member Functions | |
TypeName ("dalpeMassonCanopySource") | |
Runtime type information. More... | |
dalpeMassonCanopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~dalpeMassonCanopySource () |
Destructor. More... | |
dimensionedScalar | betaP () const |
dimensionedScalar | betaD () const |
dimensionedScalar | C4 () const |
dimensionedScalar | C5 () const |
void | addSup (const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source terms to momentum equation (for solvers with and without explicit density) More... | |
void | addSup (fvMatrix< vector > &eqn, const label fieldi) |
void | addSup (fvMatrix< scalar > &eqn, const label fieldi) |
Source term to scalar equations (k & epsilon) More... | |
void | addSup (const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi) |
Source term to compressible scalar equation (k & epsilon) More... | |
TypeName ("dalpeMassonCanopySource") | |
Runtime type information. More... | |
dalpeMassonCanopySource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
Construct from components. More... | |
virtual | ~dalpeMassonCanopySource () |
Destructor. More... | |
dimensionedScalar | betaP () const |
dimensionedScalar | betaD () const |
dimensionedScalar | C4 () const |
dimensionedScalar | C5 () const |
void | addSup (const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi) |
Source terms to momentum equation (for solvers with and without explicit density) More... | |
void | addSup (fvMatrix< vector > &eqn, const label fieldi) |
void | addSup (fvMatrix< scalar > &eqn, const label fieldi) |
Source term to scalar equations (k & epsilon) 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 | |
dalpeMassonCanopySource (const dalpeMassonCanopySource &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const dalpeMassonCanopySource &) |
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) |
dalpeMassonCanopySource (const dalpeMassonCanopySource &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const dalpeMassonCanopySource &) |
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 | betaP_ |
dimensionedScalar | betaD_ |
dimensionedScalar | C4_ |
dimensionedScalar | C5_ |
Momentum source term is expressed as:
Author David Segersson, Swedish Meteorological and Hydrological Institute, david .seg ersso n@sm hi.se
Source term for k is expressed as:
Source term for epsilon is expressed as:
where \beta_p (1.0), \betad_d (5.03), C_{\epsilon 4} (0.78) and C_{epsilon 5} (0.78) are dimensionless coefficients
![]() | = | density |
![]() | = | magnitude of velocity |
![]() | = | turbulent kinetic energy |
![]() | = | leaf area density [m] |
![]() | = | tree canopy drag coefficient |
Use with any variant of the k-\epsilon turbulence model.
Reference: Momentum and turbulence source/sink-terms for tree canopy according to B. Dalpé and C. Masson. Numerical simulation of wind flow near a forest edge. J. of Wind Eng. and Ind. Aerodyn, 2006
canopy { type dalpeMassonCanopySource; active on; // toggle the option writeFields on; // write to disk readLanduseFromRaster on; // read landuse from raster readCanopyHeightFromRaster on; // read canopy height from raster sourcePatches (ground forest); // for which patches to set landuse patchLanduse (0 1); // landuse code per patch (if not read from raster) landuse { low_birch // name of landuse class { code 1; // code of landuse class Cd 0.2; // drag coefficient of trees LAI 2.15; // Leaf Area Index (used if LADmax is not specified) LADmax 1.2; // Maximum Leaf Area Density [m ^-1] z0 0.06; // roughness length [m] height 7.5; // tree canopy height (if not read from raster) // Vertical profile of Leaf Area Density // first value is closest to ground // each value represents an equal share of the tree height // e.g. for a 4 m tree and 4 values, each value will represent 1 m // values are scaled so that the highest will correspond to LADMax LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); }; grass { code 0; Cd 0.2; LAI 0; z0 0.06; height 0; LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); }; }; }
Author David Segersson, Swedish Meteorological and Hydrological Institute, david .seg ersso n@sm hi.se
Source term for k is expressed as:
Source term for epsilon is expressed as:
where \beta_p (1.0), \betad_d (5.03), C_{\epsilon 4} (0.78) and C_{epsilon 5} (0.78) are dimensionless coefficients
![]() | = | density |
![]() | = | magnitude of velocity |
![]() | = | turbulent kinetic energy |
![]() | = | leaf area density [m] |
![]() | = | tree canopy drag coefficient |
Use with any variant of the k-\epsilon turbulence model.
Reference: Momentum and turbulence source/sink-terms for tree canopy according to B. Dalpé and C. Masson. Numerical simulation of wind flow near a forest edge. J. of Wind Eng. and Ind. Aerodyn, 2006
canopy { type dalpeMassonCanopySource; active on; // toggle the option writeFields on; // write to disk readLanduseFromRaster on; // read landuse from raster readCanopyHeightFromRaster on; // read canopy height from raster sourcePatches (ground forest); // for which patches to set landuse patchLanduse (0 1); // landuse code per patch (if not read from raster) landuse { low_birch // name of landuse class { code 1; // code of landuse class Cd 0.2; // drag coefficient of trees LAI 2.15; // Leaf Area Index (used if LADmax is not specified) LADmax 1.2; // Maximum Leaf Area Density [m ^-1] z0 0.06; // roughness length [m] height 7.5; // tree canopy height (if not read from raster) // Vertical profile of Leaf Area Density // first value is closest to ground // each value represents an equal share of the tree height // e.g. for a 4 m tree and 4 values, each value will represent 1 m // values are scaled so that the highest will correspond to LADMax LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); }; grass { code 0; Cd 0.2; LAI 0; z0 0.06; height 0; LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); }; }; }
Definition at line 163 of file dalpeMassonCanopySource.H.
|
private |
Disallow default bitwise copy construct.
dalpeMassonCanopySource | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Construct from components.
Definition at line 52 of file dalpeMassonCanopySource.C.
|
inlinevirtual |
Destructor.
Definition at line 223 of file dalpeMassonCanopySource.H.
|
private |
Disallow default bitwise copy construct.
dalpeMassonCanopySource | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Construct from components.
|
inlinevirtual |
Destructor.
Definition at line 223 of file dalpeMassonCanopySource.H.
|
private |
Disallow default bitwise assignment.
Source term to momentum equation.
TypeName | ( | "dalpeMassonCanopySource" | ) |
Runtime type information.
|
inline |
Definition at line 230 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::betaP_.
|
inline |
Definition at line 235 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::betaD_.
|
inline |
Definition at line 240 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::C4_.
|
inline |
Definition at line 245 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::C5_.
|
virtual |
Source terms to momentum equation (for solvers with and without explicit density)
Reimplemented from canopySource.
Definition at line 126 of file dalpeMassonCanopySource.C.
References Foam::mag(), fvMatrix::psi(), rho, Foam::fvc::Sp(), and U.
Reimplemented from canopySource.
Definition at line 104 of file dalpeMassonCanopySource.C.
References Foam::mag(), fvMatrix::psi(), Foam::fvc::Sp(), and U.
Source term to scalar equations (k & epsilon)
Reimplemented from option.
Definition at line 149 of file dalpeMassonCanopySource.C.
References epsilon, k, Foam::mag(), Foam::pow(), fvMatrix::psi(), Foam::fvc::Sp(), and U.
|
virtual |
Source term to compressible scalar equation (k & epsilon)
Reimplemented from option.
Definition at line 187 of file dalpeMassonCanopySource.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 | ( | "dalpeMassonCanopySource" | ) |
Runtime type information.
|
inline |
Definition at line 230 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::betaP_.
|
inline |
Definition at line 235 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::betaD_.
|
inline |
Definition at line 240 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::C4_.
|
inline |
Definition at line 245 of file dalpeMassonCanopySource.H.
References dalpeMassonCanopySource::C5_.
|
virtual |
Source terms to momentum equation (for solvers with and without explicit density)
Reimplemented from canopySource.
Reimplemented from canopySource.
Source term to scalar equations (k & epsilon)
Reimplemented from option.
|
virtual |
Source term to compressible scalar equation (k & epsilon)
Reimplemented from option.
|
private |
Definition at line 170 of file dalpeMassonCanopySource.H.
Referenced by dalpeMassonCanopySource::betaP().
|
private |
Definition at line 171 of file dalpeMassonCanopySource.H.
Referenced by dalpeMassonCanopySource::betaD().
|
private |
Definition at line 172 of file dalpeMassonCanopySource.H.
Referenced by dalpeMassonCanopySource::C4().
|
private |
Definition at line 173 of file dalpeMassonCanopySource.H.
Referenced by dalpeMassonCanopySource::C5().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.