OOFEM 3.0
Loading...
Searching...
No Matches
stationarytransportproblem.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 stationarytransportproblem_h
36#define stationarytransportproblem_h
37
38#include "engngm.h"
39#include "sparselinsystemnm.h"
41#include "sparsemtrx.h"
42#include "primaryfield.h"
43
45
46#define _IFT_StationaryTransportProblem_Name "stationaryproblem"
47#define _IFT_StationaryTransportProblem_exportfields "exportfields"
48#define _IFT_StationaryTransportProblem_keepTangent "keeptangent"
50
51namespace oofem {
52
58{
59protected:
62 std :: unique_ptr< PrimaryField > UnknownsField;
63
64 std :: unique_ptr< SparseMtrx > conductivityMatrix;
67
69 std::unique_ptr<SparseNonLinearSystemNM> nMethod;
70
71 bool keepTangent = false;
72
73public:
74 StationaryTransportProblem(int i, EngngModel * _master);
75
76 void solveYourselfAt(TimeStep *tStep) override;
77 void updateComponent(TimeStep *tStep, NumericalCmpn cmpn, Domain *d) override;
78 void updateSolution(FloatArray &solutionVector, TimeStep *tStep, Domain *d) override;
79 void updateInternalRHS(FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override;
80 void updateMatrix(SparseMtrx &mat, TimeStep *tStep, Domain *d) override;
81 double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override;
82 FieldPtr giveField (FieldType key, TimeStep *) override;
83 void saveContext(DataStream &stream, ContextMode mode) override;
84 void restoreContext(DataStream &stream, ContextMode mode) override;
85
86 void updateDomainLinks() override;
87
88 TimeStep *giveNextStep() override;
90
91 void initializeFrom(InputRecord &ir) override;
92
93 int checkConsistency() override;
94
95 // identification
97 const char *giveClassName() const override { return "StationaryTransportProblem"; }
98 fMode giveFormulation() override { return TL; }
99};
100} // end namespace oofem
101#endif // stationarytransportproblem_h
EngngModel(int i, EngngModel *_master=NULL)
Definition engngm.C:99
void initializeFrom(InputRecord &ir) override
void updateInternalRHS(FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override
std::unique_ptr< SparseNonLinearSystemNM > nMethod
Numerical method used to solve the problem.
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
void restoreContext(DataStream &stream, ContextMode mode) override
void saveContext(DataStream &stream, ContextMode mode) override
StationaryTransportProblem(int i, EngngModel *_master)
void updateSolution(FloatArray &solutionVector, TimeStep *tStep, Domain *d) override
void updateComponent(TimeStep *tStep, NumericalCmpn cmpn, Domain *d) override
FieldPtr giveField(FieldType key, TimeStep *) override
std ::unique_ptr< PrimaryField > UnknownsField
This field stores solution vector. For fixed size of problem, the PrimaryField is used,...
const char * giveClassName() const override
Returns class name of the receiver.
void updateMatrix(SparseMtrx &mat, TimeStep *tStep, Domain *d) override
std ::unique_ptr< SparseMtrx > conductivityMatrix
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override
void solveYourselfAt(TimeStep *tStep) override
long ContextMode
Definition contextmode.h:43
fMode
Definition fmode.h:42
@ TL
Total Lagrange.
Definition fmode.h:44
FieldType
Physical type of field.
Definition field.h:64
@ SMT_Skyline
Symmetric skyline.
std::shared_ptr< Field > FieldPtr
Definition field.h:78
#define _IFT_StationaryTransportProblem_Name

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