OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
phasefieldelement.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  *
14  * Copyright (C) 1993 - 2013 Borek Patzak
15  *
16  *
17  *
18  * Czech Technical University, Faculty of Civil Engineering,
19  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
20  *
21  * This library is free software; you can redistribute it and/or
22  * modify it under the terms of the GNU Lesser General Public
23  * License as published by the Free Software Foundation; either
24  * version 2.1 of the License, or (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29  * Lesser General Public License for more details.
30  *
31  * You should have received a copy of the GNU Lesser General Public
32  * License along with this library; if not, write to the Free Software
33  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
34  */
35 
36 #ifndef phasefieldelement_h
37 #define phasefieldelement_h
38 
39 #include "../sm/Elements/PlaneStress/qplanstrss.h"
40 
41 namespace oofem {
46 {
47 protected:
49 
50 public:
51  PhaseFieldElement( int i, Domain *aDomain );
52  virtual ~PhaseFieldElement() {}
53 
54  virtual NLStructuralElement *giveElement( ) = 0;
55 
57  virtual void giveDofManDofIDMask_u(IntArray &answer) = 0;
58  virtual void giveDofManDofIDMask_d(IntArray &answer) = 0;
59 
60  virtual const char *giveClassName() const { return "PhaseFieldElement"; }
61 
62  void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer);
63 
64  double computeFreeEnergy( GaussPoint *gp, TimeStep *tStep );
65 
68  double giveInternalLength( ) { return internalLength; }
70  double giveCriticalEnergy() { return criticalEnergy; }
72  double giveRelaxationTime( ) { return relaxationTime; }
73 
74 protected:
75 
77 
82 
83 
84  double computeG(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
85  double computeGPrim(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
86  double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN);
87 
88  void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord);
89  void giveInternalForcesVector_u(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord);
90  void giveInternalForcesVector_d(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord);
91  void computeBStress_u(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord);
92  void computeNStress_d( FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord );
93 
94  void computeDisplacementUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN);
95  void computeDamageUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN);
96 
97  //Interpolation matrices
98  virtual void computeBd_matrixAt(GaussPoint *, FloatMatrix &, int = 1, int = ALL_STRAINS);
99  virtual void computeNd_matrixAt(const FloatArray &lCoords, FloatMatrix &N);
100 
101 };
102 } // end namespace oofem
103 
104 #endif
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
Class and object Domain.
Definition: domain.h:115
Abstract base class for "structural" finite elements with geometrical nonlinearities.
double computeGPrim(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
void computeStiffnessMatrix_dd(FloatMatrix &, MatResponseMode, TimeStep *)
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Abstract class for phase field formulation.
void giveInternalForcesVector_u(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer)
virtual const char * giveClassName() const
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
void computeDamageUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN)
virtual IRResultType initializeFrom(InputRecord *ir)
double computeG(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
void computeStiffnessMatrix_uu(FloatMatrix &, MatResponseMode, TimeStep *)
void computeDisplacementUnknowns(FloatArray &answer, ValueModeType valueMode, TimeStep *stepN)
#define N(p, q)
Definition: mdm.C:367
virtual void giveDofManDofIDMask_u(IntArray &answer)=0
#define ALL_STRAINS
void computeStiffnessMatrix_du(FloatMatrix &, MatResponseMode, TimeStep *)
Class representing vector of real numbers.
Definition: floatarray.h:82
double computeDamageAt(GaussPoint *gp, ValueModeType valueMode, TimeStep *stepN)
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
virtual NLStructuralElement * giveElement()=0
void computeStiffnessMatrix_ud(FloatMatrix &, MatResponseMode, TimeStep *)
void computeBStress_u(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord)
void computeNStress_d(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, int useUpdatedGpRecord)
Class representing the general Input Record.
Definition: inputrecord.h:101
void giveInternalForcesVector_d(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
virtual void giveDofManDofIDMask_d(IntArray &answer)=0
double computeFreeEnergy(GaussPoint *gp, TimeStep *tStep)
virtual void computeBd_matrixAt(GaussPoint *, FloatMatrix &, int=1, int=ALL_STRAINS)
the oofem namespace is to define a context or scope in which all oofem names are defined.
PhaseFieldElement(int i, Domain *aDomain)
virtual void computeStiffnessMatrix(FloatMatrix &, MatResponseMode, TimeStep *)
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void computeNd_matrixAt(const FloatArray &lCoords, FloatMatrix &N)

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