Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::mixtureViscosityModels::BinghamPlastic
28
29Description
30 Viscosity correction model for Bingham plastics.
31
32 The strain-rate used is defined as sqrt(2.0)*mag(symm(grad(U)))
33
34SourceFiles
35 BinghamPlastic.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef BinghamPlastic_H
40#define BinghamPlastic_H
41
42#include "plastic.H"
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
49{
51/*---------------------------------------------------------------------------*\
52 Class BinghamPlastic Declaration
53\*---------------------------------------------------------------------------*/
54
56:
57 public plastic
58{
59protected:
60
61 // Protected data
62
63 //- Yield stress coefficient
65
66 //- Yield stress exponent
68
69 //- Yield stress offset
72 //- Velocity
73 const volVectorField& U_;
74
75
76public:
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,
91 );
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;
105 //- Read transportProperties dictionary
107};
108
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112} // End namespace mixtureViscosityModels
113} // End namespace Foam
114
115// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116
117#endif
118
119// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
dimensionedScalar yieldStressExponent_
Yield stress exponent.
TypeName("BinghamPlastic")
Runtime type information.
dimensionedScalar yieldStressCoeff_
Yield stress coefficient.
const volVectorField & U_
Velocity.
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
BinghamPlastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
dimensionedScalar yieldStressOffset_
Yield stress offset.
plastic(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi, const word modelName=typeName)
Construct from components.
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
A namespace for incompressible mixtureViscosityModel implementations.
Namespace for OpenFOAM.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68