OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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 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"
45
47
48#define _IFT_EigenValueDynamic_Name "eigenvaluedynamic"
49#define _IFT_EigenValueDynamic_nroot "nroot"
50#define _IFT_EigenValueDynamic_rtolv "rtolv"
51#define _IFT_EigenValueDynamic_stype "stype"
53
54namespace oofem {
67{
68private:
69 std :: unique_ptr< EigenVectorPrimaryField > field;
72 // int restoreFlag;
76 double rtolv;
77 std :: unique_ptr< SparseGeneralEigenValueSystemNM > nMethod;
79
80public:
81 EigenValueDynamic(int i, EngngModel *master=nullptr);
82 virtual ~EigenValueDynamic() { }
83
84 void solveYourself() override;
85 void doStepOutput(TimeStep *tStep) override;
86 void printOutputAt(FILE *file, TimeStep *tStep) override;
87 void updateYourself(TimeStep *tStep) override;
88
89 int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override;
90 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
91 bool newDofHandling() override { return true; }
92 void initializeFrom(InputRecord &ir) override;
93 void saveContext(DataStream &stream, ContextMode mode) override;
94 void restoreContext(DataStream &stream, ContextMode mode) override;
95 TimeStep *giveNextStep() override;
97 void setActiveVector(int i) override;
98
99 double giveEigenValue(int eigNum) override { return eigVal.at(eigNum); }
100
101 const char *giveClassName() const override { return "EigenValueDynamic"; }
102};
103} // end namespace oofem
104#endif // eigenvaluedynamic_h
std ::unique_ptr< EigenVectorPrimaryField > field
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
double rtolv
Relative tolerance.
EigenValueDynamic(int i, EngngModel *master=nullptr)
void saveContext(DataStream &stream, ContextMode mode) override
void doStepOutput(TimeStep *tStep) override
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
void updateYourself(TimeStep *tStep) override
GenEigvalSolverType solverType
void initializeFrom(InputRecord &ir) override
void restoreContext(DataStream &stream, ContextMode mode) override
int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override
double giveEigenValue(int eigNum) override
Only relevant for eigen value analysis. Otherwise returns zero.
std ::unique_ptr< SparseGeneralEigenValueSystemNM > nMethod
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
void printOutputAt(FILE *file, TimeStep *tStep) override
void setActiveVector(int i) override
Only relevant for eigen value analysis. Otherwise does noting.
const char * giveClassName() const override
Returns class name of the receiver.
EngngModel(int i, EngngModel *_master=NULL)
Definition engngm.C:99
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
long ContextMode
Definition contextmode.h:43

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