OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
crack.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 #ifndef CRACK_H_
35 #define CRACK_H_
36 
37 #include "xfem/enrichmentitem.h"
38 #include "xfem/hybridei.h"
39 
40 #define _IFT_Crack_Name "crack"
41 
42 namespace oofem {
43 class XfemManager;
44 class Domain;
45 class InputRecord;
46 class GaussPoint;
47 class GnuplotExportModule;
48 
54 class OOFEM_EXPORT Crack : public HybridEI
55 {
56 public:
57  Crack(int n, XfemManager *xm, Domain *aDomain);
58 
59  virtual const char *giveClassName() const { return "Crack"; }
60  virtual const char *giveInputRecordName() const { return _IFT_Crack_Name; }
61  virtual IRResultType initializeFrom(InputRecord *ir);
62 
63  void AppendCohesiveZoneGaussPoint(GaussPoint *ipGP);
64  void ClearCohesiveZoneGaussPoints() {mCohesiveZoneGaussPoints.clear(); mCohesiveZoneArcPositions.clear();}
65 
66  virtual void callGnuplotExportModule(GnuplotExportModule &iExpMod, TimeStep *tStep);
67 
68  const std :: vector< GaussPoint * > &giveCohesiveZoneGaussPoints() const { return mCohesiveZoneGaussPoints; }
69  const std :: vector< double > &giveCohesiveZoneArcPositions() const { return mCohesiveZoneArcPositions; }
70 
71  void computeCrackIntersectionPoints(Crack &iCrack, std :: vector< FloatArray > &oIntersectionPoints, std :: vector< double > &oArcPositions);
72  void computeArcPoints(const std :: vector< FloatArray > &iIntersectionPoints, std :: vector< double > &oArcPositions);
73  double computeLength();
74  virtual int giveDofPoolSize() const;
75 
76 protected:
90  std :: vector< GaussPoint * >mCohesiveZoneGaussPoints;
91  std :: vector< double >mCohesiveZoneArcPositions;
92 };
93 } // end namespace oofem
94 
95 #endif /* CRACK_H_ */
Class and object Domain.
Definition: domain.h:115
const std::vector< double > & giveCohesiveZoneArcPositions() const
Definition: crack.h:69
void ClearCohesiveZoneGaussPoints()
Definition: crack.h:64
EnrichmentItem with hybrid geometry description in the following sense: We have a BasicGeometry to de...
Definition: hybridei.h:54
Crack.
Definition: crack.h:54
virtual const char * giveClassName() const
Definition: crack.h:59
const std::vector< GaussPoint * > & giveCohesiveZoneGaussPoints() const
Definition: crack.h:68
#define _IFT_Crack_Name
Definition: crack.h:40
This class manages the xfem part.
Definition: xfemmanager.h:109
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
std::vector< GaussPoint * > mCohesiveZoneGaussPoints
Array of pointers to the Gauss points related to the cohesive zone.
Definition: crack.h:90
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual const char * giveInputRecordName() const
Definition: crack.h:60
std::vector< double > mCohesiveZoneArcPositions
Definition: crack.h:91
the oofem namespace is to define a context or scope in which all oofem names are defined.
(Under development) The Gnuplot export module enables OOFEM to export some data in a format that can ...
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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