OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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
36#ifndef PROPAGATIONLAW_H_
37#define PROPAGATIONLAW_H_
38
39#include "oofemenv.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
52namespace oofem {
53class Domain;
54class EnrichmentDomain;
55class DynamicInputRecord;
56class EnrichmentFront;
57struct TipPropagation;
58
63
65{
66public:
68 virtual ~PropagationLaw();
69
70 virtual const char *giveClassName() const = 0;
71 virtual const char *giveInputRecordName() const = 0;
72
73 virtual void 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
85{
86public:
88 virtual ~PLDoNothing() { }
89
90 const char *giveClassName() const override { return "PLDoNothing"; }
91 const char *giveInputRecordName() const override { return _IFT_PLDoNothing_Name; }
92
93 void initializeFrom(InputRecord &ir) override { }
94 void giveInputRecord(DynamicInputRecord &input) override;
95
96 bool hasPropagation() const override { return false; }
97 bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) override { return false; }
98};
99
105{
106public:
109
110 const char *giveClassName() const override { return "PLCrackPrescribedDir"; }
111 const char *giveInputRecordName() const override { return _IFT_PLCrackPrescribedDir_Name; }
112
113 void initializeFrom(InputRecord &ir) override;
114 void giveInputRecord(DynamicInputRecord &input) override;
115
116 bool hasPropagation() const override { return mIncrementLength > 0.; }
117 bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) override;
118
119protected:
121};
122
128{
129public:
131 virtual ~PLnodeRadius() { }
132
133 const char *giveClassName() const override { return "PLnodeRadius"; }
134 const char *giveInputRecordName() const override { return _IFT_PLnodeRadius_Name; }
135
136 void initializeFrom(InputRecord &ir) override;
137 void giveInputRecord(DynamicInputRecord &input) override;
138
139 bool hasPropagation() const override { return mRadius > 0.; }
140 bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) override;
141
142protected:
143 double mRadius;
144};
145} // end namespace oofem
146
147#endif /* PROPAGATIONLAW_H_ */
const char * giveInputRecordName() const override
bool hasPropagation() const override
const char * giveClassName() const override
bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp) override
const char * giveInputRecordName() const override
const char * giveClassName() const override
bool hasPropagation() const override
void initializeFrom(InputRecord &ir) override
bool hasPropagation() const override
const char * giveClassName() const override
const char * giveInputRecordName() const override
virtual const char * giveInputRecordName() const =0
virtual const char * giveClassName() const =0
virtual void initializeFrom(InputRecord &ir)=0
virtual bool propagateInterface(Domain &iDomain, EnrichmentFront &iEnrFront, TipPropagation &oTipProp)=0
virtual bool hasPropagation() const =0
virtual void giveInputRecord(DynamicInputRecord &input)=0
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_PLCrackPrescribedDir_Name
#define _IFT_PLnodeRadius_Name
#define _IFT_PLDoNothing_Name

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