canopySource.C
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) 2015-2016 OpenFOAM Foundation
6  \\/ M anipulation |
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 \*---------------------------------------------------------------------------*/
25 
26 #include "canopySource.H"
27 #include "fvMesh.H"
28 #include "fvMatrices.H"
29 #include "fvCFD.H"
31 #include "groundDist.H"
32 #include <iostream>
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37 namespace fv
38 {
39  defineTypeNameAndDebug(canopySource, 0);
41  (
42  option,
43  canopySource,
45  );
46 
47 }
48 }
49 
50 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
51 
53 (
54  const word& name,
55  const word& modelType,
56  const dictionary& dict,
57  const fvMesh& mesh
58 )
59 :
60  option(name, modelType, dict, mesh)
61 {
62 
63  if (active()) {
64 
66  fieldNames_[0] = word("U");
67  fieldNames_[1] = word("k");
68  fieldNames_[2] = word("epsilon");
69  applied_.setSize(fieldNames_.size(), false);
70 
71  read(dict);
72  }
73 }
74 
75 
76 
77 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
78 
79 
81 (
82  fvMatrix<vector>& eqn,
83  const label fieldi
84 )
85 {
86 
87  const volVectorField& U = eqn.psi();
88  const volScalarField& canopy = canopy_;
89 
90  fvMatrix<vector> S_canopy
91  (
92  fvm::Sp(canopy * mag(U), U)
93  );
94 
95  eqn -= S_canopy;
96 
97 }
98 
99 
101  (
102  const volScalarField& rho,
103  fvMatrix<vector>& eqn,
104  const label fieldi
105  )
106  {
107 
108  if (eqn.psi().name() == word("U")) {
109 
110  const volVectorField& U = eqn.psi();
111  const volScalarField& canopy = canopy_;
112 
113  fvMatrix<vector> S_canopy
114  (
115  fvm::Sp(rho*canopy * mag(U), U)
116  );
117 
118  eqn -= S_canopy;
119  }
120 
121 
122  }
123 
124 
126 {
127 
128  if(landuseTable_.size() == 0)
130  << "Missing landuse classes for canopySource in constant/fvOptions"
131  << exit(FatalError);
132 
133  if(sourcePatches_.size() == 0 && !readLanduseFromRaster_)
135  << "No source patches given for landuse data"
136  << exit(FatalError);
137 }
138 
140 
141  vector translationVector(0, 0, 0);
142  translationVector = coeffs_.lookupOrDefault("translateRaster", translationVector, false, false);
143  // translateRasterX_ = coeffs_.lookupOrDefault("translateRaster", vector0, false, false);
144  // translateRasterY_ = coeffs_.lookupOrDefault("translateRasterY", 0, false, false);
145 
146  Raster raster;
147 
148  // read raster
149  if(!raster.read(rasterPath.c_str()))
151  << "Cannot read raster file: " << rasterPath
152  << exit(FatalError);
153 
154  raster.translate(double(translationVector.x()), double(translationVector.y()));
155 
156  Info << " Reading raster: " << rasterPath << endl
157  << " (x1, y1, x2, y2): ("
158  << raster.xll << ", " << raster.yll << ", " << raster.xur << ", " << raster.yur
159  << ") (nrows, ncols): (" << raster.nrows << " ," << raster.ncols
160  << ") cellsize: " << raster.cellsize << endl << endl;
161  return raster;
162 }
163 
165 {
166  // get landuse definitions
167  dictionary landuseDict = coeffs_.subDict("landuse");
168  wordList landuseNames(landuseDict.toc());
169 
170 // Info << endl
171 // << " ---------------------Landuse categories--------------------" << endl;
172 // Info << " name\tcode\tCd\tLAI\tz0\theight\tLADmax" << endl;
173  forAll(landuseNames, i) {
174  word name = landuseNames[i];
175  //dictionary luDict = landuseDict.subDict(name);
176  landuseClass lu(landuseDict, name);
177  landuseTable_.insert(lu.code(), lu);
178  Info << " " << lu.name() << "\t"<< lu.code() << "\t" << lu.Cd()
179  << "\t" << lu.LAI() << "\t" << lu.z0() << "\t" << lu.height()
180  << "\t" << lu.LADmax() << endl;
181  }
182  Info << endl;
183 }
184 
185 
187 {
188  if (!option::read(dict))
189  return false;
190 
191  // if option is not active, it will not be read
192  if (! active())
193  return true;
194 
195  // for which patches to set landuse
196  coeffs_.lookup("sourcePatches") >> sourcePatches_;
197 
198  // read from disk if present
199  readFromDisk_ = coeffs_.lookupOrDefault("readFromDisk", false, false, false);
200 
201  readLanduseFromRaster_ = coeffs_.lookupOrDefault("readLanduseFromRaster", false, false, false);
202  readCanopyHeightFromRaster_ = coeffs_.lookupOrDefault("readCanopyHeightFromRaster", false, false, false);
203  writeFields_ = coeffs_.lookupOrDefault("writeFields", false, false, false);
204 
205  readLanduseClasses();
206 
207  if (readLanduseFromRaster_ ) {
208  fileName landuseRasterFileName;
209  coeffs_.lookup("landuseRasterFileName") >> landuseRasterFileName;
210  landuseRaster_ = readRaster(landuseRasterFileName);
211  }
212 
213  if (readCanopyHeightFromRaster_ ) {
214  fileName canopyHeightRasterFileName;
215  coeffs_.lookup("canopyHeightRasterFileName") >> canopyHeightRasterFileName;
216  canopyHeightRaster_ = readRaster(canopyHeightRasterFileName);
217  }
218 
219  // read landuse codes for each patch
220  if (!readLanduseFromRaster_) {
221  labelList patchLanduseList;
222  coeffs_.lookup("patchLanduse") >> patchLanduseList;
223  if((patchLanduseList.size() != sourcePatches_.size()))
225  << "Wrong number of rows in patchLanduse,"
226  <<"should be equal to number of source patches "
227  << exit(FatalError);
228 
229  forAll(sourcePatches_, i) {
230  label patchID = mesh_.boundaryMesh().findPatchID(sourcePatches_[i]);
231  if (patchID == -1)
233  << "Cannot find landuse source patch: "
234  << sourcePatches_[i]
235  << exit(FatalError);
236 
237  label patchLanduseCode = patchLanduseList[i];
238  landuseClass lu = landuseTable_[patchLanduseCode];
239  patchLanduseTable_.insert(patchID, landuseTable_[lu.code()]);
240  }
241  }
242  checkData();
243  calculateCanopy();
244  return true;
245 }
246 
248  label patch,
249  volScalarField &landuse,
250  volScalarField &LAD,
251  volScalarField &z0,
253  volScalarField &d)
254 {
255 
256  const fvMesh & mesh=landuse.mesh();
257  const polyPatch& pp = mesh.boundaryMesh()[patch];
258 
259 
261  refCast<Foam::nutkAtmRoughWallFunctionFvPatchScalarField>(nut.boundaryField()[patch]);
262 
263  scalarField& nutZ0 = wallNut.z0();
264 
265  Foam::fvPatchScalarField& patchLanduse = landuse.boundaryField()[patch];
266  Foam::fvPatchScalarField& patchZ0 = z0.boundaryField()[patch];
267  forAll(patchLanduse,facei)
268  {
269 
270  landuseClass lu;
271  if (readLanduseFromRaster_) {
272  scalar x=pp.faceCentres()[facei].x();
273  scalar y=pp.faceCentres()[facei].y();
274  lu = landuseTable_[label(landuseRaster_.getValue(double(x),double(y)))];
275  }
276  else {
277  lu = patchLanduseTable_[patch];
278  }
279 
280  if (!landuse_from_disk_)
281  patchLanduse[facei] = scalar(lu.code());
282 
283  if (!z0_from_disk_)
284  patchZ0[facei] = lu.z0();
285 
286  // z0 for actual calculations is stored as scalarField
287  // within boundary condition dictionary of nut
288  nutZ0[facei] = patchZ0[facei];
289  }
290 
291  forAll(d.internalField(), celli)
292  {
293 
294  // get landuse class
295  landuseClass lu;
296 
297  scalar x = mesh.C()[celli].x();
298  scalar y = mesh.C()[celli].y();
299  scalar height = 0;
300 
301  if (readLanduseFromRaster_)
302  lu = landuseTable_[label(landuseRaster_.getValue(double(x),double(y)))];
303  else
304  lu = patchLanduseTable_[patch];
305 
306  if (readCanopyHeightFromRaster_
307  && lu.LADmax() > 0
308  && canopyHeightRaster_.inside(double(x), double(y))) {
309  height = canopyHeightRaster_.getValue(double(x), double(y));
310  }
311  else
312  height = lu.height();
313 
314  // set landuse up to canopy height and LAD according to LADProfile
315  scalar patchDistance = d.internalField()[celli];
316  if (patchDistance < 0)
317  cout<<"patchDistance: " << patchDistance<<'\n';
318  if (patchDistance < height && height > 0)
319  {
320  landuse.internalField()[celli] = scalar(lu.code());
321  LAD.internalField()[celli] = lu.LAD(patchDistance, height);
322  }
323  }
324 }
325 
326 
328 {
329 
330  labelHashSet sourcePatchIDs(1);
331  sourcePatchIDs.insert(patch);
332  // calculate distance to sourcePatches
333  d = (const volScalarField&) groundDist(mesh_,sourcePatchIDs).y();
334  return;
335 }
336 
338 {
339 
340 
341  // volScalarField& landuse;
342  // volScalarField& LAD;
343  // volScalarField& z0;
344 
345  autoPtr<volScalarField> landuse;
348 
349  IOobject landuseHeader
350  (
351  "landuse",
352  mesh_.time().timeName(),
353  mesh_,
356  false
357  );
358 
359  if (readFromDisk_) {
360  landuse_from_disk_ = true;
361  Info << " Reading existing landuse field" << endl;
362  landuse.reset
363  (
364  new volScalarField
365  (
366  IOobject
367  (
368  "landuse",
369  mesh_.time().timeName(),
370  mesh_,
373  ),
374  mesh_
375  )
376  );
377  }
378  else {
379  landuse_from_disk_ = false;
380  landuse.reset
381  (
382  new volScalarField
383  (
384  IOobject
385  (
386  "landuse",
387  mesh_.time().timeName(),
388  mesh_,
391  ),
392  mesh_,
393  dimensionedScalar("landuse", dimensionSet(0,0,0,0,0,0,0), -1),
394  calculatedFvPatchScalarField::typeName
395  )
396  );
397  }
398 
399  IOobject z0Header
400  (
401  "z0",
402  mesh_.time().timeName(),
403  mesh_,
406  false
407  );
408 
409  if (readFromDisk_) {
410  z0_from_disk_ = true;
411  Info << " Reading existing z0 field" << endl;
412  z0.reset
413  (
414  new volScalarField
415  (
416  IOobject
417  (
418  "z0",
419  mesh_.time().timeName(),
420  mesh_,
423  ),
424  mesh_
425  )
426  );
427  }
428  else {
429  z0_from_disk_ = false;
430  z0.reset
431  (
432  new volScalarField
433  (
434  IOobject
435  (
436  "z0",
437  mesh_.time().timeName(),
438  mesh_,
441  ),
442  mesh_,
443  dimensionedScalar("z0", dimLength, -1),
444  calculatedFvPatchScalarField::typeName
445  )
446  );
447  }
448 
449  IOobject LADHeader
450  (
451  "LAD",
452  mesh_.time().timeName(),
453  mesh_,
456  false
457  );
458 
459  if (readFromDisk_) {
460  LAD_from_disk_ = true;
461  Info << " Reading existing LAD field" << endl;
462  LAD.reset
463  (
464  new volScalarField
465  (
466  IOobject
467  (
468  "LAD",
469  mesh_.time().timeName(),
470  mesh_,
473  ),
474  mesh_
475  )
476  );
477  }
478  else
479  {
480  LAD_from_disk_ = false;
481  LAD.reset
482  (
483  new volScalarField
484  (
485  IOobject
486  (
487  "LAD",
488  mesh_.time().timeName(),
489  mesh_,
492  ),
493  mesh_,
494  dimensionedScalar("lad", dimensionSet(0,-1,0,0,0,0,0), 0),
495  calculatedFvPatchScalarField::typeName
496  )
497  );
498  }
499 
500  // patch distance
502  (
503  IOobject
504  (
505  "d",
506  mesh_.time().timeName(),
507  mesh_,
510  ),
511  mesh_,
512  dimensionedScalar("d",dimLength, SMALL),
513  calculatedFvPatchScalarField::typeName
514  );
515 
516  canopy_.reset
517  (
518  new volScalarField(
519  IOobject
520  (
521  "canopy",
522  mesh_.time().timeName(),
523  mesh_,
526  ),
527  mesh_,
528  dimensionedScalar("canopy",dimensionSet(0,-1,0,0,0,0,0),0)
529  )
530  );
531 
532  volScalarField& nut = mesh_.lookupObjectRef<volScalarField>("nut");
533  scalarField& canopy = canopy_->internalField();
534 
535  // // set landuse, LAD and z0
536 // Info<<"\n Setting landuse for patch: " << endl;
537  forAll(sourcePatches_, sp) {
538  word patchName = sourcePatches_[sp];
539 // Info<<" -- " << patchName << endl;
540  label patchID = mesh_.boundaryMesh().findPatchID(patchName);
541 
542  if (patchID == -1)
544  "void Foam::fv::canopySource::setPatchLanduse("
545  "landuseClass,"
546  "label,"
547  "volScalarField&,"
548  "volScalarField&,"
549  "volScalarField&)",
550  coeffs_
551  ) << "Cannot find patch " << patchName << exit(FatalIOError);
552 
553 
554  calculatePatchDistance(patchID, d);
555  //setPatchLanduse(patchID, landuse(), LAD(), z0(), nut, d);
556  setPatchLanduse(patchID, landuse(), LAD(), z0(), nut, d);
557  }
558 
559  // calculate canopy (Cd * LAD)
560  forAll(landuse->internalField(),celli) {
561  label landuseCode(landuse->internalField()[celli]);
562  if (landuseCode != -1) {
563  landuseClass lu = landuseTable_[landuseCode];
564  canopy[celli] = lu.Cd() * LAD->internalField()[celli];
565  }
566  }
567 
568 
569  if (writeFields_) {
570  landuse->write();
571  LAD->write();
572  z0->write();
573  }
574 }
575 
576 
577 // ************************************************************************* //
Foam::fvPatchField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:65
Raster
Definition: Raster.H:13
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::landuseClass
A landuseClass.
Definition: landuseClass.H:57
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::groundDist::y
const volScalarField & y() const
Definition: groundDist.H:101
Foam::fv::canopySource::calculateCanopy
void calculateCanopy()
Definition: canopySource.C:352
Foam::fv::canopySource::calculatePatchDistance
void calculatePatchDistance(label patch, volScalarField &d)
Definition: canopySource.C:341
Foam::IOobject::AUTO_WRITE
@ AUTO_WRITE
Definition: IOobject.H:117
Foam::dimLength
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
Foam::landuseClass::name
const word & name()
Definition: landuseClass.H:88
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:406
Foam::landuseClass::height
const scalar & height()
Definition: landuseClass.H:108
Foam::fv::canopySource::read
bool read(const dictionary &dict)
Read dictionary.
Definition: canopySource.C:192
Foam::landuseClass::LAD
scalar LAD(scalar z, scalar treeHeight)
Definition: landuseClass.C:72
Foam::fv::option::active
bool active() const
Return const access to the source active flag.
Definition: fvOptionI.H:46
Foam::landuseClass::z0
const scalar & z0()
Definition: landuseClass.H:104
Raster::ncols
int ncols
Definition: Raster.H:16
groundDist.H
Foam::GeometricField::boundaryField
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Definition: GeometricField.C:735
Foam::IOobject::MUST_READ
@ MUST_READ
Definition: IOobject.H:108
Foam::FatalIOError
IOerror FatalIOError
Foam::polyMesh::boundaryMesh
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Definition: polyMesh.H:421
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:116
Foam::mag
dimensioned< scalar > mag(const dimensioned< Type > &)
Foam::HashSet< label, Hash< label > >
Foam::fvMatrix::psi
const GeometricField< Type, fvPatchField, volMesh > & psi() const
Definition: fvMatrix.H:281
Raster::translate
void translate(const double &x, const double &y)
Definition: Raster.C:428
Foam::IOobject::NO_WRITE
@ NO_WRITE
Definition: IOobject.H:118
U
U
Definition: pEqn.H:46
Foam::fvm::Sp
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
Foam::nutkAtmRoughWallFunctionFvPatchScalarField
This boundary condition provides a turbulent kinematic viscosity for atmospheric velocity profiles....
Definition: nutkAtmRoughWallFunctionFvPatchScalarField.H:112
Foam::landuseClass::Cd
const scalar & Cd()
Definition: landuseClass.H:96
fvMatrices.H
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Foam::fv::canopySource::setPatchLanduse
void setPatchLanduse(label patch, volScalarField &landuse, volScalarField &LAD, volScalarField &z0, volScalarField &nut, volScalarField &d)
Definition: canopySource.C:253
Foam::fv::canopySource::canopySource
canopySource(const canopySource &)
Disallow default bitwise copy construct.
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::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
nut
nut
Definition: createTDFields.H:71
Foam::IOobject::NO_READ
@ NO_READ
Definition: IOobject.H:111
Foam::Info
messageStream Info
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Raster::yur
double yur
Definition: Raster.H:20
Foam::fv::option::fieldNames_
wordList fieldNames_
Field names to apply source to - populated by derived models.
Definition: fvOption.H:90
Raster::read
int read(const char fileName[])
Definition: Raster.C:91
FatalIOErrorIn
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
Definition: error.H:324
Foam::GeometricField::internalField
InternalField & internalField()
Return internal field.
Definition: GeometricField.C:724
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
Foam::fv::canopySource::checkData
void checkData() const
Definition: canopySource.C:131
Raster::xll
double xll
Definition: Raster.H:17
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
fvMesh.H
Raster::cellsize
double cellsize
Definition: Raster.H:21
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::fv::option::read
virtual bool read(const dictionary &dict)
Read source dictionary.
Definition: fvOptionIO.C:53
Raster::nrows
int nrows
Definition: Raster.H:15
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
rho
rho
Definition: pEqn.H:3
fv
labelList fv(nPoints)
Foam::fv::defineTypeNameAndDebug
defineTypeNameAndDebug(option, 0)
Foam::List::setSize
void setSize(const label)
Reset size of List.
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:318
Foam::fv::addToRunTimeSelectionTable
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
Foam::fv::canopySource::readRaster
Raster readRaster(fileName rasterPath)
Definition: canopySource.C:145
Foam::fvMesh::C
const volVectorField & C() const
Return cell centres as volVectorField.
Definition: fvMeshGeometry.C:369
Foam::polyPatch::faceCentres
const vectorField::subField faceCentres() const
Return face centres.
Definition: polyPatch.C:308
Foam::Vector< scalar >
Foam::landuseClass::LADmax
const scalar & LADmax()
Definition: landuseClass.H:112
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
Raster::yll
double yll
Definition: Raster.H:18
Foam::fv::canopySource::addSup
void addSup(const volScalarField &rho, fvMatrix< vector > &eqn, const label fieldi)
Source terms to momentum equation (for solvers with and without explicit density)
Definition: canopySource.C:107
Foam::landuseClass::LAI
const scalar & LAI()
Definition: landuseClass.H:100
x
x
Definition: LISASMDCalcMethod2.H:52
Foam::groundDist
Definition: groundDist.H:58
Foam::fvMatrix
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvPatchField.H:68
Foam::autoPtr::reset
void reset(T *=0)
If object pointer already set, delete object and set to given.
Definition: autoPtrI.H:114
Raster::xur
double xur
Definition: Raster.H:19
fvCFD.H
Foam::dictionary::toc
wordList toc() const
Return the table of contents.
Definition: dictionary.C:697
Foam::List::size
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::fv::option::applied_
List< bool > applied_
Applied flag list - corresponds to each fieldNames_ entry.
Definition: fvOption.H:93
canopySource.H
Foam::dictionary::subDict
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Definition: dictionary.C:631
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::landuseClass::code
const label & code()
Definition: landuseClass.H:92
Foam::name
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
Foam::fv::canopySource::readLanduseClasses
void readLanduseClasses()
Definition: canopySource.C:170
y
scalar y
Definition: LISASMDCalcMethod1.H:14
Foam::nutkAtmRoughWallFunctionFvPatchScalarField::z0
scalarField & z0()
Definition: nutkAtmRoughWallFunctionFvPatchScalarField.H:205