OOFEM 3.0
Loading...
Searching...
No Matches
idmnl1.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 idmnl1_h
36#define idmnl1_h
37
41
43
44#define _IFT_IDNLMaterial_Name "idmnl1"
45#define _IFT_IDNLMaterial_r "r"
47
48namespace oofem {
49class GaussPoint;
50
56{
57protected:
60
61 /* // Variables used to track loading/reloading
62 * public:
63 * enum LastStateType {LST_elastic, LST_loading, LST_unloading};
64 * LastStateType lst;
65 */
66
67public:
70
71 void printOutputAt(FILE *file, TimeStep *tStep) const override;
72
77
78 const char *giveClassName() const override { return "IDNLMaterialStatus"; }
79
80 void initTempStatus() override;
81 void updateYourself(TimeStep *tStep) override;
82
83 void saveContext(DataStream &stream, ContextMode mode) override;
84 void restoreContext(DataStream &stream, ContextMode mode) override;
85
98};
99
100
107{
108public:
110 IDNLMaterial(int n, Domain *d);
111
112 const char *giveClassName() const override { return "IDNLMaterial"; }
113 const char *giveInputRecordName() const override { return _IFT_IDNLMaterial_Name; }
114
115 void initializeFrom(InputRecord &ir) override;
116 void giveInputRecord(DynamicInputRecord &input) override;
117
119
120 double computeEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const override;
130 void computeAngleAndSigmaRatio(double &nx, double &ny, double &ratio, GaussPoint *gp, bool &flag) const;
142 double computeStressBasedWeight(double cl, double &nx, double &ny, double &ratio, GaussPoint *gp, GaussPoint *jGp, double weight) const;
143 double computeStressBasedWeightForPeriodicCell(double cl, double &nx, double &ny, double &ratio, GaussPoint *gp, GaussPoint *jGp) const;
144
145 double computeLocalEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const
146 { return IsotropicDamageMaterial1 :: computeEquivalentStrain(strain, gp, tStep); }
147
148 void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override;
149
151 double giveNonlocalMetricModifierAt(GaussPoint *gp) const override;
152
153 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
154
155#ifdef __OOFEG
158#endif
159
160 double computeDamageParam(double kappa, const FloatArray &strain, GaussPoint *gp) const override;
161
165 GaussPoint *gp, TimeStep *tStep) override;
171 std :: vector< localIntegrationRecord > *NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override;
182 FloatArray &lcontrib, TimeStep *tStep);
192 FloatArray &rcontrib, TimeStep *tStep);
201 MatResponseMode mode,
202 GaussPoint *gp, TimeStep *tStep);
204
205 int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
206 int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
207 int estimatePackSize(DataStream &buff, GaussPoint *ip) override;
208 double predictRelativeComputationalCost(GaussPoint *gp) override;
209 double predictRelativeRedistributionCost(GaussPoint *gp) override { return 1.0; }
210
211 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<IDNLMaterialStatus>(gp); }
212
213protected:
214 void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp) const override { }
215};
216} // end namespace oofem
217#endif // idmnl1_h
double giveLocalEquivalentStrainForAverage()
Returns the local equivalent strain to be averaged.
Definition idmnl1.h:74
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
Definition idmnl1.C:830
double localEquivalentStrainForAverage
Equivalent strain for averaging.
Definition idmnl1.h:59
void updateYourself(TimeStep *tStep) override
Definition idmnl1.C:860
void setLocalEquivalentStrainForAverage(double ls)
Sets the localEquivalentStrainForAverage to given value.
Definition idmnl1.h:76
void initTempStatus() override
Definition idmnl1.C:848
void saveContext(DataStream &stream, ContextMode mode) override
Definition idmnl1.C:873
void restoreContext(DataStream &stream, ContextMode mode) override
Definition idmnl1.C:880
Interface * giveInterface(InterfaceType) override
Definition idmnl1.C:887
const char * giveClassName() const override
Definition idmnl1.h:78
IDNLMaterialStatus(GaussPoint *g)
Constructor.
Definition idmnl1.C:822
void NonlocalMaterialStiffnessInterface_addIPContribution(SparseMtrx &dest, const UnknownNumberingScheme &s, GaussPoint *gp, TimeStep *tStep) override
Computes and adds IP contributions to destination matrix.
Definition idmnl1.C:407
int giveLocalNonlocalStiffnessContribution(GaussPoint *gp, IntArray &loc, const UnknownNumberingScheme &s, FloatArray &lcontrib, TimeStep *tStep)
Definition idmnl1.C:567
double predictRelativeComputationalCost(GaussPoint *gp) override
Definition idmnl1.C:934
void NonlocalMaterialStiffnessInterface_showSparseMtrxStructure(GaussPoint *gp, oofegGraphicContext &gc, TimeStep *tStep) override
Plots the sparse structure of stiffness contribution.
Definition idmnl1.C:479
double computeLocalEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const
Definition idmnl1.h:145
double computeStressBasedWeight(double cl, double &nx, double &ny, double &ratio, GaussPoint *gp, GaussPoint *jGp, double weight) const
Definition idmnl1.C:220
double computeDamageParam(double kappa, const FloatArray &strain, GaussPoint *gp) const override
Definition idmnl1.C:392
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Definition idmnl1.C:462
void giveRemoteNonlocalStiffnessContribution(GaussPoint *gp, IntArray &rloc, const UnknownNumberingScheme &s, FloatArray &rcontrib, TimeStep *tStep)
Definition idmnl1.C:646
const char * giveClassName() const override
Definition idmnl1.h:112
int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
Definition idmnl1.C:898
double computeStressBasedWeightForPeriodicCell(double cl, double &nx, double &ny, double &ratio, GaussPoint *gp, GaussPoint *jGp) const
Definition idmnl1.C:254
int estimatePackSize(DataStream &buff, GaussPoint *ip) override
Definition idmnl1.C:921
double giveNonlocalMetricModifierAt(GaussPoint *gp) const override
Compute the factor that specifies how the interaction length should be modified (by eikonal nonlocal ...
Definition idmnl1.C:118
void computeAngleAndSigmaRatio(double &nx, double &ny, double &ratio, GaussPoint *gp, bool &flag) const
Definition idmnl1.C:129
const char * giveInputRecordName() const override
Definition idmnl1.h:113
Interface * giveInterface(InterfaceType it) override
Definition idmnl1.C:362
int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
Definition idmnl1.C:909
void giveNormalElasticStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition idmnl1.C:801
void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override
Definition idmnl1.C:68
void giveInputRecord(DynamicInputRecord &input) override
Definition idmnl1.C:385
std ::vector< localIntegrationRecord > * NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override
Definition idmnl1.C:452
void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp) const override
Definition idmnl1.h:214
double predictRelativeRedistributionCost(GaussPoint *gp) override
Definition idmnl1.h:209
IDNLMaterial(int n, Domain *d)
Constructor.
Definition idmnl1.C:60
double computeEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const override
Definition idmnl1.C:285
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
Definition idmnl1.h:211
void initializeFrom(InputRecord &ir) override
Definition idmnl1.C:377
IsotropicDamageMaterial1Status(GaussPoint *g)
Constructor.
Definition idm1.C:1492
IsotropicDamageMaterial1(int n, Domain *d)
Constructor.
Definition idm1.C:70
#define _IFT_IDNLMaterial_Name
Definition idmnl1.h:44
long ContextMode
Definition contextmode.h:43
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]

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