OOFEM 3.0
Loading...
Searching...
No Matches
particle.C
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#include "particle.h"
36#include "classfactory.h"
37#include "error.h"
38#include "floatmatrix.h"
39#include "domain.h"
40#include "parametermanager.h"
41#include "paramkey.h"
42
43namespace oofem {
45
47
48Particle :: Particle(int n, Domain *aDomain) : Node(n, aDomain)
49{ }
50
51
52void
53Particle :: initializeFrom(InputRecord &ir, int priority)
54{
55 ParameterManager &ppm = domain->dofmanPPM;
56
57 Node :: initializeFrom(ir, priority);
58 PM_UPDATE_PARAMETER(radius, ppm, ir, this->number, IPK_Particle_rad, priority) ;
59}
60
63
66 if ( radius < 0.0 ) {
68 }
69
70}
71
72} // namespace oofem
#define REGISTER_DofManager(class)
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
Definition dofmanager.C:444
ParameterManager dofmanPPM
Definition domain.h:134
Domain * giveDomain() const
Definition femcmpnn.h:97
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition femcmpnn.h:79
int number
Component number.
Definition femcmpnn.h:77
Node(int n, Domain *aDomain)
Definition node.C:73
static ParamKey IPK_Particle_rad
Definition particle.h:58
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
Definition particle.C:61
double radius
Particle radius (only spherical particles considered).
Definition particle.h:56
#define PM_ELEMENT_ERROR_IFNOTSET(_pm, _componentnum, _paramkey)
#define PM_UPDATE_PARAMETER(_val, _pm, _ir, _componentnum, _paramkey, _prio)

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