Free Electron
Explosion.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __element_Explosion_h__
8 #define __element_Explosion_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Explosion RecordView
16 
17  @ingroup element
18 *//***************************************************************************/
19 class FE_DL_EXPORT Explosion: public Sphere
20 {
21  public:
22  Functor<F32> radialForce;
23  Functor<I32> serial;
24 
25  Explosion(void) { setName("Explosion"); }
26 virtual void addFunctors(void)
27  {
29 
30  add(radialForce, FE_SPEC("sim:radialForce",
31  "Magnitude of explosive effect"));
32  add(serial, FE_USE(":SN"));
33  }
34 virtual void initializeRecord(void)
35  {
37 
38  radialForce()=1.0f;
39  }
40 };
41 
42 } /* namespace ext */
43 } /* namespace fe */
44 
45 #endif /* __element_Explosion_h__ */
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Sphere.h:36
kernel
Definition: namespace.dox:3
Explosion RecordView.
Definition: Explosion.h:19
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Explosion.h:26
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Explosion.h:34
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Sphere.h:42
Sphere RecordView.
Definition: Sphere.h:28