OOFEM 3.0
Loading...
Searching...
No Matches
micromaterial.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 micromaterial_h
36#define micromaterial_h
37
38#include "structuralmaterial.h"
40#include "dictionary.h"
41#include "floatarray.h"
42#include "floatmatrix.h"
43#include "sparsemtrx.h"
44#include "datastream.h"
45#include "contextioerr.h"
47#include "boundarycondition.h"
49#include "error.h"
50
52
53#define _IFT_MicroMaterial_Name "micromat"
54#define _IFT_MicroMaterial_fileName "file"
56
57namespace oofem {
58class UnknownNumberingScheme;
59class MicroMaterial;
60class MacroLSpace;
61
63{
64public:
67
68 void initTempStatus() override;
69 void updateYourself(TimeStep *tStep) override;
70 void printOutputAt(FILE *file, TimeStep *tStep) const override;
71
72 const char *giveClassName() const override { return "MicroMaterialStatus"; }
73
74 void saveContext(DataStream &stream, ContextMode mode) override;
75 void restoreContext(DataStream &stream, ContextMode mode) override;
76};
77
78
87{
88public:
90 MicroMaterial(int n, Domain * d);
91
92 std :: string inputFileNameMicro;
93
94 void initializeFrom(InputRecord &ir) override;
95
96 const char *giveInputRecordName() const override { return _IFT_MicroMaterial_Name; }
97 const char *giveClassName() const override { return "MicroMaterial"; }
98
99 FloatArrayF<6> giveRealStressVector_3d(const FloatArrayF<6> &strain, GaussPoint *gp, TimeStep *tStep) const override;
100
101 std::unique_ptr<MaterialStatus> CreateStatus(GaussPoint *gp) const override;
102
103 void giveMacroStiffnessMatrix(FloatMatrix &answer, TimeStep *tStep, MatResponseMode rMode, const IntArray &microMasterNodes, const IntArray &microBoundaryNodes);
104
105 void setMacroProperties(Domain *macroDomain, MacroLSpace *macroLSpaceElement, const IntArray &microMasterNodes, const IntArray &microBoundaryNodes);
106
108 std::unique_ptr<EngngModel> problemMicro;
109
111 Domain *macroDomain = nullptr;
112
115
117 void init(void) override;
118 int giveDofEquationNumber(Dof *dof) const override;
119 bool isDefault() const override { return isDefaultNumbering; }
120 int giveRequiredNumberOfDomainEquation() const override;
121 //friend class EngngModel;-not here but define in EngngModel class
123 std::vector< FloatArray >microMasterCoords;
125 std::vector<IntArray> microBoundaryDofs;
129 std::vector<IntArray> microInternalDofs;
133 std::vector<IntArray> microDefaultDofs;
135 bool microMatIsUsed = false;
136
137protected:
151};
152} // end namespace oofem
153#endif // micromaterial_h
GaussPoint * gp
Associated integration point.
void restoreContext(DataStream &stream, ContextMode mode) override
const char * giveClassName() const override
void saveContext(DataStream &stream, ContextMode mode) override
MicroMaterialStatus(GaussPoint *gp)
Constructor.
void printOutputAt(FILE *file, TimeStep *tStep) const override
Print receiver's output to given stream.
void initTempStatus() override
void updateYourself(TimeStep *tStep) override
MicroMaterial(int n, Domain *d)
Constructor.
int totalBoundaryDofs
Number of equations associated with boundary nodes.
void initializeFrom(InputRecord &ir) override
IntArray microBoundaryDofsArr
Array of equation numbers associated to boundary nodes.
int NumberOfDofManagers
Number of DOF Managers.
std::vector< IntArray > microDefaultDofs
Array containing default equation numbers for all nodes [DofManagerNumber][DOF].
MacroLSpace * macroLSpaceElement
Pointer to the macroscale element.
std::unique_ptr< EngngModel > problemMicro
Pointer to the underlying micro problem.
int totalInternalDofs
Number of equations associated with boundary nodes.
Domain * macroDomain
Pointer to the macroscale domain.
void setMacroProperties(Domain *macroDomain, MacroLSpace *macroLSpaceElement, const IntArray &microMasterNodes, const IntArray &microBoundaryNodes)
std::vector< IntArray > microBoundaryDofs
Array containing equation numbers for boundary nodes [DofManagerNumber][DOF].
std::vector< IntArray > microInternalDofs
Array containing equation numbers for internal nodes to be condensed out [DofManagerNumber][DOF].
int reqNumberOfDomainEquation
Required number of domain equations.
void init(void) override
Related to numbering scheme.
std::string inputFileNameMicro
std::unique_ptr< MaterialStatus > CreateStatus(GaussPoint *gp) const override
const char * giveInputRecordName() const override
int giveDofEquationNumber(Dof *dof) const override
bool microMatIsUsed
Flag signalizing whether micromaterial is used by other element.
EquationNumbering DofEquationNumbering
bool isDefault() const override
const char * giveClassName() const override
void giveMacroStiffnessMatrix(FloatMatrix &answer, TimeStep *tStep, MatResponseMode rMode, const IntArray &microMasterNodes, const IntArray &microBoundaryNodes)
int maxNumberOfDomainEquation
The maximum DOFs corresponding to released all of the boundary conditions.
FloatArrayF< 6 > giveRealStressVector_3d(const FloatArrayF< 6 > &strain, GaussPoint *gp, TimeStep *tStep) const override
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
int giveRequiredNumberOfDomainEquation() const override
IntArray microInternalDofsArr
Array of equation numbers associated to internal nodes.
std::vector< FloatArray > microMasterCoords
Array containing coordinates of 8 master nodes of microproblem.
StructuralMaterialStatus(GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
StructuralMaterial(int n, Domain *d)
#define _IFT_MicroMaterial_Name
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