OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
38 #include "../sm/Elements/3D/lspace.h"
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"
46 
47 
48 namespace oofem {
49 class Domain;
50 class EngngModel;
51 class MicroMaterial;
52 
59 class MacroLSpace : public LSpace
60 {
61 public:
62  MacroLSpace(int n, Domain * d);
63  virtual ~MacroLSpace();
64 
65  virtual const char *giveInputRecordName() const { return _IFT_MacroLSpace_Name; }
66  virtual const char *giveClassName() const { return "MacroLSpace"; }
67 
69 
70  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
71 
72  virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
73  { OOFEM_ERROR("Macro space element doesn't support computing local unknown vector (yet)\n"); }
74 
76  virtual void changeMicroBoundaryConditions(TimeStep *tStep);
77 
78  virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0);
79 
86  virtual void evalInterpolation(FloatArray &answer, const std::vector< FloatArray > &coords, const FloatArray &gcoords);
87 
88  virtual void updateYourself(TimeStep *tStep);
89 
90 protected:
95  bool firstCall;
110 };
111 } // end namespace oofem
112 #endif //macrolspace_h
Domain * microDomain
Definition: macrolspace.h:97
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes the stiffness matrix of receiver.
Definition: macrolspace.C:102
TimeStep * lastStiffMatrixTimeStep
Last time step when stiffness matrix was assembled.
Definition: macrolspace.h:109
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: macrolspace.C:65
Class and object Domain.
Definition: domain.h:115
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
Evaluates nodal representation of real internal forces.
Definition: macrolspace.C:225
#define _IFT_MacroLSpace_Name
Definition: macrolspace.h:42
virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
Definition: macrolspace.C:291
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual void changeMicroBoundaryConditions(TimeStep *tStep)
Related to setting the boundary conditions of micro problem.
Definition: macrolspace.C:155
virtual const char * giveClassName() const
Definition: macrolspace.h:66
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
MacroLSpace(int n, Domain *d)
Definition: macrolspace.C:50
This class is a base class for microproblem.
Definition: micromaterial.h:89
IntArray microDOFs
Definition: macrolspace.h:94
#define OOFEM_ERROR(...)
Definition: error.h:61
EngngModel * microEngngModel
Definition: macrolspace.h:98
virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
Definition: macrolspace.h:72
IntArray microBoundaryNodes
Definition: macrolspace.h:93
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
IntArray microMasterNodes
Array containing the node mapping from microscale (which microMasterNodes corresponds to which macroN...
Definition: macrolspace.h:92
FloatMatrix stiffMatrix
Definition: macrolspace.h:103
IntArray microBoundaryDofManager
Stores node number on the boundary in the triplets.
Definition: macrolspace.h:102
This class implements a Linear 3d 8-node finite element for stress analysis.
Definition: lspace.h:60
Class representing the general Input Record.
Definition: inputrecord.h:101
This class implements a macroelement.
Definition: macrolspace.h:59
FloatArray internalMacroForcesVector
Array containg the force vector from nodes (if condensation is skipped, use this vector).
Definition: macrolspace.h:107
virtual void evalInterpolation(FloatArray &answer, const std::vector< FloatArray > &coords, const FloatArray &gcoords)
Evaluates shape function at a given pointnodal representation of real internal forces obtained from m...
Definition: macrolspace.C:279
int iteration
Information of iteration number.
Definition: macrolspace.h:100
virtual ~MacroLSpace()
Definition: macrolspace.C:62
virtual const char * giveInputRecordName() const
Definition: macrolspace.h:65
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
the oofem namespace is to define a context or scope in which all oofem names are defined.
MicroMaterial * microMaterial
Definition: macrolspace.h:96
Class representing solution step.
Definition: timestep.h:80
int stiffMatrxFileNoneReadingWriting
Process with external file for the storage of stiffness matrix 0-None, 1-read, 2-write.
Definition: macrolspace.h:105

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011