OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
delamination.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 DELAMINATION_H_
36 #define DELAMINATION_H_
37 
38 #include "xfem/listbasedei.h"
39 
41 
42 #define _IFT_Delamination_Name "delamination"
43 #define _IFT_Delamination_xiCoord "delaminationxicoord"
44 #define _IFT_Delamination_interfacenum "interfacenum"
45 #define _IFT_Delamination_csnum "csnum"
46 #define _IFT_Delamination_CohesiveZoneMaterial "czmaterial"
47 #define _IFT_Delamination_initiationFactor "initiationfactor"
48 #define _IFT_Delamination_initiationRadius "initiationradius"
49 #define _IFT_Delamination_averageStresses "averageStresses"
50 
51 
52 namespace oofem {
53 class Material;
54 
58 class OOFEM_EXPORT Delamination : public ListBasedEI
59 {
60 protected:
61  Material *mat; // Material for cohesive zone model
62  IntArray interfaceNum; // starting and ending interfaceNum for the delamination
63  IntArray crossSectionNum; // use this to keep track of the interface coordinates
64  int matNum; // still used??
65  double delamXiCoord; // defines at what local xi-coord the delamination is defined
66 
67  // New 110814 JB defines between what local xi-coords the delamination is defined
68  double xiBottom;
69  double xiTop;
70 
71  // Adaptive enrichment,
72  // cf. Främby, Fagerström & Bouzoulis, 'Adaptive modelling of delamination initiation and propagation using an equivalent single-layer shell approach', IJNME, 2016
73  double initiationFactor; // knock-down factor on initiation values, (0,1] //JF
74  double initiationRadius; // radius around around newlye initiated element nodes to be included //JF
75  bool recoverStresses; // recover tranverse stresses using momentum balance (default). //JF
76 public:
77  Delamination(int n, XfemManager *xm, Domain *aDomain);
78 
79  virtual int instanciateYourself(DataReader &dr);
80 
81  virtual const char *giveClassName() const { return "Delamination"; }
82  virtual const char *giveInputRecordName() const { return _IFT_Delamination_Name; }
83  virtual IRResultType initializeFrom(InputRecord *ir);
84  virtual void appendInputRecords(DynamicDataReader &oDR);
85 
86  double giveDelamXiCoord() const { return xiBottom; } // coord where the delamination is defined
87  double giveBoundingDelamXiCoord() const { return xiTop; } // coord where the delamination enrichment should stop, default is the shell surface
88  int giveDelamInterfaceNum() const { return interfaceNum.at(1); }
89  IntArray giveDelamCrossSectionNum() const { return crossSectionNum; }
90  double giveInitiationFactor() const { return initiationFactor; }
91  //virtual void updateGeometry(FailureCriteriaStatus *fc, TimeStep *tStep);
92  virtual bool hasPropagatingFronts() const { return true; }
93  virtual bool hasInitiationCriteria();
94 
95  virtual void propagateFronts(bool &oFrontsHavePropagated);
96  virtual void findInitiationFronts(bool &failureChecked, const IntArray &CSnumbers, std :: vector< IntArray > &CSinterfaceNumbers, std :: vector< IntArray > &CSDofManNumbers, std :: vector< FloatArray > &initiationFactors, TimeStep *tStep);
97 
98  virtual void evaluateEnrFuncInNode(std :: vector< double > &oEnrFunc, const Node &iNode) const { OOFEM_ERROR("Not implemented.") }
99 
100  virtual void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const;
101  virtual void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const IntArray &iElNodes) const;
102 
103  virtual void evaluateEnrFuncDerivAt(std :: vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const { OOFEM_ERROR("Not implemented."); }
104  virtual void evaluateEnrFuncDerivAt(std :: vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const FloatMatrix &idNdX, const IntArray &iElNodes) const { OOFEM_ERROR("Not implemented."); }
105 
106  virtual void evalLevelSetNormal(double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const;
107  virtual void evalLevelSetTangential(double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const { OOFEM_ERROR("Not implemented."); }
108  virtual void evalGradLevelSetNormal(FloatArray &oGradLevelSet, const FloatArray &iGlobalCoord, const FloatMatrix &idNdX, const IntArray &iNodeInd) const { OOFEM_ERROR("Not implemented."); }
109 
110  void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iPos, const double &iLevelSet) const;
111 };
112 } // end namespace oofem
113 
114 
115 #endif /* DELAMINATION_H_ */
virtual void evaluateEnrFuncInNode(std::vector< double > &oEnrFunc, const Node &iNode) const
Definition: delamination.h:98
double giveDelamXiCoord() const
Definition: delamination.h:86
Class and object Domain.
Definition: domain.h:115
IntArray giveDelamCrossSectionNum() const
Definition: delamination.h:89
Class representing the implementation of a dynamic data reader for in-code use.
virtual const char * giveClassName() const
Definition: delamination.h:81
int giveDelamInterfaceNum() const
Definition: delamination.h:88
virtual bool hasPropagatingFronts() const
Definition: delamination.h:92
Delamination.
Definition: delamination.h:58
Abstract base class for all finite elements.
Definition: element.h:145
Class representing the abstraction for input data source.
Definition: datareader.h:50
virtual void evaluateEnrFuncDerivAt(std::vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const
Definition: delamination.h:103
Class implementing an array of integers.
Definition: intarray.h:61
int & at(int i)
Coefficient access function.
Definition: intarray.h:103
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual void evalGradLevelSetNormal(FloatArray &oGradLevelSet, const FloatArray &iGlobalCoord, const FloatMatrix &idNdX, const IntArray &iNodeInd) const
Evaluate the gradient of the normal direction level set in the point iGlobalCoord.
Definition: delamination.h:108
Abstract base class for all material models.
Definition: material.h:95
double giveInitiationFactor() const
Definition: delamination.h:90
IntArray crossSectionNum
Definition: delamination.h:63
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void evaluateEnrFuncDerivAt(std::vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const FloatMatrix &idNdX, const IntArray &iElNodes) const
Definition: delamination.h:104
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
double giveBoundingDelamXiCoord() const
Definition: delamination.h:87
This class manages the xfem part.
Definition: xfemmanager.h:109
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
EnrichmentItem with geometry defined by a set of nodes to be enriched.
Definition: listbasedei.h:54
#define _IFT_Delamination_Name
Definition: delamination.h:42
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void evalLevelSetTangential(double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const
Evaluate the tangential direction level set in the point iGlobalCoord.
Definition: delamination.h:107
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class implementing node in finite element mesh.
Definition: node.h:87
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveInputRecordName() const
Definition: delamination.h:82

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011