OOFEM 3.0
Loading...
Searching...
No Matches
blatzkomaterial.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 "blatzkomaterial.h"
36#include "classfactory.h"
37
38
39namespace oofem {
41
42
43void
49
50
53{
54 //retrieve deformation from status and convert to matrix form
55 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
56
58 Tensor2_3d F(vF);
59
60 double I2 = compute_I2_C_from_F(F);
61 double I3 = compute_I3_C_from_F(F);
62
63 Tensor2_3d dI2_dF = compute_dI2_C_dF(F);
64 Tensor2_3d dI3_dF = compute_dI3_C_dF(F);
65
66 Tensor4_3d A;
67 A(i_3, j_3, k_3, l_3) = 0.5 * mu / I3 * ( compute_d2I2_C_dF2(F)(i_3, j_3, k_3, l_3) - 1. / I3 * ( dI2_dF(i_3, j_3) * dI3_dF(k_3, l_3) + dI3_dF(i_3, j_3) * dI2_dF(k_3, l_3) ) + ( sqrt(I3) - I2 / I3 ) * compute_d2I3_C_dF2(F)(i_3, j_3, k_3, l_3) + ( 2. * I2 / I3 / I3 - 0.5 / sqrt(I3) ) * dI3_dF(i_3, j_3) * dI3_dF(k_3, l_3) );
68
69 return A.to_voigt_form();
70}
71
74{
75 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
76 // compute the first Piola-Kirchhoff
77 Tensor2_3d F(vF), P;
78 double I2 = compute_I2_C_from_F(F);
79 double I3 = compute_I3_C_from_F(F);
80 P(i_3, j_3) = 0.5 * mu * ( compute_dI2_C_dF(F)(i_3, j_3) / I3 + ( 1. / sqrt(I3) - I2 / I3 / I3 ) * compute_dI3_C_dF(F)(i_3, j_3) );
81 //
82 auto vP = P.to_voigt_form();
83 // update gp
84 status->letTempFVectorBe(vF);
85 status->letTempPVectorBe(vP);
86 return vP;
87}
88
89std::unique_ptr<MaterialStatus>
91{
92 return std::make_unique<StructuralMaterialStatus>(gp);
93}
94};
#define _IFT_BlatzKoMaterial_mu
#define REGISTER_Material(class)
double compute_I3_C_from_F(const Tensor2_3d &F) const
Tensor4_3d compute_d2I3_C_dF2(const Tensor2_3d &F) const
Tensor4_3d compute_d2I2_C_dF2(const Tensor2_3d &F) const
double compute_I2_C_from_F(const Tensor2_3d &F) const
Tensor2_3d compute_dI3_C_dF(const Tensor2_3d &F) const
Tensor2_3d compute_dI2_C_dF(const Tensor2_3d &F) const
double mu
Shear modulus.
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
FloatMatrixF< 9, 9 > give3dMaterialStiffnessMatrix_dPdF(MatResponseMode, GaussPoint *gp, TimeStep *tStep) const override
void initializeFrom(InputRecord &ir) override
FloatArrayF< 9 > giveFirstPKStressVector_3d(const FloatArrayF< 9 > &vF, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Definition material.C:206
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
const FloatArrayF< 9 > to_voigt_form()
Definition tensor2.h:99
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

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