OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
freewarping.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 freewarping_h
36 #define freewarping_h
37 
38 #include "structengngmodel.h"
39 #include "sparselinsystemnm.h"
40 #include "sparsemtrxtype.h"
41 #include "sparsemtrx.h"
42 #include "floatmatrix.h"
43 #include "connectivitytable.h"
44 
45 #define _IFT_FreeWarping_Name "freewarping"
46 
47 namespace oofem {
48 class SparseMtrx;
49 //class ConnectivityTable;
50 
65 {
66 protected:
67  std :: unique_ptr< SparseMtrx > stiffnessMatrix;
70 
74  std :: unique_ptr< SparseLinearSystemNM > nMethod;
75 
80 
81  int initFlag; // needed?
82 
83 public:
84  FreeWarping(int i, EngngModel *_master = NULL);
85  virtual ~FreeWarping();
86 
87  virtual void solveYourself();
88  virtual void solveYourselfAt(TimeStep *tStep);
89 
90  virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof);
91  //virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
92  //virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
93 
94  virtual void updateDomainLinks();
95 
96  virtual void printOutputAt(FILE *file, TimeStep *tStep);
97 
98  virtual TimeStep *giveNextStep();
100 
102 
103  void getCenterOfGravity(FloatMatrix &answer) { answer = this->CG; }
104 
105  // identification
106  virtual const char *giveInputRecordName() const { return _IFT_FreeWarping_Name; }
107  virtual const char *giveClassName() const { return "FreeWarping"; }
108  virtual fMode giveFormulation() { return TL; }
113  void computeCenterOfGravity();
115  void updateComputedResults(FloatArray &answer, TimeStep *tStep);
116  void updateStiffnessMatrix(SparseMtrx *answer);
117 
118  int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType);
119 };
120 } // end namespace oofem
121 #endif // freewarping_h
LinSystSolverType
The values of this type should be related not to specific solvers, but more to specific packages that...
std::unique_ptr< SparseMtrx > stiffnessMatrix
Definition: freewarping.h:67
void updateComputedResults(FloatArray &answer, TimeStep *tStep)
Definition: freewarping.C:445
SparseMtrxType sparseMtrxType
Definition: freewarping.h:72
virtual const char * giveInputRecordName() const
Definition: freewarping.h:106
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver&#39;s numerical method.
Definition: freewarping.C:78
Class and object Domain.
Definition: domain.h:115
void getCenterOfGravity(FloatMatrix &answer)
Definition: freewarping.h:103
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
void computeResultAtCenterOfGravity(TimeStep *tStep)
Definition: freewarping.C:167
FloatArray SolutionAtCG
Definition: freewarping.h:79
Class representing meta step.
Definition: metastep.h:62
int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType)
Determines the space necessary for send/receive buffer.
Definition: freewarping.C:385
Total Lagrange.
Definition: fmode.h:44
This class implements the free warping engineering problem (evaluation of the warping function and to...
Definition: freewarping.h:64
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
Definition: freewarping.C:264
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to output domain stream, for given time step.
Definition: freewarping.C:369
This base class is an abstraction for numerical algorithm.
Definition: nummet.h:80
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
Definition: freewarping.C:230
void updateStiffnessMatrix(SparseMtrx *answer)
Definition: freewarping.C:419
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
Definition: freewarping.C:96
Class implementing an array of integers.
Definition: intarray.h:61
void computeCenterOfGravity()
Gives the sum of the first moment of area.
Definition: freewarping.C:131
FloatArray cg
computed center of gravity
Definition: freewarping.h:77
#define _IFT_FreeWarping_Name
Definition: freewarping.h:45
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
FloatArray loadVector
Definition: freewarping.h:68
FloatMatrix CG
Definition: freewarping.h:78
virtual ~FreeWarping()
Definition: freewarping.C:73
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).
Definition: freewarping.h:108
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
LinSystSolverType solverType
Definition: freewarping.h:71
virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
Definition: freewarping.C:197
Class representing the general Input Record.
Definition: inputrecord.h:101
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
Definition: fmode.h:42
FloatArray displacementVector
Definition: freewarping.h:69
std::unique_ptr< SparseLinearSystemNM > nMethod
Numerical method used to solve the problem.
Definition: freewarping.h:74
FreeWarping(int i, EngngModel *_master=NULL)
Definition: freewarping.C:65
This class implements extension of EngngModel for structural models.
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.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
virtual void solveYourself()
Starts solution process.
Definition: freewarping.C:246
virtual void updateDomainLinks()
Updates domain links after the domains of receiver have changed.
Definition: freewarping.C:361
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveClassName() const
Returns class name of the receiver.
Definition: freewarping.h:107

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