OpenFOAM
10
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
BinghamPlastic.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::BinghamPlastic
26
27
Description
28
Viscosity correction model for Bingham plastics.
29
30
The strain-rate used is defined as sqrt(2.0)*mag(symm(grad(U)))
31
32
SourceFiles
33
BinghamPlastic.C
34
35
\*---------------------------------------------------------------------------*/
36
37
#ifndef BinghamPlastic_H
38
#define BinghamPlastic_H
39
40
#include "
plastic.H
"
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
namespace
mixtureViscosityModels
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Class BinghamPlastic Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
BinghamPlastic
54
:
55
public
plastic
56
{
57
// Private data
58
59
//- Yield stress coefficient
60
dimensionedScalar
yieldStressCoeff_;
61
62
//- Yield stress exponent
63
dimensionedScalar
yieldStressExponent_;
64
65
//- Yield stress offset
66
dimensionedScalar
yieldStressOffset_;
67
68
69
public
:
70
71
//- Runtime type information
72
TypeName
(
"BinghamPlastic"
);
73
74
75
// Constructors
76
77
//- Construct from mixture
78
BinghamPlastic
79
(
80
const
incompressibleTwoPhaseInteractingMixture
&
mixture
81
);
82
83
84
//- Destructor
85
virtual
~BinghamPlastic
()
86
{}
87
88
89
// Member Functions
90
91
//- Return the mixture viscosity
92
// given the viscosity of the continuous phase
93
virtual
tmp<volScalarField>
mu
94
(
95
const
volScalarField
&
muc
,
96
const
volVectorField
&
U
97
)
const
;
98
99
//- Read phaseProperties dictionary
100
virtual
bool
read
();
101
};
102
103
104
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106
}
// End namespace mixtureViscosityModels
107
}
// End namespace Foam
108
109
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110
111
#endif
112
113
// ************************************************************************* //
Foam::incompressibleTwoPhaseInteractingMixture
A two-phase incompressible transportModel for interacting phases requiring the direct evaluation of t...
Definition:
incompressibleTwoPhaseInteractingMixture.H:56
U
U
Definition:
pEqn.H:72
muc
volScalarField muc(IOobject(IOobject::groupName("mu", continuousPhaseName), runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), rhoc *continuousPhaseViscosity->nu())
Foam::mixtureViscosityModels::BinghamPlastic::mu
virtual tmp< volScalarField > mu(const volScalarField &muc, const volVectorField &U) const
Return the mixture viscosity.
Foam::mixtureViscosityModels::BinghamPlastic::read
virtual bool read()
Read phaseProperties dictionary.
Foam::mixtureViscosityModels::plastic
Viscosity correction model for a generic power-law plastic.
Definition:
plastic.H:55
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::dimensioned< scalar >
plastic.H
Foam::mixtureViscosityModels::BinghamPlastic::~BinghamPlastic
virtual ~BinghamPlastic()
Destructor.
Definition:
BinghamPlastic.H:84
Foam::mixtureViscosityModels::BinghamPlastic::BinghamPlastic
BinghamPlastic(const incompressibleTwoPhaseInteractingMixture &mixture)
Construct from mixture.
Foam::mixture
Definition:
mixture.H:52
Foam::mixtureViscosityModels::BinghamPlastic
Viscosity correction model for Bingham plastics.
Definition:
BinghamPlastic.H:52
Foam::tmp
A class for managing temporary objects.
Definition:
PtrList.H:53
Foam::mixtureViscosityModels::BinghamPlastic::TypeName
TypeName("BinghamPlastic")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:213
applications
solvers
multiphase
driftFluxFoam
mixtureViscosityModels
BinghamPlastic
BinghamPlastic.H
Generated by
1.8.13