OOFEM 3.0
Loading...
Searching...
No Matches
trabbonenl3d.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
36#ifndef trabbonenl3d_h
37#define trabbonenl3d_h
38
39#include "trabbone3d.h"
42#include "cltypes.h"
43
45
46#define _IFT_TrabBoneNL3D_Name "trabbonenl3d"
47#define _IFT_TrabBoneNL3D_r "r"
48#define _IFT_TrabBoneNL3D_m "m"
50
51namespace oofem {
56{
57protected:
60
61public:
63
64 void printOutputAt(FILE *file, TimeStep *tStep) const override;
65
68
69 const char *giveClassName() const override { return "TrabBoneNL3DStatus"; }
70
71 void initTempStatus() override;
72 void updateYourself(TimeStep *tStep) override;
74};
75
76
80class TrabBoneNL3D : public TrabBone3D,
83{
84protected:
85 double R = 0.;
86 double mParam = 0.;
87
88public:
89 TrabBoneNL3D(int n, Domain * d);
90
91 const char *giveClassName() const override { return "TrabBoneNL3D"; }
92 const char *giveInputRecordName() const override { return _IFT_TrabBoneNL3D_Name; }
93
94 void initializeFrom(InputRecord &ir) override;
95 void giveInputRecord(DynamicInputRecord &input) override;
96
98
99 double computeCumPlastStrain(GaussPoint *gp, TimeStep *tStep) const override;
100
108 double computeLocalCumPlastStrain(const FloatArrayF<6> &strain, GaussPoint *gp, TimeStep *tStep) const
109 {
110 return TrabBone3D :: computeCumPlastStrain(gp, tStep);
111 }
112
113 FloatMatrixF<6,6> give3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override;
114
115#ifdef __OOFEG
116 // Plots the sparse structure of stiffness contribution.
117 //void NonlocalMaterialStiffnessInterface_showSparseMtrxStructure(GaussPoint *gp, oofegGraphicContext &gc, TimeStep *tStep) override;
118#endif
119
121 GaussPoint *gp, TimeStep *tStep) override;
122
123 std :: vector< localIntegrationRecord > *NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override;
124
135 FloatArray &lcontrib, TimeStep *tStep);
136
146 FloatArray &rcontrib, TimeStep *tStep);
147
148 FloatArrayF<6> giveRealStressVector_3d(const FloatArrayF<6> &strain, GaussPoint *gp, TimeStep *tStep) const override;
149
150 void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override;
151
152 double computeWeightFunction(const double cl, const FloatArray &src, const FloatArray &coord) const override;
153
154 int hasBoundedSupport() const override { return 1; }
155
157 virtual void giveSupportRadius(double &radius) { radius = this->R; }
158
159 int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
160 int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
161 int estimatePackSize(DataStream &buff, GaussPoint *ip) override;
162
163protected:
164 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<TrabBoneNL3DStatus>(gp); }
165};
166} // end namespace oofem
167#endif
TrabBone3DStatus(GaussPoint *g)
Definition trabbone3d.C:979
TrabBone3D(int n, Domain *d)
Definition trabbone3d.C:50
const char * giveClassName() const override
double giveLocalCumPlastStrainForAverage() const
TrabBoneNL3DStatus(GaussPoint *g)
void updateYourself(TimeStep *tStep) override
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
double localCumPlastStrainForAverage
Equivalent strain for averaging.
void initTempStatus() override
void setLocalCumPlastStrainForAverage(double ls)
Interface * giveInterface(InterfaceType it) override
double computeCumPlastStrain(GaussPoint *gp, TimeStep *tStep) const override
TrabBoneNL3D(int n, Domain *d)
void giveInputRecord(DynamicInputRecord &input) override
void giveRemoteNonlocalStiffnessContribution(GaussPoint *gp, IntArray &rloc, const UnknownNumberingScheme &s, FloatArray &rcontrib, TimeStep *tStep)
int estimatePackSize(DataStream &buff, GaussPoint *ip) override
FloatArrayF< 6 > giveRealStressVector_3d(const FloatArrayF< 6 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
const char * giveInputRecordName() const override
int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
double computeWeightFunction(const double cl, const FloatArray &src, const FloatArray &coord) const override
int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
void NonlocalMaterialStiffnessInterface_addIPContribution(SparseMtrx &dest, const UnknownNumberingScheme &s, GaussPoint *gp, TimeStep *tStep) override
Computes and adds IP contributions to destination matrix.
int hasBoundedSupport() const override
virtual void giveSupportRadius(double &radius)
Determines the width (radius) of limited support of weighting function.
Interface * giveInterface(InterfaceType it) override
int giveLocalNonlocalStiffnessContribution(GaussPoint *gp, IntArray &loc, const UnknownNumberingScheme &s, FloatArray &lcontrib, TimeStep *tStep)
void initializeFrom(InputRecord &ir) override
FloatMatrixF< 6, 6 > give3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const override
std ::vector< localIntegrationRecord > * NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp) override
const char * giveClassName() const override
double computeLocalCumPlastStrain(const FloatArrayF< 6 > &strain, GaussPoint *gp, TimeStep *tStep) const
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override
#define _IFT_TrabBoneNL3D_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