OOFEM 3.0
Loading...
Searching...
No Matches
mazarsmodelnl.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 mazarsmodelnl_h
36#define mazarsmodelnl_h
37
38#include "mazarsmodel.h"
40
42
43#define _IFT_MazarsNLMaterial_Name "mazarsmodelnl"
44#define _IFT_MazarsNLMaterial_r "r"
46
47namespace oofem {
48class GaussPoint;
49
54{
55protected:
58
59public:
62
63 void printOutputAt(FILE *file, TimeStep *tStep) const override;
64
69
70 const char *giveClassName() const override { return "MazarsNLMaterialStatus"; }
71
72 void initTempStatus() override;
73 void updateYourself(TimeStep *tStep) override;
74
75 void saveContext(DataStream &stream, ContextMode mode) override;
76 void restoreContext(DataStream &stream, ContextMode mode) override;
77
90};
91
92
98{
99protected:
101 double R = 0.;
102
103public:
105 MazarsNLMaterial(int n, Domain * d);
106
107 const char *giveClassName() const override { return "MazarsNLMaterial"; }
108
109 void initializeFrom(InputRecord &ir) override;
111
112 double computeEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const override;
120 double computeLocalEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const
121 { return MazarsMaterial :: computeEquivalentStrain(strain, gp, tStep); }
122
123 void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override;
124 double computeWeightFunction(const double cl, const FloatArray &src, const FloatArray &coord) const override;
125 int hasBoundedSupport() const override { return 1; }
129 virtual double giveSupportRadius() const { return this->R; }
130
131 int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
132 int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override;
133 int estimatePackSize(DataStream &buff, GaussPoint *ip) override;
134
135 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override { return std::make_unique<MazarsNLMaterialStatus>(gp); }
136
137protected:
138 void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp) const override;
139};
140} // end namespace oofem
141#endif // mazarsmodelnl_h
MazarsMaterialStatus(GaussPoint *g)
Constructor.
MazarsMaterial(int n, Domain *d)
Constructor.
Definition mazarsmodel.C:51
void setLocalEquivalentStrainForAverage(double ls)
Sets the local equivalent strain for average to given value.
Interface * giveInterface(InterfaceType it) override
const char * giveClassName() const override
double localEquivalentStrainForAverage
Equivalent strain for averaging.
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
void updateYourself(TimeStep *tStep) override
void restoreContext(DataStream &stream, ContextMode mode) override
MazarsNLMaterialStatus(GaussPoint *g)
Constructor.
void saveContext(DataStream &stream, ContextMode mode) override
double giveLocalEquivalentStrainForAverage()
Returns the local equivalent strain to be averaged.
double computeLocalEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const
int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
void initializeFrom(InputRecord &ir) override
MazarsNLMaterial(int n, Domain *d)
Constructor.
int estimatePackSize(DataStream &buff, GaussPoint *ip) override
Interface * giveInterface(InterfaceType it) override
const char * giveClassName() const override
virtual double giveSupportRadius() const
double computeWeightFunction(const double cl, const FloatArray &src, const FloatArray &coord) const override
void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp) const override
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
double computeEquivalentStrain(const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) const override
int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip) override
int hasBoundedSupport() const override
void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep) const override
double R
Interaction radius, related to the nonlocal characteristic length of material.
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