OOFEM 3.0
Loading...
Searching...
No Matches
macrolspace.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 macrolspace_h
36#define macrolspace_h
37
39
41
42#define _IFT_MacroLSpace_Name "macrolspace"
43#define _IFT_MacroLspace_microMasterNodes "micromasternodes"
44#define _IFT_MacroLspace_microBoundaryNodes "microboundarynodes"
45#define _IFT_MacroLspace_stiffMatrxFileName "stiffmatrxfilename"
47
48namespace oofem {
49class Domain;
50class EngngModel;
51class MicroMaterial;
52class ParamKey;
53
60class MacroLSpace : public LSpace
61{
62private:
66public:
67 MacroLSpace(int n, Domain * d);
68 virtual ~MacroLSpace();
69
70 const char *giveInputRecordName() const override { return _IFT_MacroLSpace_Name; }
71 const char *giveClassName() const override { return "MacroLSpace"; }
72
73 void initializeFrom(InputRecord &ir, int priority) override;
74 void postInitialize() override;
75
76 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
77
78 void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer) override
79 { OOFEM_ERROR("Macro space element doesn't support computing local unknown vector (yet)\n"); }
80
82 virtual void changeMicroBoundaryConditions(TimeStep *tStep);
83
84 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override;
85
92 virtual void evalInterpolation(FloatArray &answer, const std::vector< FloatArray > &coords, const FloatArray &gcoords);
93
94 void updateYourself(TimeStep *tStep) override;
95
96protected:
116};
117} // end namespace oofem
118#endif //macrolspace_h
LSpace(int n, Domain *d)
Definition lspace.C:62
virtual void evalInterpolation(FloatArray &answer, const std::vector< FloatArray > &coords, const FloatArray &gcoords)
IntArray microBoundaryNodes
Definition macrolspace.h:99
void updateYourself(TimeStep *tStep) override
void initializeFrom(InputRecord &ir, int priority) override
Definition macrolspace.C:68
IntArray microMasterNodes
Array containing the node mapping from microscale (which microMasterNodes corresponds to which macroN...
Definition macrolspace.h:98
void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer) override
Definition macrolspace.h:78
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
IntArray microBoundaryDofManager
Stores node number on the boundary in the triplets.
MicroMaterial * microMaterial
const char * giveClassName() const override
Definition macrolspace.h:71
FloatMatrix stiffMatrix
EngngModel * microEngngModel
FloatArray internalMacroForcesVector
Array containg the force vector from nodes (if condensation is skipped, use this vector).
MacroLSpace(int n, Domain *d)
Definition macrolspace.C:55
static ParamKey IPK_MacroLSpace_stiffMatrixFileName
Definition macrolspace.h:65
TimeStep * lastStiffMatrixTimeStep
Last time step when stiffness matrix was assembled.
void postInitialize() override
Performs post initialization steps.
Definition macrolspace.C:92
static ParamKey IPK_MacroLSpace_microMasterNodes
Definition macrolspace.h:63
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
virtual ~MacroLSpace()
Definition macrolspace.C:65
virtual void changeMicroBoundaryConditions(TimeStep *tStep)
Related to setting the boundary conditions of micro problem.
int stiffMatrxFileNoneReadingWriting
Process with external file for the storage of stiffness matrix 0-None, 1-read, 2-write.
static ParamKey IPK_MacroLSpace_microBoundaryNodes
Definition macrolspace.h:64
int iteration
Information of iteration number.
const char * giveInputRecordName() const override
Definition macrolspace.h:70
#define OOFEM_ERROR(...)
Definition error.h:79
#define _IFT_MacroLSpace_Name
Definition macrolspace.h:42

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