OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
winklerpasternak.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 - 2014 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 "winklerpasternak.h"
36 #include "../sm/Materials/structuralms.h"
37 #include "floatmatrix.h"
38 #include "gausspoint.h"
39 #include "classfactory.h"
40 #include "dynamicinputrecord.h"
41 
42 namespace oofem {
43 REGISTER_Material(WinklerPasternakMaterial);
44 
46 { }
47 
49 { }
50 
53 {
54  IRResultType result; // Required by IR_GIVE_FIELD macro
55 
58  // isotropic case
60  c2y = c2x;
61  } else {
64  }
65 
67 }
68 
69 
70 void
72 {
74 
78 }
79 
80 
81 void
83 {
84  FloatMatrix tangent;
85  this->give2dPlateSubSoilStiffMtrx(tangent, ElasticStiffness, gp, tStep);
86  answer.beProductOf(tangent, reducedE);
87 
88  StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
89 
90  status->letTempStrainVectorBe(reducedE);
91  status->letTempStressVectorBe(answer);
92 }
93 
94 
95 void
97 {
98  answer.resize(3, 3);
99  answer.zero();
100 
101  answer.at(1, 1) = c1;
102  answer.at(2, 2) = c2x;
103  answer.at(3, 3) = c2y;
104 }
105 
106 
109 {
110  return new StructuralMaterialStatus(1, this->giveDomain(), gp);
111 }
112 
113 
114 int
116 //
117 // returns whether receiver supports given mode
118 //
119 {
120  return mode == _2dPlateSubSoil;
121 }
122 
123 } // end namespace oofem
void setField(int item, InputFieldType id)
void letTempStrainVectorBe(const FloatArray &v)
Assigns tempStrainVector to given vector v.
Definition: structuralms.h:137
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Returns material status of receiver in given integration point.
Definition: material.C:244
#define _IFT_WinklerPasternakMaterial_C1
Class and object Domain.
Definition: domain.h:115
virtual void give2dPlateSubSoilStiffMtrx(FloatMatrix &answer, MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep)
Method for computing stiffness matrix of plate subsoil model.
This class implements a structural material status information.
Definition: structuralms.h:65
virtual bool hasField(InputFieldType id)=0
Returns true if record contains field identified by idString keyword.
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
MatResponseMode
Describes the character of characteristic material matrix.
virtual ~WinklerPasternakMaterial()
Destructor.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
double c2x
C2 constants in x and y directions, defined as $^hG_{x,y}(z)Psi^2(z)\ dz$.
void beProductOf(const FloatMatrix &aMatrix, const FloatArray &anArray)
Receiver becomes the result of the product of aMatrix and anArray.
Definition: floatarray.C:676
double at(int i, int j) const
Coefficient access function.
Definition: floatmatrix.h:176
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
double c1
C1 constant, defined as $^hE_{oed}(z)(d(z) dz)^2\ dz$.
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
#define _IFT_WinklerPasternakMaterial_C2Y
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
void letTempStressVectorBe(const FloatArray &v)
Assigns tempStressVector to given vector v.
Definition: structuralms.h:135
virtual void giveRealStressVector_2dPlateSubSoil(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedE, TimeStep *tStep)
Default implementation is not provided.
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.
Abstract base class for all "structural" constitutive models.
void zero()
Zeroes all coefficient of receiver.
Definition: floatmatrix.C:1326
Domain * giveDomain() const
Definition: femcmpnn.h:100
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
REGISTER_Material(DummyMaterial)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
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
WinklerPasternakMaterial(int n, Domain *d)
Constructor.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
#define _IFT_WinklerPasternakMaterial_C2
Class representing solution step.
Definition: timestep.h:80
#define _IFT_WinklerPasternakMaterial_C2X

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