OOFEM 3.0
Loading...
Searching...
No Matches
linearstability.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 linearstability_h
36#define linearstability_h
37
39#include "geneigvalsolvertype.h"
41#include "sparselinsystemnm.h"
42#include "sparsemtrx.h"
43#include "floatmatrix.h"
44#include "floatarray.h"
45#include "nummet.h"
46
48
49#define _IFT_LinearStability_Name "linearstability"
50#define _IFT_LinearStability_nroot "nroot"
51#define _IFT_LinearStability_rtolv "rtolv"
52#define _IFT_LinearStability_stype "stype"
54
55namespace oofem {
56
57class EigenVectorPrimaryField;
58//class DofDistributedPrimaryField;
59
73{
74private:
75 std :: unique_ptr< SparseMtrx > stiffnessMatrix;
76 std :: unique_ptr< SparseMtrx > initialStressMatrix;
77 std :: unique_ptr< EigenVectorPrimaryField > field;
78 //std :: unique_ptr< DofDistributedPrimaryField > initialDisplacements;
80
82 double rtolv;
85 std :: unique_ptr< SparseGeneralEigenValueSystemNM > nMethod;
87 std :: unique_ptr< SparseLinearSystemNM > nMethodLS;
88
89public:
90 LinearStability(int i, EngngModel *master=nullptr);
91 virtual ~LinearStability() { }
92
93 void solveYourself() override;
94 void solveYourselfAt(TimeStep *tStep) override;
95
96 void doStepOutput(TimeStep *tStep) override;
97 void printOutputAt(FILE *file, TimeStep *tStep) override;
98 //virtual void printOutputAt(FILE *file, TimeStep *tStep, const IntArray &nodeSets, const IntArray &elementSets);
99 void terminateLinStatic(TimeStep *tStep);
100 int requiresNewLsh() { return 0; }
101 void updateYourself(TimeStep *tStep) override;
102
103 // the intrinsic time of time step defines active eigen value and corresponding vector,
104 // for which values can be requested using
105 // giveUnknownComponent method.
106 // When DisplacementVector is requested, then if time==0 linear elastic solution displacement are returned,
107 // otherwise corresponding eigen vector is considered as displacement vector
108 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
109 int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override;
110 bool newDofHandling() override { return true; }
111 void initializeFrom(InputRecord &ir) override;
112 void saveContext(DataStream &stream, ContextMode mode) override;
113 void restoreContext(DataStream &stream, ContextMode mode) override;
114 TimeStep *giveNextStep() override;
115
116 double giveEigenValue(int eigNum) override { return eigVal.at(eigNum); }
117 void setActiveVector(int i) override;
118
121
122 // identification
123 const char *giveInputRecordName() const { return _IFT_LinearStability_Name; }
124 const char *giveClassName() const override { return "LinearStability"; }
125 fMode giveFormulation() override { return TL; }
126};
127} // end namespace oofem
128#endif // linearstability_h
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
void updateYourself(TimeStep *tStep) override
double giveEigenValue(int eigNum) override
Only relevant for eigen value analysis. Otherwise returns zero.
std ::unique_ptr< EigenVectorPrimaryField > field
SparseLinearSystemNM * giveNumericalMethodForLinStaticProblem(TimeStep *tStep)
void setActiveVector(int i) override
Only relevant for eigen value analysis. Otherwise does noting.
void restoreContext(DataStream &stream, ContextMode mode) override
const char * giveInputRecordName() const
fMode giveFormulation() override
void solveYourselfAt(TimeStep *tStep) override
int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override
const char * giveClassName() const override
Returns class name of the receiver.
bool newDofHandling() override
void doStepOutput(TimeStep *tStep) override
GenEigvalSolverType solverType
Numerical method used to solve the problem.
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
std ::unique_ptr< SparseLinearSystemNM > nMethodLS
Numerical method used to solve the static problem.
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
std ::unique_ptr< SparseMtrx > initialStressMatrix
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
void terminateLinStatic(TimeStep *tStep)
void initializeFrom(InputRecord &ir) override
LinearStability(int i, EngngModel *master=nullptr)
std ::unique_ptr< SparseGeneralEigenValueSystemNM > nMethod
void solveYourself() override
void printOutputAt(FILE *file, TimeStep *tStep) override
std ::unique_ptr< SparseMtrx > stiffnessMatrix
void saveContext(DataStream &stream, ContextMode mode) override
StructuralEngngModel(int i, EngngModel *master=nullptr)
Creates new StructuralEngngModel with number i, associated to domain d.
#define _IFT_LinearStability_Name
long ContextMode
Definition contextmode.h:43
fMode
Definition fmode.h:42
@ TL
Total Lagrange.
Definition fmode.h:44

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