landuseClass.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24  Copyright of this code belong to the author.
25 
26 Class
27  Foam::landuseClass
28 
29 Author
30  David Segersson (david.segersson@smhi.se)
31  Swedish Meteorological and Hydrological Institute
32 
33 Description
34  A landuseClass
35 
36 SourceFiles
37  landuseClass.H
38  landuseClass.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef landuseClass_H
43 #define landuseClass_H
44 
45 #include "label.H"
46 #include "scalar.H"
47 #include "dimensionedScalar.H"
48 #include "dimensionSet.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class landuseClass Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class landuseClass {
59 
60  private:
63  scalar Cd_;
64  scalar LAI_;
65  scalar z0_;
66  scalar height_;
67  scalar LADmax_;
69 
70  public:
71 
72  // Constructors
73  landuseClass();
75 
76  // Destructor
77  ~landuseClass();
78 
79  // member functions
80  const scalarList& LADProfile() {
81  return LADProfile_;
82  }
83 
84  scalar LAD(scalar z, scalar treeHeight);
85  void LADmaxFromLAI();
86  scalar integrateLAD();
87 
88  // access
89  const word& name() {
90  return name_;
91  }
92 
93  const label& code() {
94  return code_;
95  }
96 
97  const scalar& Cd() {
98  return Cd_;
99  }
100 
101  const scalar& LAI() {
102  return LAI_;
103  }
104 
105  const scalar& z0() {
106  return z0_;
107  }
108 
109  const scalar& height() {
110  return height_;
111  }
112 
113  const scalar& LADmax() {
114  return LADmax_;
115  }
116 
117 
118 };
119 }
120 
121 #endif /*landuseClass_H*/
Foam::landuseClass::height_
scalar height_
Definition: landuseClass.H:65
Foam::landuseClass::landuseClass
landuseClass()
Definition: landuseClass.C:11
Foam::landuseClass
A landuseClass.
Definition: landuseClass.H:57
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::landuseClass::name
const word & name()
Definition: landuseClass.H:88
Foam::landuseClass::height
const scalar & height()
Definition: landuseClass.H:108
Foam::landuseClass::LAD
scalar LAD(scalar z, scalar treeHeight)
Definition: landuseClass.C:72
Foam::landuseClass::z0
const scalar & z0()
Definition: landuseClass.H:104
Foam::landuseClass::LAI_
scalar LAI_
Definition: landuseClass.H:63
Foam::landuseClass::Cd
const scalar & Cd()
Definition: landuseClass.H:96
Foam::landuseClass::LADProfile
const scalarList & LADProfile()
Definition: landuseClass.H:79
Foam::landuseClass::z0_
scalar z0_
Definition: landuseClass.H:64
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::landuseClass::LADProfile_
scalarList LADProfile_
Definition: landuseClass.H:67
dimensionSet.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
scalar.H
Foam::landuseClass::LADmax_
scalar LADmax_
Definition: landuseClass.H:66
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::landuseClass::integrateLAD
scalar integrateLAD()
Definition: landuseClass.C:45
dimensionedScalar.H
Foam::landuseClass::Cd_
scalar Cd_
Definition: landuseClass.H:62
label.H
Foam::landuseClass::LADmax
const scalar & LADmax()
Definition: landuseClass.H:112
Foam::landuseClass::~landuseClass
~landuseClass()
Definition: landuseClass.C:7
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::landuseClass::LAI
const scalar & LAI()
Definition: landuseClass.H:100
Foam::landuseClass::code
const label & code()
Definition: landuseClass.H:92
Foam::landuseClass::LADmaxFromLAI
void LADmaxFromLAI()
Definition: landuseClass.C:60
Foam::landuseClass::name_
word name_
Definition: landuseClass.H:61
Foam::landuseClass::code_
label code_
Definition: landuseClass.H:60