All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PTT.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2020 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 Class
25  Foam::laminarModels::PTT
26 
27 Description
28  PTT model for viscoelasticity using the upper-convected time
29  derivative of the stress tensor with support for multiple modes.
30 
31  Reference:
32  \verbatim
33  Thien, N. P., & Tanner, R. I. (1977).
34  A new constitutive equation derived from network theory.
35  Journal of Non-Newtonian Fluid Mechanics, 2(4), 353-365.
36  \endverbatim
37 
38 See also
39  Foam::laminarModels::Maxwell
40  Foam::laminarModels::Giesekus
41 
42 SourceFiles
43  PTT.C
44 
45 \*---------------------------------------------------------------------------*/
46 
47 #ifndef PTT_H
48 #define PTT_H
49 
50 #include "Maxwell.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 namespace laminarModels
57 {
58 
59 /*---------------------------------------------------------------------------*\
60  Class PTT Declaration
61 \*---------------------------------------------------------------------------*/
62 
63 template<class BasicMomentumTransportModel>
64 class PTT
65 :
66  public Maxwell<BasicMomentumTransportModel>
67 {
68 protected:
69 
70  // Protected data
71 
72  // Mode coefficients
73 
75 
76 
77  // Protected Member Functions
78 
80  (
81  const label modei,
83  ) const;
84 
85 
86 public:
87 
88  typedef typename BasicMomentumTransportModel::alphaField alphaField;
89  typedef typename BasicMomentumTransportModel::rhoField rhoField;
90  typedef typename BasicMomentumTransportModel::transportModel transportModel;
91 
92 
93  //- Runtime type information
94  TypeName("PTT");
95 
96 
97  // Constructors
98 
99  //- Construct from components
100  PTT
101  (
102  const alphaField& alpha,
103  const rhoField& rho,
104  const volVectorField& U,
105  const surfaceScalarField& alphaRhoPhi,
106  const surfaceScalarField& phi,
107  const transportModel& transport,
108  const word& type = typeName
109  );
110 
111  //- Disallow default bitwise copy construction
112  PTT(const PTT&) = delete;
113 
114 
115 
116  //- Destructor
117  virtual ~PTT()
118  {}
119 
120 
121  // Member Functions
122 
123  //- Re-read model coefficients if they have changed
124  virtual bool read();
125 
126 
127  // Member Operators
128 
129  //- Disallow default bitwise assignment
130  void operator=(const PTT&) = delete;
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace laminarModels
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #ifdef NoRepository
142  #include "PTT.C"
143 #endif
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
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
Generalised Maxwell model for viscoelasticity using the upper-convected time derivative of the stress...
Definition: Maxwell.H:76
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
PTT(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
Definition: PTT.C:60
PTT model for viscoelasticity using the upper-convected time derivative of the stress tensor with sup...
Definition: PTT.H:63
void operator=(const PTT &)=delete
Disallow default bitwise assignment.
virtual bool read()
Re-read model coefficients if they have changed.
Definition: PTT.C:93
BasicMomentumTransportModel::alphaField alphaField
Definition: PTT.H:87
A class for handling words, derived from string.
Definition: word.H:59
virtual ~PTT()
Destructor.
Definition: PTT.H:116
phi
Definition: correctPhi.H:3
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
Definition: Maxwell.C:269
U
Definition: pEqn.H:72
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:70
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
BasicMomentumTransportModel::transportModel transportModel
Definition: PTT.H:89
BasicMomentumTransportModel::rhoField rhoField
Definition: PTT.H:88
A class for managing temporary objects.
Definition: PtrList.H:53
PtrList< dimensionedScalar > epsilons_
Definition: PTT.H:73
TypeName("PTT")
Runtime type information.
virtual tmp< fvSymmTensorMatrix > sigmaSource(const label modei, volSymmTensorField &sigma) const
Definition: PTT.C:41
Namespace for OpenFOAM.