OOFEM 3.0
Loading...
Searching...
No Matches
mixedpressurematerialextensioninterface.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
36
37#include "domain.h"
39#include "gausspoint.h"
40#include "floatmatrix.h"
41#include "floatarray.h"
43
44#include <list>
45
46
47namespace oofem {
48// constructor
49MixedPressureMaterialExtensionInterface :: MixedPressureMaterialExtensionInterface(Domain *d) : Interface()
50{
51 dom = d;
52}
53
54
55
56
57void
58MixedPressureMaterialExtensionInterface :: giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, double pressure, TimeStep *tStep) const
59{
61 MaterialMode mode = gp->giveMaterialMode();
62 if ( mode == _3dMat ) {
63 this->giveRealStressVectorUP_3d(answer, gp, reducedStrain, pressure, tStep);
64 } else if ( mode == _PlaneStrain ) {
65 this->giveRealStressVectorUP_PlaneStrain(answer, gp, reducedStrain, pressure, tStep);
66 } else {
67 OOFEM_ERROR("Unknown material mode for the mixed u-p formulation");
68 }
69}
70
71
72
73void
74MixedPressureMaterialExtensionInterface :: giveDeviatoricConstitutiveMatrix(FloatMatrix &answer, MatResponseMode rmode, GaussPoint *gp, TimeStep *tStep) const
75{
77 MaterialMode mode = gp->giveMaterialMode();
78 if ( mode == _3dMat ) {
79 this->giveDeviatoric3dMaterialStiffnessMatrix(answer, rmode, gp, tStep);
80 } else if ( mode == _PlaneStrain ) {
81 this->giveDeviatoricPlaneStrainStiffMtrx(answer, rmode, gp, tStep);
82 } else {
83 OOFEM_ERROR("Unknown material mode for the mixed u-p formulation");
84 }
85}
86
87
88
89
90void
91MixedPressureMaterialExtensionInterface :: giveRealStressVectorUP_PlaneStrain(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, double pressure, TimeStep *tStep) const
92{
93 FloatArray vE, vS;
94 StructuralMaterial :: giveFullSymVectorForm(vE, reducedStrain, _PlaneStrain);
95 this->giveRealStressVectorUP_3d(vS, gp, vE, pressure, tStep);
96 StructuralMaterial :: giveReducedSymVectorForm(answer, vS, _PlaneStrain);
97}
98}
MaterialMode giveMaterialMode()
Returns corresponding material mode of receiver.
Definition gausspoint.h:190
Interface()
Constructor.
Definition interface.h:86
virtual void giveRealStressVectorUP_PlaneStrain(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, double pressure, TimeStep *tStep) const
virtual void giveDeviatoric3dMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep) const
virtual void giveRealStressVectorUP_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, double pressure, TimeStep *tStep) const =0
virtual void giveDeviatoricPlaneStrainStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep) const
#define OOFEM_ERROR(...)
Definition error.h:79

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