OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
structmatsettable.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 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 #include "structmatsettable.h"
36 
37 #include "floatarray.h"
38 #include "floatmatrix.h"
39 #include "gausspoint.h"
40 #include "../sm/CrossSections/structuralcrosssection.h"
41 #include "datastream.h"
42 #include "contextioerr.h"
43 #include "mathfem.h"
44 #include "classfactory.h"
45 
46 namespace oofem {
47 
48 REGISTER_Material( StructuralMaterialSettable );
49 
51  StructuralMaterial(n, d)
52 {
54 }
55 
57 {
58  delete isoLE;
59 }
60 
63 {
64  //IRResultType result; // Required by IR_GIVE_FIELD macro
66  return isoLE->initializeFrom(ir);
67 }
68 
69 void
71  GaussPoint *gp,
72  const FloatArray &totalStrain,
73  TimeStep *atTime)
74 {
75 
76  StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
77  const FloatArray& stressVector = status->giveStressVector();
78 
79  status->letTempStrainVectorBe(totalStrain);
80  status->letTempStressVectorBe(stressVector);
81  answer = stressVector;
82  return;
83 }
84 
85 
86 // TODO
87 void
89  MatResponseMode mode,
90  GaussPoint *gp,
91  TimeStep *atTime)
92 {
93  isoLE->give3dMaterialStiffnessMatrix(answer,mode,gp,atTime);
94 }
95 
98 {
100 }
101 
102 
103 } // end namespace oofem
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
Class and object Domain.
Definition: domain.h:115
This class implements a structural material status information.
Definition: structuralms.h:65
virtual void giveRealStressVector_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &strainVector, TimeStep *atTime)
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
IsotropicLinearElasticMaterial * isoLE
MatResponseMode
Describes the character of characteristic material matrix.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
This class implements an isotropic linear elastic material in a finite element problem.
virtual void give3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Computes full 3d material stiffness matrix at given integration point, time, respecting load history ...
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
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
void letTempStressVectorBe(const FloatArray &v)
Assigns tempStressVector to given vector v.
Definition: structuralms.h:135
const FloatArray & giveStressVector() const
Returns the const pointer to receiver&#39;s stress vector.
Definition: structuralms.h:107
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void give3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *atTime)
Computes full 3d material stiffness matrix at given integration point, time, respecting load history ...
Abstract base class for all "structural" constitutive models.
Domain * giveDomain() const
Definition: femcmpnn.h:100
REGISTER_Material(DummyMaterial)
StructuralMaterialSettable(int n, Domain *d)
Constructor.
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
virtual ~StructuralMaterialSettable()
Destructor.
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:31 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011