OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
prescribedgradienthomogenization.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 prescribedgradienthomogenization_h
36 #define prescribedgradienthomogenization_h
37 
38 #include "inputrecord.h"
39 #include "floatarray.h"
40 #include "floatmatrix.h"
41 
42 #include "error.h"
43 
45 
46 #define _IFT_PrescribedGradientHomogenization_Name "prescribedgradient"
47 #define _IFT_PrescribedGradientHomogenization_centercoords "ccoord"
48 #define _IFT_PrescribedGradientHomogenization_gradient "gradient"
49 
50 
51 namespace oofem {
52 class TimeStep;
53 class DynamicInputRecord;
54 class Domain;
55 
63 {
64 protected:
67 
70 
71  virtual double domainSize(Domain *d, int set);
72 
73 public:
76 
77  virtual double domainSize() {OOFEM_ERROR("Not implemented."); return 0.0;}
78 
87  virtual IRResultType initializeFrom(InputRecord *ir);
88  virtual void giveInputRecord(DynamicInputRecord &input);
89 
95  virtual void computeField(FloatArray &sigma, TimeStep *tStep) = 0;
96 
102  virtual void computeTangent(FloatMatrix &tangent, TimeStep *tStep) = 0;
103 
108  void setPrescribedGradient(const FloatMatrix &t) { mGradient = t; }
109 
115  void setPrescribedGradientVoigt(const FloatArray &t);
120  void giveGradientVoigt(FloatArray &oGradient) const;
121 
126  void setCenterCoordinate(FloatArray &x) { mCenterCoord = x; }
128  FloatArray &giveCenterCoordinate() { return mCenterCoord; }
129 
130  virtual const char *giveClassName() const = 0;
131 };
132 } // end namespace oofem
133 
134 #endif // prescribedgradienthomogenization_h
Class and object Domain.
Definition: domain.h:115
Class for homogenization of applied gradients.
void setCenterCoordinate(FloatArray &x)
Set the center coordinate for the prescribed values to be set for.
#define OOFEM_ERROR(...)
Definition: error.h:61
FloatArray & giveCenterCoordinate()
Returns the center coordinate.
Class representing vector of real numbers.
Definition: floatarray.h:82
void setPrescribedGradient(const FloatMatrix &t)
Set prescribed gradient.
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
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
Definition: timestep.h:80

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:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011