OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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 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
47namespace oofem {
48class SparseMtrx;
49//class ConnectivityTable;
50
65{
66protected:
67 std :: unique_ptr< SparseMtrx > stiffnessMatrix;
70
74 std :: unique_ptr< SparseLinearSystemNM > nMethod;
75
80
81 int initFlag; // needed?
82
83public:
84 FreeWarping(int i, EngngModel *master = nullptr);
85 virtual ~FreeWarping();
86
87 void solveYourself() override;
88 void solveYourselfAt(TimeStep *tStep) override;
89
90 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
91 //void saveContext(DataStream &stream, ContextMode mode) override;
92 //void restoreContext(DataStream &stream, ContextMode mode) override;
93
94 void updateDomainLinks() override;
95
96 void printOutputAt(FILE *file, TimeStep *tStep) override;
97
98 TimeStep *giveNextStep() override;
100
101 void initializeFrom(InputRecord &ir) override;
102
103 void getCenterOfGravity(FloatMatrix &answer) { answer = this->CG; }
104
105 // identification
106 const char *giveInputRecordName() const { return _IFT_FreeWarping_Name; }
107 const char *giveClassName() const override { return "FreeWarping"; }
108 fMode giveFormulation() override { return TL; }
115 void updateComputedResults(FloatArray &answer, TimeStep *tStep);
116 void updateStiffnessMatrix(SparseMtrx *answer);
117
118 int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override;
119};
120} // end namespace oofem
121#endif // freewarping_h
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
void updateStiffnessMatrix(SparseMtrx *answer)
fMode giveFormulation() override
int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override
FloatArray loadVector
Definition freewarping.h:68
FloatArray cg
computed center of gravity
Definition freewarping.h:77
const char * giveInputRecordName() const
virtual ~FreeWarping()
Definition freewarping.C:73
FloatArray SolutionAtCG
Definition freewarping.h:79
std ::unique_ptr< SparseLinearSystemNM > nMethod
Numerical method used to solve the problem.
Definition freewarping.h:74
std ::unique_ptr< SparseMtrx > stiffnessMatrix
Definition freewarping.h:67
void getCenterOfGravity(FloatMatrix &answer)
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
Definition freewarping.C:78
void updateDomainLinks() override
FloatArray displacementVector
Definition freewarping.h:69
void solveYourself() override
void initializeFrom(InputRecord &ir) override
Definition freewarping.C:96
void computeResultAtCenterOfGravity(TimeStep *tStep)
const char * giveClassName() const override
Returns class name of the receiver.
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
void computeCenterOfGravity()
LinSystSolverType solverType
Definition freewarping.h:71
void solveYourselfAt(TimeStep *tStep) override
FreeWarping(int i, EngngModel *master=nullptr)
Definition freewarping.C:65
SparseMtrxType sparseMtrxType
Definition freewarping.h:72
void printOutputAt(FILE *file, TimeStep *tStep) override
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
void updateComputedResults(FloatArray &answer, TimeStep *tStep)
StructuralEngngModel(int i, EngngModel *master=nullptr)
Creates new StructuralEngngModel with number i, associated to domain d.
#define _IFT_FreeWarping_Name
Definition freewarping.h:45
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