OOFEM 3.0
Loading...
Searching...
No Matches
rankinematnl.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef rankinematnl_h
36#define rankinematnl_h
37
38#include "rankinemat.h"
41#include "nonlocalmaterialext.h"
42#include "cltypes.h"
43
44#define _IFT_RankineMatNl_Name "rankmatnl"
45
46namespace oofem {
51{
52protected:
55
57 double kappa_nl = 0.;
58 double kappa_hat = 0.;
59
60public:
62
63 void printOutputAt(FILE *file, TimeStep *tStep) const override;
64
67
68 const char *giveClassName() const override { return "RankineMatNlStatus"; }
69
70 void initTempStatus() override;
71
72 void updateYourself(TimeStep *tStep) override;
73
74 void setKappa_nl(double kap) { kappa_nl = kap; }
75 void setKappa_hat(double kap) { kappa_hat = kap; }
76 double giveKappa_nl() const { return kappa_nl; }
77 double giveKappa_hat() const { return kappa_hat; }
78
79 void saveContext(DataStream &stream, ContextMode mode) override;
80 void restoreContext(DataStream &stream, ContextMode mode) override;
81
83};
84
85
91{
92public:
93 RankineMatNl(int n, Domain * d);
94
95 const char *giveClassName() const override { return "RankineMatNl"; }
96 const char *giveInputRecordName() const override { return _IFT_RankineMatNl_Name; }
97
98 void initializeFrom(InputRecord &ir) override;
99 void giveInputRecord(DynamicInputRecord &input) override;
100
102
109 virtual double computeCumPlasticStrain(GaussPoint *gp, TimeStep *tStep) const;
110 double computeDamage(GaussPoint *gp, TimeStep *tStep) const;
111 //void modifyNonlocalWeightFunctionAround(GaussPoint *gp);
112 double computeDistanceModifier(double damage) const;
114 {
115 return RankineMat :: computeCumPlastStrain(gp, tStep);
116 }
117
118
119 FloatMatrixF<3,3> givePlaneStressStiffMtrx(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override;
120 //void givePlaneStrainStiffMtrx(FloatMatrix& answer, MatResponseMode,GaussPoint * gp,TimeStep * tStep) override;
121 //void give3dMaterialStiffnessMatrix(FloatMatrix& answer, MatResponseMode,GaussPoint* gp, TimeStep* tStep) override;
122
123#ifdef __OOFEG
124 // Plots the sparse structure of stiffness contribution.
125 //void NonlocalMaterialStiffnessInterface_showSparseMtrxStructure(GaussPoint *gp, oofegGraphicContext &gc, TimeStep *tStep) override;
126#endif
127
129 GaussPoint *gp, TimeStep *tStep) override;
130
131 std :: vector< localIntegrationRecord > *NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override;
132
143 FloatArray &lcontrib, TimeStep *tStep);
144
154 FloatArray &rcontrib, TimeStep *tStep);
155
156 // Computes elastic stiffness for normal stress components
157 // @param answer result of size (3,3)
158 // @param mode determines the MatResponseMode
159 // @param gp integration point
160 // @param tStep time step
161 // void giveNormalElasticStiffnessMatrix (FloatMatrix& answer, MatResponseMode rMode, GaussPoint*gp, TimeStep* tStep) ;
162
163 FloatArrayF<3> giveRealStressVector_PlaneStress(const FloatArrayF<3> &strain, GaussPoint *gp, TimeStep *tStep) const override;
164
165 // Computes 1D stress
166 FloatArrayF<1> giveRealStressVector_1d(const FloatArrayF<1> &strain, GaussPoint *gp, TimeStep *tStep) const override;
167
168 void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override;
169
171 double giveNonlocalMetricModifierAt(GaussPoint *gp) const override;
172
173 int hasBoundedSupport() const override { return 1; }
174
175 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
176
177 int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
178 int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
179 int estimatePackSize(DataStream &buff, GaussPoint *ip) override;
180
181protected:
182 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<RankineMatNlStatus>(gp); }
183};
184} // end namespace oofem
185#endif
void setKappa_nl(double kap)
double giveKappa_hat() const
double giveKappa_nl() const
void saveContext(DataStream &stream, ContextMode mode) override
void updateYourself(TimeStep *tStep) override
double localCumPlasticStrainForAverage
Equivalent strain for averaging.
void setLocalCumPlasticStrainForAverage(double ls)
RankineMatNlStatus(GaussPoint *g)
const char * giveClassName() const override
void initTempStatus() override
void restoreContext(DataStream &stream, ContextMode mode) override
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
void setKappa_hat(double kap)
double kappa_nl
For printing only.
double giveLocalCumPlasticStrainForAverage() const
Interface * giveInterface(InterfaceType) override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
void giveInputRecord(DynamicInputRecord &input) override
int giveLocalNonlocalStiffnessContribution(GaussPoint *gp, IntArray &loc, const UnknownNumberingScheme &s, FloatArray &lcontrib, TimeStep *tStep)
double giveNonlocalMetricModifierAt(GaussPoint *gp) const override
Compute the factor that specifies how the interaction length should be modified (by eikonal nonlocal ...
FloatArrayF< 1 > giveRealStressVector_1d(const FloatArrayF< 1 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector_StressControl.
FloatArrayF< 3 > giveRealStressVector_PlaneStress(const FloatArrayF< 3 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector_StressControl.
double computeDamage(GaussPoint *gp, TimeStep *tStep) const
Interface * giveInterface(InterfaceType) override
FloatMatrixF< 3, 3 > givePlaneStressStiffMtrx(MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep) const override
int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
void giveRemoteNonlocalStiffnessContribution(GaussPoint *gp, IntArray &rloc, const UnknownNumberingScheme &s, FloatArray &rcontrib, TimeStep *tStep)
int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
std ::vector< localIntegrationRecord > * NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override
const char * giveClassName() const override
int hasBoundedSupport() const override
double computeDistanceModifier(double damage) const
void initializeFrom(InputRecord &ir) override
virtual double computeCumPlasticStrain(GaussPoint *gp, TimeStep *tStep) const
RankineMatNl(int n, Domain *d)
void NonlocalMaterialStiffnessInterface_addIPContribution(SparseMtrx &dest, const UnknownNumberingScheme &s, GaussPoint *gp, TimeStep *tStep) override
Computes and adds IP contributions to destination matrix.
const char * giveInputRecordName() const override
double computeLocalCumPlasticStrain(GaussPoint *gp, TimeStep *tStep) const
int estimatePackSize(DataStream &buff, GaussPoint *ip) override
RankineMatStatus(GaussPoint *g)
Definition rankinemat.C:676
RankineMat(int n, Domain *d)
Definition rankinemat.C:52
long ContextMode
Definition contextmode.h:43
#define _IFT_RankineMatNl_Name

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011