OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trabbonenl.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 #ifndef trabbonenl_h
36 #define trabbonenl_h
37 
38 #include "trabbonematerial.h"
41 #include "cltypes.h"
42 
44 
45 #define _IFT_TrabBoneNL_Name "trabbonenl"
46 #define _IFT_TrabBoneNL_r "r"
47 #define _IFT_TrabBoneNL_m "m"
48 
49 
50 namespace oofem {
55 {
56 protected:
59 
60 public:
61  TrabBoneNLStatus(int n, Domain * d, GaussPoint * g);
62  virtual ~TrabBoneNLStatus();
63 
64  virtual void printOutputAt(FILE *file, TimeStep *tStep);
65 
67  void setLocalCumPlastStrainForAverage(double ls) { localCumPlastStrainForAverage = ls; }
68 
69  virtual const char *giveClassName() const { return "TrabBoneNLStatus"; }
70 
71  virtual void initTempStatus();
72 
73  virtual void updateYourself(TimeStep *tStep);
74 
76 };
77 
78 
83 {
84 protected:
85  double R;
86  double mParam;
87 
88 public:
89  TrabBoneNL(int n, Domain * d);
90  virtual ~TrabBoneNL();
91 
92  virtual const char *giveClassName() const { return "TrabBoneNL"; }
93  virtual const char *giveInputRecordName() const { return _IFT_TrabBoneNL_Name; }
94 
96  virtual void giveInputRecord(DynamicInputRecord &input);
97 
99 
100  virtual void computeCumPlastStrain(double &alpha, GaussPoint *gp, TimeStep *tStep);
101 
102  virtual void giveRealStressVector_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &strainVector, TimeStep *tStep);
103 
104  void computeLocalCumPlastStrain(double &alpha, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
105  {
107  }
108 
109  virtual void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep);
110 
111  virtual double computeWeightFunction(const FloatArray &src, const FloatArray &coord);
112 
113  virtual int hasBoundedSupport() { return 1; }
114 
115  virtual void giveSupportRadius(double &radius) { radius = this->R; }
116 
117 protected:
119 };
120 } // end namespace oofem
121 #endif
Abstract base class for all nonlocal structural materials.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: trabbonenl.h:118
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
void setLocalCumPlastStrainForAverage(double ls)
Definition: trabbonenl.h:67
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
virtual const char * giveInputRecordName() const
Definition: trabbonenl.h:93
virtual const char * giveClassName() const
Definition: trabbonenl.h:69
virtual void computeCumPlastStrain(double &alpha, GaussPoint *gp, TimeStep *tStep)
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: trabbonenl.C:341
void computeLocalCumPlastStrain(double &alpha, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Definition: trabbonenl.h:104
Trabecular bone material model.
virtual ~TrabBoneNLStatus()
Definition: trabbonenl.C:288
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
Definition: trabbonenl.C:356
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
double giveLocalCumPlastStrainForAverage()
Definition: trabbonenl.h:66
This class implements associated Material Status to TrabBoneMaterial.
virtual int hasBoundedSupport()
Determines, whether receiver has bounded weighting function (limited support).
Definition: trabbonenl.h:113
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: trabbonenl.C:326
double localCumPlastStrainForAverage
Equivalent strain for averaging.
Definition: trabbonenl.h:58
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
TrabBoneNLStatus(int n, Domain *d, GaussPoint *g)
Definition: trabbonenl.C:273
FloatArray strainVector
Equilibrated strain vector in reduced form.
Definition: structuralms.h:69
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
#define _IFT_TrabBoneNL_Name
Definition: trabbonenl.h:45
Trabecular bone nonlocal material.
Definition: trabbonenl.h:82
Class representing the general Input Record.
Definition: inputrecord.h:101
Base class for all nonlocal structural material statuses.
Class Interface.
Definition: interface.h:82
Class representing the a dynamic Input Record.
virtual const char * giveClassName() const
Definition: trabbonenl.h:92
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.
virtual void giveSupportRadius(double &radius)
Definition: trabbonenl.h:115
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: trabbonenl.C:301
Trabecular bone nonlocal material status.
Definition: trabbonenl.h:54

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