OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
intmatphasefield.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 program is free software; you can redistribute it and/or modify
21  * it under the terms of the GNU General Public License as published by
22  * the Free Software Foundation; either version 2 of the License, or
23  * (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
28  * GNU General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License
31  * along with this program; if not, write to the Free Software
32  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33  */
34 /*
35  *
36  *
37  * Author: Jim Brouzoulis
38  */
39 
40 #ifndef intmatphasefield
41 #define intmatphasefield
42 
45 
47 
48 #define _IFT_IntMatPhaseField_Name "intmatphf"
49 #define _IFT_IntMatPhaseField_kn "k"
50 #define _IFT_IntMatPhaseField_gc "gc"
51 
52 
53 
54 namespace oofem {
55 
62 {
63 public:
64  IntMatPhaseFieldStatus(int n, Domain * d, GaussPoint * g);
66 
68  double tempDamage;
69  double giveDamage() { return tempDamage; }
70 
71 
73  double drivingEnergy;
75  double giveDrivingEnergy() { return drivingEnergy; }
76  void letTempDrivingEnergyBe(double val) { this->tempDrivingEnergy = val; }
77 
78  virtual const char *giveClassName() const { return "IntMatPhaseFieldStatus"; }
79 
80  virtual void initTempStatus();
81  virtual void updateYourself(TimeStep *tStep);
82 
83 };
84 
85 
87 public:
88  IntMatPhaseField(int n, Domain * d);
89  virtual ~IntMatPhaseField();
90 
91  virtual int hasNonLinearBehaviour() { return 1; }
92 
93  virtual int hasMaterialModeCapability(MaterialMode mode);
94  virtual const char *giveClassName() const { return "IntMatPhaseField"; }
95  virtual const char *giveInputRecordName() const { return _IFT_IntMatPhaseField_Name; }
96 
97  virtual void giveEngTraction_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, const double damage, TimeStep *tStep);
98  virtual void give3dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
99  virtual void giveTangents(FloatMatrix &jj, FloatMatrix &jd, FloatMatrix &dj, FloatMatrix &dd, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
100 
101 
102 
104  virtual void giveInputRecord(DynamicInputRecord &input);
105 
106  //virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new StructuralInterfaceMaterialStatus(1, domain, gp); }
107  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new IntMatPhaseFieldStatus(1, domain, gp); };
108 
109  virtual bool hasAnalyticalTangentStiffness() const { return true; };
110 
111 
112  virtual double giveDrivingForce(GaussPoint *gp);
113  virtual double giveDrivingForcePrime(GaussPoint *gp);
114  //double compute_fPrime(const double d);
115  double compute_g(const double d);
116  double compute_gPrime(const double d);
117  double compute_gBis(const double d);
118 
119 protected:
120  double k;
121  double Gc;
122 };
123 
124 } /* namespace oofem */
125 #endif
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
IntMatPhaseFieldStatus(int n, Domain *d, GaussPoint *g)
double tempDamage
damage variable
Development cz-model using phase field.
virtual bool hasAnalyticalTangentStiffness() const
Tells if the model has implemented analytical tangent stiffness.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
MatResponseMode
Describes the character of characteristic material matrix.
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
virtual const char * giveClassName() const
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual const char * giveClassName() const
void letTempDrivingEnergyBe(double val)
This class implements a structural interface material status information.
FloatArray jump
Equilibrated jump (discontinuity)
virtual const char * giveInputRecordName() const
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
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.
#define _IFT_IntMatPhaseField_Name
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
the oofem namespace is to define a context or scope in which all oofem names are defined.
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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011