OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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"
41#include "datastream.h"
42#include "contextioerr.h"
43#include "mathfem.h"
44#include "classfactory.h"
45
46namespace oofem {
47
49
50StructuralMaterialSettable :: StructuralMaterialSettable(int n, Domain *d) :
52 isoLE(n,d)
53{}
54
55
56void
57StructuralMaterialSettable :: initializeFrom(InputRecord &ir)
58{
59 StructuralMaterial :: initializeFrom(ir);
60 isoLE.initializeFrom(ir);
61}
62
63
65StructuralMaterialSettable :: giveRealStressVector_3d(const FloatArrayF<6> &strain,GaussPoint *gp,
66 TimeStep *atTime) const
67{
68 auto status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
69 const auto &stressVector = status->giveStressVector();
70
71 status->letTempStrainVectorBe(strain);
72 status->letTempStressVectorBe(stressVector);
73 return stressVector;
74}
75
76
77// TODO
79StructuralMaterialSettable :: give3dMaterialStiffnessMatrix(MatResponseMode mode, GaussPoint *gp,
80 TimeStep *atTime) const
81{
82 return isoLE.give3dMaterialStiffnessMatrix(mode, gp, atTime);
83}
84
85std::unique_ptr<MaterialStatus>
86StructuralMaterialSettable :: CreateStatus(GaussPoint *gp) const
87{
88 return std::make_unique<StructuralMaterialStatus>(gp);
89}
90
91
92} // end namespace oofem
#define REGISTER_Material(class)
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Definition material.C:206
IsotropicLinearElasticMaterial isoLE
const FloatArray & giveStressVector() const
Returns the const pointer to receiver's stress vector.
StructuralMaterial(int n, Domain *d)

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011