multiphaseMangrovesTurbulenceModel.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2017 IH-Cantabria
9  Copyright (C) 2017 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::fv::multiphaseMangrovesTurbulenceModel
29 
30 Group
31  grpFvOptionsSources
32 
33 Description
34 
35 Usage
36 
37 SourceFiles
38  multiphaseMangrovesTurbulenceModel.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef multiphaseMangrovesTurbulenceModel_H
43 #define multiphaseMangrovesTurbulenceModel_H
44 
45 #include "fvOption.H"
46 #include "volFields.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 namespace fv
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class multiphaseMangrovesTurbulenceModel Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
62  public fv::option
63 {
64  // Private Member Functions
65 
66  //- No copy construct
68  (
70  ) = delete;
71 
72  //- No copy assignment
73  void operator=(const multiphaseMangrovesTurbulenceModel&) = delete;
74 
75 
76 
77 protected:
78 
79  // Protected data
80 
81  // Coefficients per cell zone
82 
83  //- Width of the vegetation element
85 
86  //- Number of plants per unit of area
88 
89  //- Ckp
91 
92  //- Cep
94 
95  //- Drag coefficient
97 
98  //- Zone indices
100 
101 
102  // Field properties
103 
104  //- Name of U; default = U
105  word UName_;
106 
107  //- Name of k; default = k
108  word kName_;
109 
110  //- Name of epsilon; default = epsilon
112 
113 
114  // Protected Member Functions
115 
116  //- Return the k coefficient
118 
119  //- Return the epsilon coefficient
121 
122 
123 public:
124 
125  //- Runtime type information
126  TypeName("multiphaseMangrovesTurbulenceModel");
127 
128 
129  // Constructors
130 
131  //- Construct from components
133  (
134  const word& name,
135  const word& modelType,
136  const dictionary& dict,
137  const fvMesh& mesh
138  );
139 
140 
141  //- Destructor
142  virtual ~multiphaseMangrovesTurbulenceModel() = default;
143 
144 
145  // Member Functions
146 
147  // Add explicit and implicit contributions
148 
149  //- Add implicit contribution to momentum equation
150  virtual void addSup
151  (
152  fvMatrix<scalar>& eqn,
153  const label fieldi
154  );
155 
156  //- Add implicit contribution to compressible momentum equation
157  virtual void addSup
158  (
159  const volScalarField& rho,
160  fvMatrix<scalar>& eqn,
161  const label fieldi
162  );
163 
164 
165  // IO
166 
167  //- Read dictionary
168  virtual bool read(const dictionary& dict);
169 };
170 
171 
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 
174 } // End namespace fv
175 } // End namespace Foam
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 #endif
180 
181 // ************************************************************************* //
volFields.H
Foam::fv::option::name
const word & name() const noexcept
Return const access to the source name.
Definition: fvOptionI.H:31
Foam::fv::multiphaseMangrovesTurbulenceModel::aZone_
scalarList aZone_
Width of the vegetation element.
Definition: multiphaseMangrovesTurbulenceModel.H:83
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::fv::multiphaseMangrovesTurbulenceModel::kCoeff
tmp< volScalarField > kCoeff(const volVectorField &U) const
Return the k coefficient.
Definition: multiphaseMangrovesTurbulenceModel.C:57
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::fv::multiphaseMangrovesTurbulenceModel::CkpZone_
scalarList CkpZone_
Ckp.
Definition: multiphaseMangrovesTurbulenceModel.H:89
Foam::fv::multiphaseMangrovesTurbulenceModel::~multiphaseMangrovesTurbulenceModel
virtual ~multiphaseMangrovesTurbulenceModel()=default
Destructor.
Foam::fv::multiphaseMangrovesTurbulenceModel::CdZone_
scalarList CdZone_
Drag coefficient.
Definition: multiphaseMangrovesTurbulenceModel.H:95
Foam::fv::multiphaseMangrovesTurbulenceModel::TypeName
TypeName("multiphaseMangrovesTurbulenceModel")
Runtime type information.
Foam::fv::multiphaseMangrovesTurbulenceModel::addSup
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
Add implicit contribution to momentum equation.
Definition: multiphaseMangrovesTurbulenceModel.C:174
Foam::fv::multiphaseMangrovesTurbulenceModel::kName_
word kName_
Name of k; default = k.
Definition: multiphaseMangrovesTurbulenceModel.H:107
rho
rho
Definition: readInitialConditions.H:88
Foam::fv::option
Base abstract class for handling finite volume options (i.e. fvOption).
Definition: fvOption.H:126
Foam::fv::multiphaseMangrovesTurbulenceModel::read
virtual bool read(const dictionary &dict)
Read dictionary.
Definition: multiphaseMangrovesTurbulenceModel.C:228
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::fv::multiphaseMangrovesTurbulenceModel::epsilonCoeff
tmp< volScalarField > epsilonCoeff(const volVectorField &U) const
Return the epsilon coefficient.
Definition: multiphaseMangrovesTurbulenceModel.C:103
fv
labelList fv(nPoints)
U
U
Definition: pEqn.H:72
Foam::fv::option::mesh
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
Definition: fvOptionI.H:37
Foam::fv::multiphaseMangrovesTurbulenceModel::zoneIDs_
labelListList zoneIDs_
Zone indices.
Definition: multiphaseMangrovesTurbulenceModel.H:98
fvOption.H
Foam::List< scalar >
Foam::fv::multiphaseMangrovesTurbulenceModel::CepZone_
scalarList CepZone_
Cep.
Definition: multiphaseMangrovesTurbulenceModel.H:92
Foam::fvMatrix
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvPatchField.H:68
Foam::fv::multiphaseMangrovesTurbulenceModel::NZone_
scalarList NZone_
Number of plants per unit of area.
Definition: multiphaseMangrovesTurbulenceModel.H:86
Foam::fv::multiphaseMangrovesTurbulenceModel::UName_
word UName_
Name of U; default = U.
Definition: multiphaseMangrovesTurbulenceModel.H:104
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::fv::multiphaseMangrovesTurbulenceModel
Definition: multiphaseMangrovesTurbulenceModel.H:59
Foam::fv::multiphaseMangrovesTurbulenceModel::epsilonName_
word epsilonName_
Name of epsilon; default = epsilon.
Definition: multiphaseMangrovesTurbulenceModel.H:110