Free Electron
mobilityAS.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 __mobility_mobilityAS_h__
8 #define __mobility_mobilityAS_h__
9 
10 #include "signal/signal.h"
11 #include "math/math.h"
12 #include "datatool/datatool.h"
13 #include "shape/shape.h"
14 
15 namespace fe
16 {
17 
18 class AsMobile
19  : public AccessorSet, public Initialize<AsMobile>
20 {
21  public:
22  AsMobile(void){}
23  void initialize(void)
24  {
25  add(direction, FE_SPEC("mbl:dir", "direction to move"));
26  add(destination, FE_SPEC("mbl:dst", "desired destination"));
27  add(thrust, FE_SPEC("mbl:thrust", "thrust magnitude"));
28  }
29  /// direction to move
30  Accessor<SpatialVector> direction;
31  /// desired destination
32  Accessor<SpatialVector> destination;
33  /// thrust magnitude
34  Accessor<Real> thrust;
35 };
36 
37 
38 } /* namespace */
39 
40 #endif /* __mobility_mobilityAS_h__ */
41 
kernel
Definition: namespace.dox:3