OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
propagationlaw.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 
36 #ifndef PROPAGATIONLAW_H_
37 #define PROPAGATIONLAW_H_
38 
39 #include "oofemcfg.h"
40 #include "inputrecord.h"
41 
42 #define _IFT_PLDoNothing_Name "propagationlawdonothing"
43 
44 #define _IFT_PLCrackPrescribedDir_Name "propagationlawcrackprescribeddir"
45 #define _IFT_PLCrackPrescribedDir_Dir "angle" // Angle in degrees
46 #define _IFT_PLCrackPrescribedDir_IncLength "incrementlength" // Increment per time step
47 
48 #define _IFT_PLnodeRadius_Name "propagationlawnoderadius"
49 #define _IFT_PLnodeRadius_Radius "radius"
50 
51 
52 namespace oofem {
53 class Domain;
54 class EnrichmentDomain;
55 class DynamicInputRecord;
56 class EnrichmentFront;
57 struct TipPropagation;
58 
64 class OOFEM_EXPORT PropagationLaw
65 {
66 public:
68  virtual ~PropagationLaw();
69 
70  virtual const char *giveClassName() const = 0;
71  virtual const char *giveInputRecordName() const = 0;
72 
73  virtual IRResultType initializeFrom(InputRecord *ir) = 0;
74  virtual void giveInputRecord(DynamicInputRecord &input) = 0;
75 
76  virtual bool hasPropagation() const = 0;
77  virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) = 0;
78 };
79 
84 class OOFEM_EXPORT PLDoNothing : public PropagationLaw
85 {
86 public:
88  virtual ~PLDoNothing() { }
89 
90  virtual const char *giveClassName() const { return "PLDoNothing"; }
91  virtual const char *giveInputRecordName() const { return _IFT_PLDoNothing_Name; }
92 
94  virtual void giveInputRecord(DynamicInputRecord &input);
95 
96  virtual bool hasPropagation() const { return false; }
97  virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) { return false; }
98 };
99 
104 class OOFEM_EXPORT PLCrackPrescribedDir : public PropagationLaw
105 {
106 public:
107  PLCrackPrescribedDir() : mAngle(0.0), mIncrementLength(0.0) { }
108  virtual ~PLCrackPrescribedDir() { }
109 
110  virtual const char *giveClassName() const { return "PLCrackPrescribedDir"; }
111  virtual const char *giveInputRecordName() const { return _IFT_PLCrackPrescribedDir_Name; }
112 
113  virtual IRResultType initializeFrom(InputRecord *ir);
114  virtual void giveInputRecord(DynamicInputRecord &input);
115 
116  virtual bool hasPropagation() const { return mIncrementLength > 0.; }
117  virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp);
118 
119 protected:
120  double mAngle, mIncrementLength;
121 };
122 
127 class OOFEM_EXPORT PLnodeRadius : public PropagationLaw
128 {
129 public:
130  PLnodeRadius() : mRadius(0.0) { }
131  virtual ~PLnodeRadius() { }
132 
133  virtual const char *giveClassName() const { return "PLnodeRadius"; }
134  virtual const char *giveInputRecordName() const { return _IFT_PLnodeRadius_Name; }
135 
136  virtual IRResultType initializeFrom(InputRecord *ir);
137  virtual void giveInputRecord(DynamicInputRecord &input);
138 
139  virtual bool hasPropagation() const { return mRadius > 0.; }
140  virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp);
141 
142 protected:
143  double mRadius;
144 };
145 } // end namespace oofem
146 
147 #endif /* PROPAGATIONLAW_H_ */
virtual const char * giveClassName() const
virtual const char * giveInputRecordName() const
virtual const char * giveInputRecordName() const
Class and object Domain.
Definition: domain.h:115
virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp)
#define _IFT_PLnodeRadius_Name
virtual ~PLDoNothing()
Updates the geometry of evolving XFEM interfaces.
#define _IFT_PLDoNothing_Name
virtual bool hasPropagation() const
Dummy propagation law that does nothing.
virtual bool hasPropagation() const
virtual const char * giveInputRecordName() const
virtual bool hasPropagation() const
virtual const char * giveClassName() const
Class EnrichmentFront: describes the edge or tip of an XFEM enrichment.
Propagation law that propagates the crack in a predefined direction.
virtual const char * giveClassName() const
virtual IRResultType initializeFrom(InputRecord *ir)
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define _IFT_PLCrackPrescribedDir_Name
Propagation law that propagates a delamination in a predefined radius from an element.

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