OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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 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"
46
47namespace oofem {
48class FloatArray;
49class IntArray;
50
56class PFEMParticle : public Node
57{
58protected:
65
66public:
72 PFEMParticle(int n, Domain *aDomain);
76 virtual ~PFEMParticle(void) { }
77
78 //void initializeFrom(InputRecord &ir, int priority) override;
79 int checkConsistency() override;
80
81 void updateYourself(TimeStep *tStep) override;
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 const char *giveClassName() const override { return "PFEMParticle"; }
99 const char *giveInputRecordName() const override { return _IFT_PFEMParticle_Name; }
100
101#ifdef __OOFEG
102 void drawScalar(oofegGraphicContext &gc) override;
103#endif
104};
105} // end namespace oofem
106#endif // pfemparticle_h
Node(int n, Domain *aDomain)
Definition node.C:73
virtual bool isOnAlphaShape()
Returns true if the particle is on alpha shape.
virtual ~PFEMParticle(void)
virtual void setFree(bool newFlag=true)
Sets the free-property flag.
bool activeFlag
Too close particles can be deactivated, e.g. removed from meshing and computation.
PFEMParticle(int n, Domain *aDomain)
bool freeFlag
The particle does not compose any element, but still a part of solution domain and moves obeying Newt...
virtual void deactivate()
Sets the activeFlag to false.
virtual bool isActive()
Returns the activeFlag.
void drawScalar(oofegGraphicContext &gc) override
const char * giveClassName() const override
virtual bool isFree()
Returns the free-propery flag.
virtual void setOnAlphaShape(bool newFlag=true)
Sets the alphaShapeFlag.
int checkConsistency() override
void updateYourself(TimeStep *tStep) override
const char * giveInputRecordName() const override
bool alphaShapeFlag
the particle is a part of alpha-shape
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define _IFT_PFEMParticle_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