BinghamPlastic.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) 2014-2015 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::mixtureViscosityModels::BinghamPlastic
28 
29 Description
30  Viscosity correction model for Bingham plastics.
31 
32  The strain-rate used is defined as sqrt(2.0)*mag(symm(grad(U)))
33 
34 SourceFiles
35  BinghamPlastic.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef BinghamPlastic_H
40 #define BinghamPlastic_H
41 
42 #include "plastic.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace mixtureViscosityModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class BinghamPlastic Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class BinghamPlastic
56 :
57  public plastic
58 {
59 protected:
60 
61  // Protected data
62 
63  //- Yield stress coefficient
65 
66  //- Yield stress exponent
68 
69  //- Yield stress offset
71 
72  //- Velocity
73  const volVectorField& U_;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("BinghamPlastic");
80 
81 
82  // Constructors
83 
84  //- Construct from components
86  (
87  const word& name,
89  const volVectorField& U,
90  const surfaceScalarField& phi
91  );
92 
93 
94  //- Destructor
96  {}
97 
98 
99  // Member Functions
100 
101  //- Return the mixture viscosity
102  // given the viscosity of the continuous phase
103  tmp<volScalarField> mu(const volScalarField& muc) const;
104 
105  //- Read transportProperties dictionary
106  bool read(const dictionary& viscosityProperties);
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace mixtureViscosityModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::mixtureViscosityModels::BinghamPlastic::BinghamPlastic
BinghamPlastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::mixtureViscosityModels::BinghamPlastic::U_
const volVectorField & U_
Velocity.
Definition: BinghamPlastic.H:72
Foam::mixtureViscosityModels::BinghamPlastic::read
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Foam::mixtureViscosityModel::viscosityProperties
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Definition: mixtureViscosityModel.H:139
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
plastic.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::mixtureViscosityModels::BinghamPlastic::mu
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
U
U
Definition: pEqn.H:72
Foam::mixtureViscosityModels::BinghamPlastic::yieldStressExponent_
dimensionedScalar yieldStressExponent_
Yield stress exponent.
Definition: BinghamPlastic.H:66
Foam::mixtureViscosityModels::BinghamPlastic::~BinghamPlastic
~BinghamPlastic()
Destructor.
Definition: BinghamPlastic.H:94
Foam::mixtureViscosityModels::BinghamPlastic
Viscosity correction model for Bingham plastics.
Definition: BinghamPlastic.H:54
Foam::mixtureViscosityModels::BinghamPlastic::yieldStressOffset_
dimensionedScalar yieldStressOffset_
Yield stress offset.
Definition: BinghamPlastic.H:69
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::mixtureViscosityModels::BinghamPlastic::TypeName
TypeName("BinghamPlastic")
Runtime type information.
Foam::mixtureViscosityModels::plastic
Viscosity correction model for a generic power-law plastic.
Definition: plastic.H:57
Foam::mixtureViscosityModels::BinghamPlastic::yieldStressCoeff_
dimensionedScalar yieldStressCoeff_
Yield stress coefficient.
Definition: BinghamPlastic.H:63