plastic.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 | Copyright (C) 2014 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::mixtureViscosityModels::plastic
26 
27 Description
28  Viscosity correction model for a generic power-law plastic.
29 
30 SourceFiles
31  plastic.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef plastic_H
36 #define plastic_H
37 
38 #include "mixtureViscosityModel.H"
39 #include "dimensionedScalar.H"
40 #include "volFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class incompressibleTwoPhaseInteractingMixture;
48 
49 namespace mixtureViscosityModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class plastic Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class plastic
57 :
59 {
60 protected:
61 
62  // Protected data
63 
64  //- Dictionary
66 
67  //- Plastic viscosity coefficient
69 
70  //- Plastic viscosity exponent
72 
73  //- Maximum viscosity
75 
76  //- Plastic phase fraction
77  const volScalarField& alpha_;
78 
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("plastic");
84 
85 
86  // Constructors
87 
88  //- Construct from components
89  plastic
90  (
91  const word& name,
93  const volVectorField& U,
94  const surfaceScalarField& phi,
95  const word modelName=typeName
96  );
97 
98 
99  //- Destructor
100  ~plastic()
101  {}
102 
103 
104  // Member Functions
105 
106  //- Return the mixture viscosity
107  // given the viscosity of the continuous phase
108  tmp<volScalarField> mu(const volScalarField& muc) const;
109 
110  //- Read transportProperties dictionary
111  bool read(const dictionary& viscosityProperties);
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace mixtureViscosityModels
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
dimensionedScalar plasticViscosityExponent_
Plastic viscosity exponent.
Definition: plastic.H:70
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
TypeName("plastic")
Runtime type information.
An abstract base class for incompressible mixtureViscosityModels.
A class for handling words, derived from string.
Definition: word.H:59
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
Viscosity correction model for a generic power-law plastic.
Definition: plastic.H:55
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
plastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi, const word modelName=typeName)
Construct from components.
dimensionedScalar plasticViscosityCoeff_
Plastic viscosity coefficient.
Definition: plastic.H:67
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
dictionary plasticCoeffs_
Dictionary.
Definition: plastic.H:64
const volScalarField & alpha_
Plastic phase fraction.
Definition: plastic.H:76
dimensionedScalar muMax_
Maximum viscosity.
Definition: plastic.H:73
surfaceScalarField & phi
A class for managing temporary objects.
Definition: PtrList.H:118
U
Definition: pEqn.H:82