OOFEM 3.0
Loading...
Searching...
No Matches
mooneyrivlincompressiblematerial.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
36#include "floatmatrix.h"
37#include "floatarray.h"
38#include "classfactory.h"
39#include "mathfem.h"
40
41
42
43namespace oofem {
45
48
51// returns 9 components of the first piola kirchhoff stress corresponding to the given deformation gradinet
52{
53 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
54
55 Tensor2_3d F(vF), P;
56 // compute the first Piola-Kirchhoff
57 P(i_3, j_3) = C1 * this->compute_dI1_Cdev_dF(F)(i_3, j_3) + C2 * this->compute_dI2_Cdev_dF(F)(i_3, j_3) + this->compute_dVolumetricEnergy_dF(F)(i_3, j_3);
58 auto vP = P.to_voigt_form();
59 // update gp
60 status->letTempFVectorBe(vF);
61 status->letTempPVectorBe(vP);
62 //
63 return vP;
64}
65
66
67
70// returns the 9x9 tangent stiffness matrix - dP/dF
71{
72 StructuralMaterialStatus *status = static_cast< StructuralMaterialStatus * >( this->giveStatus(gp) );
74 Tensor2_3d F(vF);
75 Tensor4_3d A;
77 return A.to_voigt_form();
78}
79
80
81
82
83std::unique_ptr<MaterialStatus>
85{
86 return std::make_unique<StructuralMaterialStatus>(gp);
87}
88
89
90void
98} // end namespace oofem
#define REGISTER_Material(class)
Tensor4_3d compute_d2I1_Cdev_dF2(const Tensor2_3d &F) const
void initializeFrom(InputRecord &ir)
initialization for the input file
Tensor4_3d compute_d2I2_Cdev_dF2(const Tensor2_3d &F) const
Tensor2_3d compute_dI2_Cdev_dF(const Tensor2_3d &F) const
Tensor2_3d compute_dI1_Cdev_dF(const Tensor2_3d &F) const
Tensor4_3d compute_d2VolumetricEnergy_dF2(const Tensor2_3d &F) const
Tensor2_3d compute_dVolumetricEnergy_dF(const Tensor2_3d &F) const
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Definition material.C:206
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const 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.
FloatMatrixF< 9, 9 > give3dMaterialStiffnessMatrix_dPdF(MatResponseMode, GaussPoint *gp, TimeStep *tStep) 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
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_MooneyRivlinCompressibleMaterial_c2
#define _IFT_MooneyRivlinCompressibleMaterial_c1

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