OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
geometrybasedei.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 GEOMETRYBASEDEI_H_
36 #define GEOMETRYBASEDEI_H_
37 
38 #define _IFT_GeometryBasedEI_Name "geometrybasedei"
39 
40 #include "enrichmentitem.h"
41 #include "geometry.h"
42 
43 #include <memory>
44 
45 namespace oofem {
46 class XfemManager;
47 class Domain;
48 
54 class OOFEM_EXPORT GeometryBasedEI : public EnrichmentItem
55 {
56 public:
57  GeometryBasedEI(int n, XfemManager *xm, Domain *aDomain);
58  virtual ~GeometryBasedEI();
59 
60  virtual int instanciateYourself(DataReader &dr);
61 
62  virtual void updateDofIdPool();
63 
64  virtual void appendInputRecords(DynamicDataReader &oDR);
65 
66  virtual const char *giveClassName() const { return "GeometryBasedEI"; }
67  virtual const char *giveInputRecordName() const { return _IFT_GeometryBasedEI_Name; }
68 
69  virtual void updateGeometry();
70  virtual void updateNodeEnrMarker(XfemManager &ixFemMan);
71 
72  void updateLevelSets(XfemManager &ixFemMan);
73 
74  virtual void evaluateEnrFuncInNode(std :: vector< double > &oEnrFunc, const Node &iNode) const;
75 
76  virtual void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const;
77  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;
78 
79  virtual void evaluateEnrFuncDerivAt(std :: vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const;
80  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;
81 
82  // TODO: Consider moving this function to a separate Cohesive Zone Interface /ES
83  void evaluateEnrFuncJumps(std :: vector< double > &oEnrFuncJumps, int iNodeInd, GaussPoint &iGP, bool iGPLivesOnCurrentCrack) const;
84 
85 
86  virtual void computeIntersectionPoints(std :: vector< FloatArray > &oIntersectionPoints, std :: vector< int > &oIntersectedEdgeInd, Element *element, std :: vector< double > &oMinDistArcPos) const;
87  virtual void computeIntersectionPoints(std :: vector< FloatArray > &oIntersectionPoints, std :: vector< int > &oIntersectedEdgeInd, Element *element, const Triangle &iTri, std :: vector< double > &oMinDistArcPos) const;
88 
89  virtual void writeVtkDebug() const;
90 
91  void giveSubPolygon(std :: vector< FloatArray > &oPoints, const double &iXiStart, const double &iXiEnd) const;
92 
93  virtual void propagateFronts(bool &oFrontsHavePropagated);
94  virtual bool giveElementTipCoord(FloatArray &oCoord, double &oArcPos, Element &iEl, const FloatArray &iElCenter) const;
95 
96  virtual void giveBoundingSphere(FloatArray &oCenter, double &oRadius);
97 
98  BasicGeometry *giveGeometry() { return mpBasicGeometry.get(); }
99  void setGeometry(std :: unique_ptr< BasicGeometry > &&ipBasicGeometry) {mpBasicGeometry = std::move(ipBasicGeometry);}
100 
101 protected:
102  std :: unique_ptr< BasicGeometry > mpBasicGeometry;
103 };
104 } /* namespace oofem */
105 
106 #endif /* GEOMETRYBASEDEI_H_ */
Abstract class representing entity, which is included in the FE model using one (or more) global func...
std::unique_ptr< BasicGeometry > mpBasicGeometry
Class and object Domain.
Definition: domain.h:115
Class representing the implementation of a dynamic data reader for in-code use.
Abstract base class for all finite elements.
Definition: element.h:145
Class representing the abstraction for input data source.
Definition: datareader.h:50
void setGeometry(std::unique_ptr< BasicGeometry > &&ipBasicGeometry)
Class implementing an array of integers.
Definition: intarray.h:61
Abstract representation of Geometry.
Definition: geometry.h:81
virtual const char * giveClassName() const
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual const char * giveInputRecordName() const
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
This class manages the xfem part.
Definition: xfemmanager.h:109
BasicGeometry * giveGeometry()
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
#define _IFT_GeometryBasedEI_Name
Class representing integration point in finite element program.
Definition: gausspoint.h:93
EnrichmentItem with geometry described by BasicGeometry.

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