OpenFOAM
10
The OpenFOAM Foundation
plastic.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) 2014-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::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
:
58
public
mixtureViscosityModel
59
{
60
protected
:
61
62
// Protected data
63
64
//- Dictionary
65
dictionary
plasticCoeffs_
;
66
67
//- Plastic viscosity coefficient
68
dimensionedScalar
plasticViscosityCoeff_
;
69
70
//- Plastic viscosity exponent
71
dimensionedScalar
plasticViscosityExponent_
;
72
73
//- Maximum viscosity
74
dimensionedScalar
muMax_
;
75
76
77
public
:
78
79
//- Runtime type information
80
TypeName
(
"plastic"
);
81
82
83
// Constructors
84
85
//- Construct from mixture
86
plastic
(
const
incompressibleTwoPhaseInteractingMixture
&
mixture
);
87
88
89
//- Destructor
90
virtual
~plastic
()
91
{}
92
93
94
// Member Functions
95
96
//- Return the mixture viscosity
97
// given the viscosity of the continuous phase
98
virtual
tmp<volScalarField>
mu
99
(
100
const
volScalarField
&
muc
,
101
const
volVectorField
&
U
102
)
const
;
103
104
//- Read phaseProperties dictionary
105
virtual
bool
read
();
106
};
107
108
109
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110
111
}
// End namespace mixtureViscosityModels
112
}
// End namespace Foam
113
114
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116
#endif
117
118
// ************************************************************************* //
Foam::incompressibleTwoPhaseInteractingMixture
A two-phase incompressible transportModel for interacting phases requiring the direct evaluation of t...
Definition:
incompressibleTwoPhaseInteractingMixture.H:56
Foam::mixtureViscosityModels::plastic::~plastic
virtual ~plastic()
Destructor.
Definition:
plastic.H:89
Foam::mixtureViscosityModels::plastic::plasticViscosityCoeff_
dimensionedScalar plasticViscosityCoeff_
Plastic viscosity coefficient.
Definition:
plastic.H:67
U
U
Definition:
pEqn.H:72
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition:
dictionary.H:156
muc
volScalarField muc(IOobject(IOobject::groupName("mu", continuousPhaseName), runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), rhoc *continuousPhaseViscosity->nu())
Foam::mixtureViscosityModels::plastic
Viscosity correction model for a generic power-law plastic.
Definition:
plastic.H:55
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::dimensioned< scalar >
Foam::mixtureViscosityModel
An abstract base class for incompressible mixtureViscosityModels.
Definition:
mixtureViscosityModel.H:57
Foam::mixtureViscosityModels::plastic::plasticViscosityExponent_
dimensionedScalar plasticViscosityExponent_
Plastic viscosity exponent.
Definition:
plastic.H:70
Foam::mixtureViscosityModels::plastic::TypeName
TypeName("plastic")
Runtime type information.
mixtureViscosityModel.H
Foam::mixtureViscosityModels::plastic::read
virtual bool read()
Read phaseProperties dictionary.
Foam::mixtureViscosityModels::plastic::plasticCoeffs_
dictionary plasticCoeffs_
Dictionary.
Definition:
plastic.H:64
dimensionedScalar.H
Foam::mixtureViscosityModels::plastic::mu
virtual tmp< volScalarField > mu(const volScalarField &muc, const volVectorField &U) const
Return the mixture viscosity.
Foam::mixture
Definition:
mixture.H:52
volFields.H
Foam::tmp
A class for managing temporary objects.
Definition:
PtrList.H:53
Foam::mixtureViscosityModels::plastic::plastic
plastic(const incompressibleTwoPhaseInteractingMixture &mixture)
Construct from mixture.
Foam::mixtureViscosityModels::plastic::muMax_
dimensionedScalar muMax_
Maximum viscosity.
Definition:
plastic.H:73
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:213
applications
solvers
multiphase
driftFluxFoam
mixtureViscosityModels
plastic
plastic.H
Generated by
1.8.13