OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
cohint.C
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 #include "cohint.h"
36 #include "gausspoint.h"
37 #include "floatmatrix.h"
38 #include "floatarray.h"
39 #include "mathfem.h"
40 #include "contextioerr.h"
41 #include "classfactory.h"
42 #include "dynamicinputrecord.h"
43 
44 namespace oofem {
45 
46 REGISTER_Material(CohesiveInterfaceMaterial);
47 
49 
50 void
52 {
54 
55  answer.resize(3);
56 
57  double x = jump.at(1) + transitionOpening;
58 
59  if (stiffCoeffKn == 1.){//tension stiffness = compression stiffness
60  answer.at(1) = kn*x;
61  } else {
62  //composed function from two atan's to have smooth intersection between tension and compression
63  answer.at(1) = (M_PI/2. + atan(smoothMag*x))/M_PI*kn*stiffCoeffKn*x + (M_PI/2.-atan(smoothMag*x))/M_PI*kn*x;
64  }
65 
66  // shear part of elastic stress-strain law
67  answer.at(2) = ks * jump.at(2);
68  answer.at(3) = ks * jump.at(3);
69 
70  // update gp
71  status->letTempJumpBe(jump);
72  status->letTempTractionBe(answer);
73 }
74 
75 
76 void
78 {
79  answer.resize(3, 3);
80  answer.zero();
81 
83 // double normalJump = status->giveTempJump().at(1);
84 
85 // if (normalJump > 0.) {
86 // if(normalJump<transitionOpening){ // reduce traction in tension
87 // double stiffTmp = kn*stiffCoeffKn + (kn - kn*stiffCoeffKn) * (1. - normalJump/transitionOpening);
88 // answer.at(1, 1) = stiffTmp;
89 // } else {
90 // answer.at(1, 1) = kn * stiffCoeffKn;
91 // }
92 // } else {
93 // // standard part of elastic stress-strain law
94 // answer.at(1, 1) = kn;
95 // }
96 //
97 // if ( rMode == SecantStiffness || rMode == TangentStiffness ) {
98 // if ( normalJump + transitionOpening <= 0. ) { //local CS
99 // answer.at(1, 1) = kn; //compression
100 // } else {
101 // answer.at(1, 1) = 0*kn*stiffCoeffKn; //tension
102 // }
103 // } else {
104 // answer.at(1, 1) = kn;
105 // }
106 
107 
108  double x = status->giveTempJump().at(1) + transitionOpening;
109 
110  if (stiffCoeffKn == 1.){//tension stiffness = compression stiffness
111  answer.at(1,1) = kn;
112  } else {
113  //TangentStiffness by derivating traction with regards to x (=relative displacement)
114  answer.at(1,1) = (M_PI/2. + atan(smoothMag*x))/M_PI*kn*stiffCoeffKn + (M_PI/2.-atan(smoothMag*x))/M_PI*kn + smoothMag*kn*stiffCoeffKn*x/M_PI/(smoothMag*smoothMag*x*x+1) - smoothMag*kn*x/M_PI/(smoothMag*smoothMag*x*x+1);
115  }
116 
117  //answer.at(1, 1) = kn;
118  answer.at(2, 2) = ks;
119  answer.at(3, 3) = ks;
120 }
121 
122 int
124 {
125  return StructuralInterfaceMaterial :: giveIPValue(answer, gp, type, tStep);
126 }
127 
130 {
131  IRResultType result;
132 
133  // elastic parameters
136  // compliance when in tension
137  stiffCoeffKn = 1.;
139  transitionOpening = 0.;
141 
142  smoothMag = 1.e+4;
144 
146 }
147 
148 void
150 {
156 }
157 
158 } // namespace oofem
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
void setField(int item, InputFieldType id)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Returns material status of receiver in given integration point.
Definition: material.C:244
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: cohint.C:149
Class and object Domain.
Definition: domain.h:115
double stiffCoeffKn
Reduction of normal stiffness when in tension.
Definition: cohint.h:63
double & at(int i)
Coefficient access function.
Definition: floatarray.h:131
virtual void giveEngTraction_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
Definition: cohint.C:51
#define _IFT_CohesiveInterfaceMaterial_smoothMag
Definition: cohint.h:49
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
#define _IFT_CohesiveInterfaceMaterial_ks
Definition: cohint.h:47
MatResponseMode
Describes the character of characteristic material matrix.
CohesiveInterfaceMaterial(int n, Domain *d)
Constructor.
Definition: cohint.C:48
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
Definition: cohint.C:123
#define _IFT_CohesiveInterfaceMaterial_stiffCoeffKn
Definition: cohint.h:48
#define M_PI
Definition: mathfem.h:52
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: cohint.C:129
#define _IFT_CohesiveInterfaceMaterial_transitionopening
Definition: cohint.h:46
void letTempJumpBe(FloatArray v)
Assigns tempJump to given vector v.
This class implements a structural interface material status information.
double transitionOpening
Opening when material stiffness changes from kn to kn*stiffCoeffKn.
Definition: cohint.h:66
double at(int i, int j) const
Coefficient access function.
Definition: floatmatrix.h:176
double kn
Elastic properties (normal and shear moduli).
Definition: cohint.h:60
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual void give3dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Definition: cohint.C:77
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
double smoothMag
Smoothing region between tension and compression stiffness.
Definition: cohint.h:72
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
Definition: floatmatrix.C:1358
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
void zero()
Zeroes all coefficient of receiver.
Definition: floatmatrix.C:1326
#define _IFT_CohesiveInterfaceMaterial_kn
Definition: cohint.h:45
REGISTER_Material(DummyMaterial)
void letTempTractionBe(FloatArray v)
Assigns tempTraction to given vector v.
#define IR_GIVE_OPTIONAL_FIELD(__ir, __value, __id)
Macro facilitating the use of input record reading methods.
Definition: inputrecord.h:78
Abstract base class for all "structural" interface models.
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define IR_GIVE_FIELD(__ir, __value, __id)
Macro facilitating the use of input record reading methods.
Definition: inputrecord.h:69
const FloatArray & giveTempJump() const
Returns the const pointer to receiver&#39;s temporary jump.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
void resize(int s)
Resizes receiver towards requested size.
Definition: floatarray.C:631

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