OOFEM 3.0
Loading...
Searching...
No Matches
simopistermaterial.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 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 "simopistermaterial.h"
36#include "floatmatrix.h"
37#include "floatarray.h"
38#include "classfactory.h"
39
40
41namespace oofem {
43
46
49// returns the 9x9 tangent stiffness matrix - dP/dF
50{
51 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
53 Tensor2_3d F(vF);
54 auto [ J, cofF ] = F.compute_determinant_and_cofactor();
55 Tensor4_3d A;
56 A(i_3, j_3, k_3, l_3) = G * ( 0.5 * this->compute_d2I1_C_dF2(F)(i_3, j_3, k_3, l_3) + 1 / J / J * cofF(i_3, j_3) * cofF(k_3, l_3) - 1. / J * F.compute_tensor_cross_product()(i_3, j_3, k_3, l_3) ) + this->compute_d2VolumetricEnergy_dF2(F)(i_3, j_3, k_3, l_3);
57 return A.to_voigt_form();
58}
59
62// returns 9 components of the first piola kirchhoff stress corresponding to the given deformation gradinet
63{
64 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
65
66 Tensor2_3d F(vF), P;
67 auto [ J, cofF ] = F.compute_determinant_and_cofactor();
68 // compute the first Piola-Kirchhoff
69 P(i_3, j_3) = G * ( 0.5 * this->compute_dI1_C_dF(F)(i_3, j_3) - 1. / J * cofF(i_3, j_3) ) + this->compute_dVolumetricEnergy_dF(F)(i_3, j_3);
70 auto vP = P.to_voigt_form();
71 // update gp
72 status->letTempFVectorBe(vF);
73 status->letTempPVectorBe(vP);
74 //
75 return vP;
76}
77
78
79std::unique_ptr<MaterialStatus>
81{
82 return std::make_unique<StructuralMaterialStatus>(gp);
83}
84
85
86void
93} // end namespace oofem
#define REGISTER_Material(class)
void initializeFrom(InputRecord &ir)
initialization for the input file
Tensor4_3d compute_d2VolumetricEnergy_dF2(const Tensor2_3d &F) const
Tensor2_3d compute_dI1_C_dF(const Tensor2_3d &F) const
Tensor2_3d compute_dVolumetricEnergy_dF(const Tensor2_3d &F) const
Tensor4_3d compute_d2I1_C_dF2(const Tensor2_3d &F) const
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Definition material.C:206
FloatArrayF< 9 > giveFirstPKStressVector_3d(const FloatArrayF< 9 > &vF, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
SimoPisterMaterial(int n, Domain *d)
FloatMatrixF< 9, 9 > give3dMaterialStiffnessMatrix_dPdF(MatResponseMode, GaussPoint *gp, TimeStep *tStep) const override
void initializeFrom(InputRecord &ir) override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
void letTempPVectorBe(const FloatArray &v)
Assigns tempPVector to given vector v.
const FloatArray & giveTempFVector() const
Returns the const pointer to receiver's temporary deformation gradient vector.
void letTempFVectorBe(const FloatArray &v)
Assigns tempFVector to given vector v.
void initializeFrom(InputRecord &ir) override
StructuralMaterial(int n, Domain *d)
const FloatArrayF< 9 > to_voigt_form()
Definition tensor2.h:99
Tensor2_3d compute_tensor_cross_product(const Tensor2_3d &B) const
Definition tensor2.h:478
std::pair< double, Tensor2_3d > compute_determinant_and_cofactor() const
Definition tensor2.h:453
FloatMatrixF< 9, 9 > to_voigt_form()
Definition tensor4.h:256
static FTensor::Index< 'k', 3 > k_3
Definition index.h:45
static FTensor::Index< 'j', 3 > j_3
Definition index.h:44
static FTensor::Index< 'i', 3 > i_3
Definition index.h:43
static FTensor::Index< 'l', 3 > l_3
Definition index.h:46
#define IR_GIVE_FIELD(__ir, __value, __id)
Definition inputrecord.h:67
#define _IFT_SimoPisterMaterial_g

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