OOFEM 2.4
OOFEM.org - Object Oriented Finite Element Solver
maxwellChM.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 maxwellchm_h
36#define maxwellchm_h
37
38#include "rheoChM.h"
39
40namespace oofem {
45{
46public:
48
49 void printOutputAt(FILE *file, TimeStep *tStep) const override;
50
51 void initTempStatus() override;
52 void updateYourself(TimeStep *tStep) override;
53
54 void saveContext(DataStream &stream, ContextMode mode) override;
55 void restoreContext(DataStream &stream, ContextMode mode) override;
56
57 // definition
58 const char *giveClassName() const override { return "MaxwellChainMaterialStatus"; }
59};
60
61
62
68{
69public:
71
72 // overload thesse function such that computation of hidden vars can be done after the computation of stress
73 void giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep) const override;
74 void computeHiddenVars(GaussPoint *gp, TimeStep *tStep) const;
75
76 // identification and auxiliary functions
77 const char *giveClassName() const override { return "MaxwellChainMaterial"; }
78 void initializeFrom(InputRecord &ir) override;
79
81 GaussPoint *gp,
82 TimeStep *tStep,
83 ValueModeType mode) const override
84 { answer.clear(); }
85
87 GaussPoint *gp, TimeStep *tStep, ValueModeType mode) const override;
88
89 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
90
91protected:
92 bool hasIncrementalShrinkageFormulation() const override { return false; }
107 FloatArray computeCharCoefficients(double tPrime, GaussPoint *gp, TimeStep *tStep) const override;
108
109 double giveEModulus(GaussPoint *gp, TimeStep *tStep) const override;
110 // LinearElasticMaterial *giveLinearElasticMaterial();
111};
112} // end namespace oofem
113#endif // maxwellchm_h
The purpose of DataStream abstract class is to allow to store/restore context to different streams,...
Definition datastream.h:55
Class and object Domain.
Definition domain.h:121
Class representing vector of real numbers.
Definition floatarray.h:92
void clear()
Clears receiver (zero size).
Definition floatarray.h:254
Class representing integration point in finite element program.
Definition gausspoint.h:95
Class representing the general Input Record.
Definition inputrecord.h:98
This class implements associated Material Status to MaxwellChainMaterial.
Definition maxwellChM.h:45
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
Definition maxwellChM.C:288
void saveContext(DataStream &stream, ContextMode mode) override
Stores receiver state to output stream.
Definition maxwellChM.C:307
void initTempStatus() override
Initializes the temporary internal variables, describing the current state according to previously re...
Definition maxwellChM.C:301
const char * giveClassName() const override
Definition maxwellChM.h:58
void restoreContext(DataStream &stream, ContextMode mode) override
Restores the receiver state previously written in stream.
Definition maxwellChM.C:313
void updateYourself(TimeStep *tStep) override
Update equilibrium history variables according to temp-variables.
Definition maxwellChM.C:295
This class implements an aging Maxwell chain model describing a viscoelastic material.
Definition maxwellChM.h:68
const char * giveClassName() const override
Definition maxwellChM.h:77
FloatArray computeCharCoefficients(double tPrime, GaussPoint *gp, TimeStep *tStep) const override
This function computes the moduli of individual Maxwell units such that the corresponding Dirichlet s...
Definition maxwellChM.C:49
void giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep) const override
Computes the real stress vector for given total strain and integration point.
Definition maxwellChM.C:197
void computeHiddenVars(GaussPoint *gp, TimeStep *tStep) const
Definition maxwellChM.C:207
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
Definition maxwellChM.C:276
void giveEigenStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, ValueModeType mode) const override
Computes, for the given integration point, the strain vector induced by the stress history (typically...
Definition maxwellChM.C:150
void giveShrinkageStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, ValueModeType mode) const override
Computes, for the given integration point, the strain vector induced by stress-independent shrinkage.
Definition maxwellChM.h:80
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
Creates new copy of associated status and inserts it into given integration point.
Definition maxwellChM.C:269
double giveEModulus(GaussPoint *gp, TimeStep *tStep) const override
Evaluation of the incremental modulus.
Definition maxwellChM.C:106
bool hasIncrementalShrinkageFormulation() const override
If only incremental shrinkage strain formulation is provided, then total shrinkage strain must be tra...
Definition maxwellChM.h:92
This class implements associated Material Status to RheoChainMaterial.
Definition rheoChM.h:71
This class implements a rheologic chain model describing a viscoelastic material.
Definition rheoChM.h:140
Class representing solution step.
Definition timestep.h:82
the oofem namespace is to define a context or scope in which all oofem names are defined.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition contextmode.h:43

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Dec 23 2025 23:54:13 for OOFEM by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2011