OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
fluidstructureproblem.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 fluidstructureproblem_h
36 #define fluidstructureproblem_h
37 
38 #include "staggeredproblem.h"
39 #include "inputrecord.h"
40 
42 
43 #define _IFT_FluidStructureProblem_Name "fluidstuctureproblem"
44 #define _IFT_FluidStructureProblem_rtolv "rtolv"
45 #define _IFT_FluidStructureProblem_rtolp "rtolp"
46 #define _IFT_FluidStructureProblem_maxiter "maxiter"
47 
49 
50 namespace oofem {
60 class OOFEM_EXPORT FluidStructureProblem : public StaggeredProblem
61 {
62 protected:
66 
68  double rtolv, rtolp;
70  int maxiter;
71 
72 public:
76  FluidStructureProblem(int i, EngngModel *_master = NULL);
78  virtual ~FluidStructureProblem();
79 
80  void setContextOutputMode(ContextOutputMode contextMode);
81  void setUDContextOutputMode(int cStep);
82  void setProblemMode(problemMode pmode);
83 
84  virtual void solveYourselfAt(TimeStep *tStep);
85  virtual void initializeYourself(TimeStep *tStep);
86  virtual int initializeAdaptive(int stepNumber) { return 0; }
87 
88  virtual IRResultType initializeFrom(InputRecord *ir);
89 
90  void printYourself();
91  virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *atTime) { }
92 
93  virtual void preInitializeNextStep();
94 
95  // identification
96  virtual const char *giveClassName() const { return "FluidStructureProblem"; }
97  virtual const char *giveInputRecordName() const { return _IFT_FluidStructureProblem_Name; }
98  virtual int isIncremental() { return 0; }
99  virtual int useNonlocalStiffnessOption() { return 0; }
100 
101  virtual fMode giveFormulation() { return UNKNOWN; }
102 
103 
105  void giveCoupledModels(IntArray &answer) { answer = coupledModels; }
106 
107 #ifdef __OOFEG
108 
111  virtual void showSparseMtrxStructure(int type, oofegGraphicContext &context, TimeStep *atTime) { }
112 #endif
113 
114  virtual int giveNumberOfSlaveProblems() { return ( int ) inputStreamNames.size(); }
115 
116  virtual int giveNumberOfFirstStep() { if ( master ) { return master->giveNumberOfFirstStep(); } else { return 1; } }
118  if ( master ) { return master->giveNumberOfTimeStepWhenIcApply(); } else { return 0; }
119  }
120 
121  int giveIterationNumber() { return iterationNumber; }
122 };
123 } // end namespace oofem
124 #endif // fluidstructureproblem_h
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).
virtual void showSparseMtrxStructure(int type, oofegGraphicContext &context, TimeStep *atTime)
Shows the sparse structure of required matrix, type == 1 stiffness.
double rtolv
Convergence tolerance.
virtual int useNonlocalStiffnessOption()
Returns nonzero if nonlocal stiffness option activated.
int iterationNumber
Iteration counter.
Unknown.
Definition: fmode.h:43
virtual const char * giveInputRecordName() const
#define _IFT_FluidStructureProblem_Name
Class implementing an array of integers.
Definition: intarray.h:61
virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *atTime)
DOF printing routine.
virtual int initializeAdaptive(int stepNumber)
Initializes the newly generated discretization state according to previous solution.
Implementation of fluid-structure interaction ) problem based on Dirichlet-Neumann approach...
Implementation of general sequence (staggered) problem.
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
Definition: fmode.h:42
int maxiter
Max number of iterations.
problemMode
Definition: problemmode.h:39
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
void giveCoupledModels(IntArray &answer)
Returns list of model number that this model is coupled with. Used for staggered approach.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
virtual int giveNumberOfSlaveProblems()
Returns number of slave problems.
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveClassName() const
Returns class name of the receiver.

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