|
| 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< scalar > &eqn, const label fieldI) |
|
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< scalar > &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...
|
|
|
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) |
|
| canopySource (const canopySource &) |
| Disallow default bitwise copy construct. More...
|
|
void | operator= (const canopySource &) |
| Disallow default bitwise assignment. More...
|
|
void | checkData () const |
|
Raster | readRaster (fileName rasterPath) |
|
void | calculatePatchDistance (label patch, volScalarField &d) |
|
void | setPatchLanduse (label patch, volScalarField &landuse, volScalarField &LAD, volScalarField &z0, volScalarField &nut, volScalarField &d) |
|
void | calculateCanopy () |
|
void | readLanduseClasses () |
|
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) |
|
| canopySource (const canopySource &) |
| Disallow default bitwise copy construct. More...
|
|
void | operator= (const canopySource &) |
| Disallow default bitwise assignment. More...
|
|
void | checkData () const |
|
Raster | readRaster (fileName rasterPath) |
|
void | calculatePatchDistance (label patch, volScalarField &d) |
|
void | setPatchLanduse (label patch, volScalarField &landuse, volScalarField &LAD, volScalarField &z0, volScalarField &nut, volScalarField &d) |
|
void | calculateCanopy () |
|
void | readLanduseClasses () |
|
Base class for momentum and turbulence source/sink-terms for tree canopy.
Author David Segersson, Swedish Meteorological and Hydrological Institute david.nosp@m..seg.nosp@m.ersso.nosp@m.n@sm.nosp@m.hi.se
- Usage
- Example usage:
canopy
{
type canopySource;
active on; // toggle the option
writeFields on; // write to disk
readFromDisk off; // if present, read fields landuse, z0, LAD from disk
readLanduseFromRaster off; // read landuse from raster
readCanopyHeightFromRaster off; // 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)
translateRaster (0 0 0); // translate raster to mesh coordinate sys.
LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); // default LAD profile
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;
};
};
}
- Source files
-
Author David Segersson, Swedish Meteorological and Hydrological Institute david.nosp@m..seg.nosp@m.ersso.nosp@m.n@sm.nosp@m.hi.se
- Usage
- Example usage:
canopy
{
type canopySource;
active on; // toggle the option
writeFields on; // write to disk
readFromDisk off; // if present, read fields landuse, z0, LAD from disk
readLanduseFromRaster off; // read landuse from raster
readCanopyHeightFromRaster off; // 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)
translateRaster (0 0 0); // translate raster to mesh coordinate sys.
LADProfile ( 0.05 0.1 0.15 0.35 1.1 0.9 0.5 0.2 0.15 0.05 0.01 ); // default LAD profile
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;
};
};
}
- Source files
-
Definition at line 119 of file canopySource.H.