OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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"
49 
50 
51 namespace oofem {
56 {
57 protected:
60 
61 public:
62  TrabBoneNL3DStatus(int n, Domain * d, GaussPoint * g);
63  virtual ~TrabBoneNL3DStatus();
64 
65  virtual void printOutputAt(FILE *file, TimeStep *tStep);
66 
69  void setLocalCumPlastStrainForAverage(double ls) { localCumPlastStrainForAverage = ls; }
70 
71  // definition
72  virtual const char *giveClassName() const { return "TrabBoneNL3DStatus"; }
73 
74  virtual void initTempStatus();
75  virtual void updateYourself(TimeStep *tStep);
77 };
78 
79 
83 class TrabBoneNL3D : public TrabBone3D,
86 {
87 protected:
88  double R;
89  double mParam;
90 
91 public:
92  TrabBoneNL3D(int n, Domain * d);
93  virtual ~TrabBoneNL3D();
94 
95  virtual const char *giveClassName() const { return "TrabBoneNL3D"; }
96  virtual const char *giveInputRecordName() const { return _IFT_TrabBoneNL3D_Name; }
97 
99  virtual void giveInputRecord(DynamicInputRecord &input);
100 
102 
103  virtual void computeCumPlastStrain(double &kappa, GaussPoint *gp, TimeStep *tStep);
104 
112  void computeLocalCumPlastStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
113  {
114  TrabBone3D :: computeCumPlastStrain(kappa, gp, tStep);
115  }
116 
117  virtual void give3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
118 
119 #ifdef __OOFEG
120  // Plots the sparse structure of stiffness contribution.
121  //virtual void NonlocalMaterialStiffnessInterface_showSparseMtrxStructure(GaussPoint *gp, oofegGraphicContext &gc, TimeStep *tStep);
122 #endif
123 
124  virtual void NonlocalMaterialStiffnessInterface_addIPContribution(SparseMtrx &dest, const UnknownNumberingScheme &s,
125  GaussPoint *gp, TimeStep *tStep);
126 
127  virtual std :: vector< localIntegrationRecord > *NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp);
128 
138  int giveLocalNonlocalStiffnessContribution(GaussPoint *gp, IntArray &loc, const UnknownNumberingScheme &s,
139  FloatArray &lcontrib, TimeStep *tStep);
140 
149  void giveRemoteNonlocalStiffnessContribution(GaussPoint *gp, IntArray &rloc, const UnknownNumberingScheme &s,
150  FloatArray &rcontrib, TimeStep *tStep);
151 
152  virtual void giveRealStressVector_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &strainVector, TimeStep *tStep);
153 
154  virtual void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep);
155 
156  virtual double computeWeightFunction(const FloatArray &src, const FloatArray &coord);
157 
158  virtual int hasBoundedSupport() { return 1; }
159 
161  virtual void giveSupportRadius(double &radius) { radius = this->R; }
162 
163  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
164  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
165  virtual int estimatePackSize(DataStream &buff, GaussPoint *ip);
166 
167 protected:
169 };
170 } // end namespace oofem
171 #endif
Abstract base class for all nonlocal structural materials.
virtual const char * giveClassName() const
Definition: trabbonenl3d.h:95
virtual const char * giveClassName() const
Definition: trabbonenl3d.h:72
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual int hasBoundedSupport()
Determines, whether receiver has bounded weighting function (limited support).
Definition: trabbonenl3d.h:158
double giveLocalCumPlastStrainForAverage()
Definition: trabbonenl3d.h:67
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual const char * giveInputRecordName() const
Definition: trabbonenl3d.h:96
Trabecular bone nonlocal material model.
Definition: trabbonenl3d.h:83
Trabecular bone nonlocal material status.
Definition: trabbonenl3d.h:55
TrabBoneNL3DStatus(int n, Domain *d, GaussPoint *g)
Definition: trabbonenl3d.C:406
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Definition: trabbonenl3d.C:452
#define _IFT_TrabBoneNL3D_Name
Definition: trabbonenl3d.h:46
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
void computeLocalCumPlastStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the local cumulated plastic strain from given strain vector (full form). ...
Definition: trabbonenl3d.h:112
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver&#39;s output to given stream.
Definition: trabbonenl3d.C:418
Class Nonlocal Material Stiffness Interface.
MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: trabbonenl3d.h:168
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
void setLocalCumPlastStrainForAverage(double ls)
Definition: trabbonenl3d.h:69
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void computeCumPlastStrain(double &kappa, GaussPoint *gp, TimeStep *tStep)
Definition: trabbone3d.C:627
FloatArray strainVector
Equilibrated strain vector in reduced form.
Definition: structuralms.h:69
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
double localCumPlastStrainForAverage
Equivalent strain for averaging.
Definition: trabbonenl3d.h:59
Class representing the general Input Record.
Definition: inputrecord.h:101
Base class for all nonlocal structural material statuses.
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: trabbonenl3d.C:445
Class Interface.
Definition: interface.h:82
virtual void giveSupportRadius(double &radius)
Determines the width (radius) of limited support of weighting function.
Definition: trabbonenl3d.h:161
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: trabbonenl3d.C:438
Class representing the a dynamic Input Record.
This class implements associated Material Status to TrabBone3D (trabecular bone material).
Definition: trabbone3d.h:101
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
const FloatArray * giveLTangentContrib()

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:32 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011