OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
interactionpfemparticle.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 interactionpfemparticle_h
36 #define interactionpfemparticle_h
37 
38 #include "pfemparticle.h"
39 
41 
42 #define _IFT_InteractionPFEMParticle_Name "interactionpfemparticle"
43 #define _IFT_Node_coords "coords"
44 #define _IFT_Node_lcs "lcs"
45 #define _IFT_InteractionPFEMParticle_CoupledNode "couplednode"
46 
47 
48 namespace oofem {
49 class FloatArray;
50 class IntArray;
51 class StructuralEngngModel;
52 class FluidStructureProblem;
53 
58 class OOFEM_EXPORT InteractionPFEMParticle : public PFEMParticle
59 {
60 protected:
62 
63 public:
69  InteractionPFEMParticle(int n, Domain *aDomain);
74 
75  virtual IRResultType initializeFrom(InputRecord *ir);
76  virtual int checkConsistency();
77 
78  virtual void updateYourself(TimeStep *tStep);
79 
80  virtual void givePrescribedUnknownVector(FloatArray &answer, const IntArray &dofMask,
81  ValueModeType mode, TimeStep *stepN);
82 
83  void giveCoupledVelocities(FloatArray &answer, TimeStep *stepN);
84 
85  virtual void printOutputAt(FILE *stream, TimeStep *stepN);
86 
87  virtual const char *giveClassName() const { return "InteractionPFEMParticle"; }
88  virtual const char *giveInputRecordName() const { return _IFT_InteractionPFEMParticle_Name; }
89 
90 #ifdef __OOFEG
91  virtual void drawScalar(oofegGraphicContext &gc);
92 #endif
93 
94 private:
95  StructuralEngngModel *giveStructuralProblem();
96  FluidStructureProblem *giveFluidStructureMasterProblem();
97 };
98 } // end namespace oofem
99 #endif // interactionpfemparticle_h
Class and object Domain.
Definition: domain.h:115
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
Class implementing an array of integers.
Definition: intarray.h:61
#define _IFT_InteractionPFEMParticle_Name
Implementation of fluid-structure interaction ) problem based on Dirichlet-Neumann approach...
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
This class represents a fluid particle attached to a node on the structural part of the interface...
virtual const char * giveClassName() const
This class implements extension of EngngModel for structural models.
Particle class being used in PFEM computations.
Definition: pfemparticle.h:56
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
Class representing solution step.
Definition: timestep.h:80

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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011