OOFEM 3.0
Loading...
Searching...
No Matches
structuralinterfacematerialstatus.h
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#ifndef structuralinterfacematerialstatus_h
36#define structuralinterfacematerialstatus_h
37
38#include "matstatus.h"
39#include "floatarray.h"
40#include "matstatmapperint.h"
41#include "floatmatrix.h"
42#include "floatarrayf.h"
43#include "floatmatrixf.h"
44
45namespace oofem {
46class GaussPoint;
47
59{
60protected:
69
78
81
82 bool mNewlyInserted = true;
83
85
86public:
89
90 void printOutputAt(FILE *file, TimeStep *tStep) const override;
91
92 void initTempStatus() override;
93 void updateYourself(TimeStep *tStep) override;
94
95 void saveContext(DataStream &stream, ContextMode mode) override;
96 void restoreContext(DataStream &stream, ContextMode mode) override;
97
99 const FloatArrayF<3> &giveJump() const { return jump; }
101 const FloatArrayF<3> &giveTraction() const { return traction; }
105 const FloatMatrixF<3,3> &giveF() const { return F; }
107 const FloatArrayF<3> &giveTempJump() const { return tempJump; }
113 const FloatMatrixF<3,3> &giveTempF() const { return tempF; }
115 const FloatArrayF<3> &giveNormal() const { return mNormalDir; }
119 void letJumpBe(const FloatArrayF<3> v) { jump = v; }
121 void letTractionBe(const FloatArrayF<3> v) { traction = v; }
125 void letFBe(const FloatMatrixF<3,3> v) { F = v; }
129 void letTempJumpBe(const FloatArrayF<3> v) { tempJump = v; }
133 void letTempFBe(const FloatMatrixF<3,3> &v) { tempF = v; }
135 void letNormalBe(const FloatArrayF<3> &iN) { mNormalDir = iN; }
137 void letProjectedTractionBe(const FloatArrayF<2> &iProjectedTraction) { projectedTraction = iProjectedTraction; }
139
140 const char *giveClassName() const override { return "StructuralInterfaceMaterialStatus"; }
141
143 void copyStateVariables(const MaterialStatus &iStatus) override;
144 void addStateVariables(const MaterialStatus &iStatus) override;
145
146 bool giveNewlyInserted() const { return mNewlyInserted; }
147 void setNewlyInserted(bool iNewlyInserted) { mNewlyInserted = iNewlyInserted; }
148
149 virtual double giveDamage() const { return 0.0; } // no default damage
150 virtual double giveTempDamage() const { return 0.0; } // no default damage
151};
152} // end namespace oofem
153#endif // structuralinterfacematerialstatus_h
MaterialStatus(GaussPoint *g)
Definition matstatus.h:91
void copyStateVariables(const MaterialStatus &iStatus) override
Functions for MaterialStatusMapperInterface.
StructuralInterfaceMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralInterfaceMaterialStatus with number n, belonging to domain d and I...
void letTractionBe(const FloatArrayF< 3 > v)
Assigns traction to given vector v.
const FloatMatrixF< 3, 3 > & giveF() const
Returns the const pointer to receiver's deformation gradient vector.
const FloatArrayF< 3 > & giveTempFirstPKTraction() const
Returns the const pointer to receiver's temporary first Piola-Kirchhoff traction vector.
void letFirstPKTractionBe(const FloatArrayF< 3 > v)
Assigns firstPKTraction to given vector v.
const FloatArrayF< 3 > & giveTempJump() const
Returns the const pointer to receiver's temporary jump.
const FloatArrayF< 3 > & giveJump() const
Returns the const pointer to receiver's jump.
FloatArrayF< 3 > tempTraction
Temporary (engineering) traction vector.
FloatArrayF< 3 > tempFirstPKTraction
Temporary first Piola-Kirchhoff traction vector (to find balanced state).
FloatArrayF< 3 > jump
Equilibrated jump (discontinuity).
FloatMatrixF< 3, 3 > F
Equilibrated deformation gradient in reduced form.
const FloatArrayF< 3 > & giveFirstPKTraction() const
Returns the const pointer to receiver's first Piola-Kirchhoff traction vector.
void saveContext(DataStream &stream, ContextMode mode) override
FloatArrayF< 3 > tempJump
Temporary jump (discontinuity).
void addStateVariables(const MaterialStatus &iStatus) override
FloatArrayF< 3 > traction
Equilibrated (engineering) traction vector.
void letNormalBe(const FloatArrayF< 3 > &iN)
Assigns normal vector.
const FloatArrayF< 2 > & giveProjectedTraction() const
Returns the projected traction.
const char * giveClassName() const override
@TODO Projected tractions are never set. What is it supposed to be good for?
void letTempFBe(const FloatMatrixF< 3, 3 > &v)
Assigns tempFVector to given vector v.
void letProjectedTractionBe(const FloatArrayF< 2 > &iProjectedTraction)
Assigns projeted traction.
FloatArrayF< 3 > firstPKTraction
Equilibrated first Piola-Kirchhoff traction vector T.
void letTempFirstPKTractionBe(const FloatArrayF< 3 > v)
Assigns tempFirstPKTraction to given vector v.
const FloatArrayF< 3 > & giveTempTraction() const
Returns the const pointer to receiver's temporary traction vector.
void letTempTractionBe(const FloatArrayF< 3 > v)
Assigns tempTraction to given vector v.
FloatMatrixF< 3, 3 > tempF
Temporary deformation gradient in reduced form (to find balanced state).
const FloatMatrixF< 3, 3 > & giveTempF() const
Returns the const pointer to receiver's temporary deformation gradient vector.
void letFBe(const FloatMatrixF< 3, 3 > v)
Assigns FVector to given vector v.
FloatArrayF< 3 > mNormalDir
Interface normal direction.
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
const FloatArrayF< 3 > & giveNormal() const
Returns const reference to normal vector.
void letTempJumpBe(const FloatArrayF< 3 > v)
Assigns tempJump to given vector v.
const FloatArrayF< 3 > & giveTraction() const
Returns the const pointer to receiver's traction vector.
void letJumpBe(const FloatArrayF< 3 > v)
Assigns jump to given vector v.
void restoreContext(DataStream &stream, ContextMode mode) override
long ContextMode
Definition contextmode.h:43

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