Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::fv::multiphaseMangrovesTurbulenceModel
29
30Group
31 grpFvOptionsSources
32
33Description
34
35Usage
36
37SourceFiles
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
50namespace Foam
51{
52
53namespace fv
54{
56/*---------------------------------------------------------------------------*\
57 Class multiphaseMangrovesTurbulenceModel Declaration
58\*---------------------------------------------------------------------------*/
59
60class multiphaseMangrovesTurbulenceModel
61:
62 public fv::option
63{
64 // Private Member Functions
65
66 //- No copy construct
67 multiphaseMangrovesTurbulenceModel
68 (
69 const multiphaseMangrovesTurbulenceModel&
70 ) = delete;
71
72 //- No copy assignment
73 void operator=(const multiphaseMangrovesTurbulenceModel&) = delete;
74
75
76
77protected:
78
79 // Protected data
80
81 // Coefficients per cell zone
82
83 //- Width of the vegetation element
86 //- Number of plants per unit of area
88
89 //- Ckp
91
92 //- Cep
94
95 //- Drag coefficient
97
98 //- Zone indices
101
102 // Field properties
103
104 //- Name of U; default = U
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
119 //- Return the epsilon coefficient
121
122
123public:
124
125 //- Runtime type information
126 TypeName("multiphaseMangrovesTurbulenceModel");
127
129 // Constructors
130
131 //- Construct from components
132 multiphaseMangrovesTurbulenceModel
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);
170
171
172// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173
174} // End namespace fv
175} // End namespace Foam
176
177// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178
179#endif
180
181// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition fvMatrix.H:118
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
tmp< volScalarField > kCoeff(const volVectorField &U) const
Return the k coefficient.
virtual ~multiphaseMangrovesTurbulenceModel()=default
Destructor.
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
Add implicit contribution to momentum equation.
virtual bool read(const dictionary &dict)
Read dictionary.
scalarList NZone_
Number of plants per unit of area.
TypeName("multiphaseMangrovesTurbulenceModel")
Runtime type information.
tmp< volScalarField > epsilonCoeff(const volVectorField &U) const
Return the epsilon coefficient.
Base abstract class for handling finite volume options (i.e. fvOption).
Definition fvOption.H:124
const word & name() const noexcept
Return const access to the source name.
Definition fvOptionI.H:24
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
Definition fvOptionI.H:30
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
U
Definition pEqn.H:72
Namespace for finite-volume.
Namespace for OpenFOAM.
GeometricField< vector, fvPatchField, volMesh > volVectorField
List< labelList > labelListList
List of labelList.
Definition labelList.H:38
GeometricField< scalar, fvPatchField, volMesh > volScalarField
List< scalar > scalarList
List of scalar.
Definition scalarList.H:32
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68