OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
pfemparticle.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 pfemparticle_h
36 #define pfemparticle_h
37 
38 #include "node.h"
39 
41 
42 #define _IFT_PFEMParticle_Name "pfemparticle"
43 #define _IFT_Node_coords "coords"
44 #define _IFT_Node_lcs "lcs"
45 
46 
47 namespace oofem {
48 class FloatArray;
49 class IntArray;
50 
56 class PFEMParticle : public Node
57 {
58 protected:
60  bool freeFlag;
64  bool activeFlag;
65 
66 public:
72  PFEMParticle(int n, Domain *aDomain);
76  ~PFEMParticle(void) { }
77 
79  virtual int checkConsistency();
80 
81  virtual void updateYourself(TimeStep *tStep);
82 
84  virtual bool isFree() { return freeFlag; }
86  virtual void setFree(bool newFlag = true) { freeFlag = newFlag; }
87 
89  virtual bool isOnAlphaShape() { return alphaShapeFlag; }
91  virtual void setOnAlphaShape(bool newFlag = true) { alphaShapeFlag = newFlag; }
92 
94  virtual bool isActive() { return activeFlag; }
96  virtual void deactivate() { activeFlag = false; }
97 
98  virtual void printOutputAt(FILE *stream, TimeStep *stepN);
99 
100  virtual const char *giveClassName() const { return "PFEMParticle"; }
101  virtual const char *giveInputRecordName() const { return _IFT_PFEMParticle_Name; }
102 
103 #ifdef __OOFEG
104  virtual void drawScalar(oofegGraphicContext &gc);
105 #endif
106 };
107 } // end namespace oofem
108 #endif // pfemparticle_h
PFEMParticle(int n, Domain *aDomain)
Constructor.
Definition: pfemparticle.C:50
Class and object Domain.
Definition: domain.h:115
bool freeFlag
The particle does not compose any element, but still a part of solution domain and moves obeying Newt...
Definition: pfemparticle.h:60
#define _IFT_PFEMParticle_Name
Definition: pfemparticle.h:42
bool activeFlag
Too close particles can be deactivated, e.g. removed from meshing and computation.
Definition: pfemparticle.h:64
virtual bool isFree()
Returns the free-propery flag.
Definition: pfemparticle.h:84
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual bool isOnAlphaShape()
Returns true if the particle is on alpha shape.
Definition: pfemparticle.h:89
virtual bool isActive()
Returns the activeFlag.
Definition: pfemparticle.h:94
virtual void setOnAlphaShape(bool newFlag=true)
Sets the alphaShapeFlag.
Definition: pfemparticle.h:91
virtual void updateYourself(TimeStep *tStep)
Updates receiver at end of time step (i.e.
Definition: pfemparticle.C:76
virtual int checkConsistency()
Checks internal data consistency in node.
Definition: pfemparticle.C:66
bool alphaShapeFlag
the particle is a part of alpha-shape
Definition: pfemparticle.h:62
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual IRResultType initializeFrom(InputRecord *ir)
Gets from the source line from the data file all the data of the receiver.
Definition: pfemparticle.C:57
virtual void deactivate()
Sets the activeFlag to false.
Definition: pfemparticle.h:96
virtual const char * giveClassName() const
Definition: pfemparticle.h:100
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void setFree(bool newFlag=true)
Sets the free-property flag.
Definition: pfemparticle.h:86
virtual void printOutputAt(FILE *stream, TimeStep *stepN)
Prints output of receiver to stream, for given time step.
Definition: pfemparticle.C:84
virtual const char * giveInputRecordName() const
Definition: pfemparticle.h:101
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 void drawScalar(oofegGraphicContext &gc)
Definition: pfemparticle.C:90
Class implementing node in finite element mesh.
Definition: node.h:87
~PFEMParticle(void)
Destructor.
Definition: pfemparticle.h:76
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:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011