OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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
45namespace oofem {
46class XfemManager;
47class Domain;
48
55{
56public:
57 GeometryBasedEI(int n, XfemManager *xm, Domain *aDomain);
58 virtual ~GeometryBasedEI();
59
60 int instanciateYourself(DataReader &dr) override;
61 void postInitialize() override;
62
63 virtual void updateDofIdPool();
64
65 void appendInputRecords(DynamicDataReader &oDR) override;
66
67 const char *giveClassName() const override { return "GeometryBasedEI"; }
68 const char *giveInputRecordName() const override { return _IFT_GeometryBasedEI_Name; }
69
70 void updateGeometry() override;
71 void updateNodeEnrMarker(XfemManager &ixFemMan) override;
72
73 void updateLevelSets(XfemManager &ixFemMan);
74
75 void evaluateEnrFuncInNode(std :: vector< double > &oEnrFunc, const Node &iNode) const override;
76
77 void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const override;
78 void evaluateEnrFuncAt(std :: vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const IntArray &iElNodes) const override;
79
80 void evaluateEnrFuncDerivAt(std :: vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const override;
81 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 override;
82
83 // TODO: Consider moving this function to a separate Cohesive Zone Interface /ES
84 void evaluateEnrFuncJumps(std :: vector< double > &oEnrFuncJumps, int iNodeInd, GaussPoint &iGP, bool iGPLivesOnCurrentCrack) const;
85
86
87 virtual void computeIntersectionPoints(std :: vector< FloatArray > &oIntersectionPoints, std :: vector< int > &oIntersectedEdgeInd, Element *element, std :: vector< double > &oMinDistArcPos) const;
88 virtual void computeIntersectionPoints(std :: vector< FloatArray > &oIntersectionPoints, std :: vector< int > &oIntersectedEdgeInd, Element *element, const Triangle &iTri, std :: vector< double > &oMinDistArcPos) const;
89
90 void writeVtkDebug() const override;
91
92 void giveSubPolygon(std :: vector< FloatArray > &oPoints, const double &iXiStart, const double &iXiEnd) const;
93
94 void propagateFronts(bool &oFrontsHavePropagated) override;
95 bool giveElementTipCoord(FloatArray &oCoord, double &oArcPos, Element &iEl, const FloatArray &iElCenter) const override;
96
97 void giveBoundingSphere(FloatArray &oCenter, double &oRadius) override;
98
100 void setGeometry(std :: unique_ptr< BasicGeometry > &&ipBasicGeometry) {mpBasicGeometry = std::move(ipBasicGeometry);}
101
102protected:
103 std :: unique_ptr< BasicGeometry > mpBasicGeometry;
104};
105} /* namespace oofem */
106
107#endif /* GEOMETRYBASEDEI_H_ */
EnrichmentItem(int n, XfemManager *xm, Domain *aDomain)
Constructor / destructor.
const char * giveClassName() const override
const char * giveInputRecordName() const override
void setGeometry(std ::unique_ptr< BasicGeometry > &&ipBasicGeometry)
void appendInputRecords(DynamicDataReader &oDR) override
int instanciateYourself(DataReader &dr) override
std ::unique_ptr< BasicGeometry > mpBasicGeometry
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
GeometryBasedEI(int n, XfemManager *xm, Domain *aDomain)
BasicGeometry * giveGeometry()
virtual void updateDofIdPool()
#define _IFT_GeometryBasedEI_Name
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011