OOFEM 3.0
Loading...
Searching...
No Matches
trabbonegrad3d.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 TrabBoneGrad3D_h
36#define TrabBoneGrad3D_h
37
38#include "trabbone3d.h"
40#include "cltypes.h"
41
42#define _IFT_TrabBoneGrad3D_Name "trabbonegrad3d"
43#define _IFT_TrabBoneGrad3D_L "l"
44#define _IFT_TrabBoneGrad3D_m "mParam"
45
46namespace oofem {
47class LinearElasticMaterial;
48
53{
54protected:
56 double nlKappa = 0.;
59
60public:
62
63 void printOutputAt(FILE *file, TimeStep *tStep) const override;
64
65 const char *giveClassName() const override { return "TrabBoneGrad3DStatus"; }
66
67
69 void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain) { this->nonlocalDamageDrivingVariable = nonlocalCumulatedStrain; }
70
71 void initTempStatus() override;
72 void updateYourself(TimeStep *) override;
73};
74
75
80{
81protected:
82 double L = 0.;
83 double mParam = 0.;
84
85public:
86 TrabBoneGrad3D(int n, Domain *d);
87
88 const char *giveClassName() const override { return "TrabBoneGrad3D"; }
89 const char *giveInputRecordName() const override { return _IFT_TrabBoneGrad3D_Name; }
90
91 void initializeFrom(InputRecord &ir) override;
92 bool hasMaterialModeCapability(MaterialMode mode) const override;
95 return static_cast< GradientDamageMaterialExtensionInterface * >( this );
96 } else {
97 return NULL;
98 }
99 }
100
101 void giveGradientDamageStiffnessMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override;
102 void giveGradientDamageStiffnessMatrix_du(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override;
103 void giveGradientDamageStiffnessMatrix_ud(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override;
104 void giveGradientDamageStiffnessMatrix_dd_BB(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override;
105
106 void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) const override;
107 FloatMatrixF<6,6> give3dMaterialStiffnessMatrix(MatResponseMode, GaussPoint * gp, TimeStep * tStep) const override;
108 void give3dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
109 void give3dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
110 void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
111
112 void computeLocalDamageDrivingVariable(double &answer, GaussPoint *gp, TimeStep *tStep) override;
113 void giveNonlocalInternalForces_N_factor(double &answer, double nlddv, GaussPoint *gp, TimeStep *tStep) override;
114 void giveNonlocalInternalForces_B_factor(FloatArray &answer, const FloatArray &nlddv, GaussPoint *gp, TimeStep *tStep) override;
115
116 void giveRealStressVectorGradientDamage(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep) override;
117 double computeCumPlastStrain(GaussPoint *gp, TimeStep *tStep) const override;
118 void performPlasticityReturn(GaussPoint *gp, const FloatArray &totalStrain);
119 //LinearElasticMaterial *giveLinearElasticMaterial() { return linearElasticMaterial; }
120
121protected:
122 // Creates the corresponding material status
123 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<TrabBoneGrad3DStatus>(gp); }
124};
125} // end namespace oofem
126
127#endif
TrabBone3DStatus(GaussPoint *g)
Definition trabbone3d.C:979
TrabBone3D(int n, Domain *d)
Definition trabbone3d.C:50
double nlKappa
Equivalent strain for avaraging.
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
LinearElasticMaterial * linearElasticMaterial
Reference to the basic elastic material.
void updateYourself(TimeStep *) override
void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain)
TrabBoneGrad3DStatus(GaussPoint *g)
const char * giveClassName() const override
double giveNonlocalCumulatedStrain() const
FloatMatrixF< 6, 6 > give3dMaterialStiffnessMatrix(MatResponseMode, GaussPoint *gp, TimeStep *tStep) const override
void giveGradientDamageStiffnessMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override
Left upper block.
void giveNonlocalInternalForces_N_factor(double &answer, double nlddv, GaussPoint *gp, TimeStep *tStep) override
void giveGradientDamageStiffnessMatrix_dd_BB(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override
const char * giveClassName() const override
void initializeFrom(InputRecord &ir) override
void giveGradientDamageStiffnessMatrix_du(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override
Left lower block.
bool hasMaterialModeCapability(MaterialMode mode) const override
void performPlasticityReturn(GaussPoint *gp, const FloatArray &totalStrain)
void computeLocalDamageDrivingVariable(double &answer, GaussPoint *gp, TimeStep *tStep) override
void giveGradientDamageStiffnessMatrix_ud(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) override
Right upper block.
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void give3dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
void giveNonlocalInternalForces_B_factor(FloatArray &answer, const FloatArray &nlddv, GaussPoint *gp, TimeStep *tStep) override
void give3dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) const override
Interface * giveInterface(InterfaceType t) override
TrabBoneGrad3D(int n, Domain *d)
void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
double computeCumPlastStrain(GaussPoint *gp, TimeStep *tStep) const override
void giveRealStressVectorGradientDamage(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep) override
gradient - based giveRealStressVector
const char * giveInputRecordName() const override
@ GradientDamageMaterialExtensionInterfaceType
#define _IFT_TrabBoneGrad3D_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