OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
eigenvaluedynamic.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 eigenvaluedynamic_h
36 #define eigenvaluedynamic_h
37 
38 #include "engngm.h"
40 #include "sparsemtrx.h"
41 #include "floatmatrix.h"
42 #include "floatarray.h"
43 #include "geneigvalsolvertype.h"
44 
46 
47 #define _IFT_EigenValueDynamic_Name "eigenvaluedynamic"
48 #define _IFT_EigenValueDynamic_nroot "nroot"
49 #define _IFT_EigenValueDynamic_rtolv "rtolv"
50 #define _IFT_EigenValueDynamic_stype "stype"
51 
52 
53 namespace oofem {
66 {
67 private:
68  std :: unique_ptr< SparseMtrx > stiffnessMatrix;
69  std :: unique_ptr< SparseMtrx > massMatrix;
77  double rtolv;
79  std :: unique_ptr< SparseGeneralEigenValueSystemNM > nMethod;
81 
82 public:
83  EigenValueDynamic(int i, EngngModel * _master = NULL) : EngngModel(i, _master)
84  {
85  numberOfSteps = 1;
86  ndomains = 1;
87  }
88  virtual ~EigenValueDynamic() { }
89 
90  virtual void solveYourselfAt(TimeStep *tStep);
91  virtual void doStepOutput(TimeStep *tStep);
92  virtual void printOutputAt(FILE *file, TimeStep *tStep);
93  virtual void updateYourself(TimeStep *tStep);
94 
95  virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof);
99  virtual TimeStep *giveNextStep();
101  virtual void setActiveVector(int i);
102 
103  virtual double giveEigenValue(int eigNum) { return eigVal.at(eigNum); }
104 
105  // identification
106  virtual const char *giveClassName() const { return "EigenValueDynamic"; }
107 };
108 } // end namespace oofem
109 #endif // eigenvaluedynamic_h
GenEigvalSolverType
Types of general eigenvalue solvers.
Class and object Domain.
Definition: domain.h:115
Class representing meta step.
Definition: metastep.h:62
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double & at(int i)
Coefficient access function.
Definition: floatarray.h:131
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual double giveEigenValue(int eigNum)
Only relevant for eigen value analysis. Otherwise returns zero.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode)
Stores the state of model to output stream.
This base class is an abstraction for numerical algorithm.
Definition: nummet.h:80
virtual void doStepOutput(TimeStep *tStep)
Prints the ouput of the solution step (using virtual this->printOutputAtservice) to the stream detemi...
virtual void setActiveVector(int i)
Only relevant for eigen value analysis. Otherwise does noting.
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver&#39;s numerical method.
virtual void updateYourself(TimeStep *tStep)
Updates internal state after finishing time step.
EigenValueDynamic(int i, EngngModel *_master=NULL)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode)
Restores the state of model from output stream.
int numberOfSteps
Total number of time steps.
Definition: engngm.h:209
int ndomains
Number of receiver domains.
Definition: engngm.h:205
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
Class representing vector of real numbers.
Definition: floatarray.h:82
std::unique_ptr< SparseGeneralEigenValueSystemNM > nMethod
Numerical method used to solve the problem.
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
std::unique_ptr< SparseMtrx > stiffnessMatrix
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
GenEigvalSolverType solverType
the oofem namespace is to define a context or scope in which all oofem names are defined.
This class implements way for examining eigenvalues and eigenvectors in dynamic problems.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
std::unique_ptr< SparseMtrx > massMatrix
double rtolv
Relative tolerance.
virtual const char * giveClassName() const
Returns class name of the receiver.
Class representing solution step.
Definition: timestep.h:80
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to output domain stream, for given time step.

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