1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 plasticityStressReturn
28 Method to calcluate the plastic strain increment, returning the
29 stress to the yield surface
32 plasticityStressReturn.C
33 newPlasticityStressReturn.C
38 \*---------------------------------------------------------------------------*/
40 #ifndef plasticityStressReturn_H
41 #define plasticityStressReturn_H
43 #include "IOdictionary.H"
45 #include "runTimeSelectionTables.H"
46 #include "volFields.H"
49 //#include "constitutiveModel.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 class constitutiveModel;
58 /*---------------------------------------------------------------------------*\
59 Class plasticityStressReturn Declaration
60 \*---------------------------------------------------------------------------*/
62 class plasticityStressReturn
70 // Private Member Functions
72 //- Disallow copy construct
73 plasticityStressReturn(const plasticityStressReturn&);
75 //- Disallow default bitwise assignment
76 void operator=(const plasticityStressReturn&);
83 //- Runtime type information
84 TypeName("plasticityStressReturn");
87 // Declare run-time constructor selection table
89 declareRunTimeSelectionTable
92 plasticityStressReturn,
96 constitutiveModel& constitutiveModel
98 (name, constitutiveModel)
104 //- Return a reference to the selected rheology model
105 static autoPtr<plasticityStressReturn> New
108 constitutiveModel& constitutiveModel
114 //- Construct from dictionary
115 plasticityStressReturn
118 constitutiveModel& constitutiveModel
124 virtual ~plasticityStressReturn()
131 const word& name() const
136 //- If plasticity is active
137 virtual bool plasticityActive() const
142 //- Increment of plastic strain
143 virtual const volSymmTensorField& DEpsilonP() const = 0;
145 //- Update the yield stress
146 //- called at end of time-step
147 virtual void updateYieldStress() = 0;
150 virtual void correct() = 0;
152 //- Write model dictionary
153 //virtual void writeDict(Ostream& os) const {};
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 } // End namespace Foam
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 // ************************************************************************* //