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-2022 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  Phan-Thien, N., & 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 
91 
92  //- Runtime type information
93  TypeName("PTT");
94 
95 
96  // Constructors
97 
98  //- Construct from components
99  PTT
100  (
101  const alphaField& alpha,
102  const rhoField& rho,
103  const volVectorField& U,
104  const surfaceScalarField& alphaRhoPhi,
105  const surfaceScalarField& phi,
106  const viscosity& viscosity,
107  const word& type = typeName
108  );
109 
110  //- Disallow default bitwise copy construction
111  PTT(const PTT&) = delete;
112 
113 
114 
115  //- Destructor
116  virtual ~PTT()
117  {}
118 
119 
120  // Member Functions
121 
122  //- Re-read model coefficients if they have changed
123  virtual bool read();
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const PTT&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace laminarModels
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #ifdef NoRepository
141  #include "PTT.C"
142 #endif
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
PTT(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
Definition: PTT.C:60
U
Definition: pEqn.H:72
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 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:115
phi
Definition: correctPhi.H:3
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
Definition: Maxwell.C:269
Abstract base class for all fluid physical properties.
Definition: viscosity.H:49
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::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.