OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TrackCmd.h
Go to the documentation of this file.
1//
2// Class TrackCmd
3// The class for the OPAL TRACK command.
4//
5// Copyright (c) 200x - 2022, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_TrackCmd_HH
19#define OPAL_TrackCmd_HH
20
22#include "Steppers/Steppers.h"
23
24#include <map>
25
26class TrackCmd : public Action {
27public:
28 TrackCmd();
29
30 virtual ~TrackCmd();
31
32 virtual TrackCmd* clone(const std::string& name);
33
34 virtual void execute();
35
37 std::vector<double> getDT() const;
38
39 double getDTSCINIT() const;
40
41 double getDTAU() const;
42
44 double getT0() const;
45
47 std::vector<unsigned long long> getMaxSteps() const;
48
51 int getStepsPerTurn() const;
52
54 double getZStart() const;
55
57 std::vector<double> getZStop() const;
58
61
62private:
63 // Not implemented.
65 void operator=(const TrackCmd&);
66
67 // Clone constructor.
68 TrackCmd(const std::string& name, TrackCmd* parent);
69
70 static const std::map<std::string, Steppers::TimeIntegrator> stringTimeIntegrator_s;
71};
72
73#endif // OPAL_TrackCmd_HH
The base class for all OPAL actions.
Definition Action.h:29
double getDTSCINIT() const
Definition TrackCmd.cpp:134
virtual TrackCmd * clone(const std::string &name)
Return a clone.
Definition TrackCmd.cpp:118
std::vector< double > getDT() const
Return the timestep in seconds.
Definition TrackCmd.cpp:120
int getStepsPerTurn() const
Definition TrackCmd.cpp:170
std::vector< double > getZStop() const
location at which the simulation stops
Definition TrackCmd.cpp:142
virtual void execute()
Execute the command.
Definition TrackCmd.cpp:177
virtual ~TrackCmd()
Definition TrackCmd.cpp:116
double getT0() const
Return the elapsed time (sec) of the bunch.
Definition TrackCmd.cpp:138
TrackCmd(const TrackCmd &)
void operator=(const TrackCmd &)
double getDTAU() const
Definition TrackCmd.cpp:136
Steppers::TimeIntegrator getTimeIntegrator()
return the name of time integrator
Definition TrackCmd.cpp:172
double getZStart() const
location at which the simulation starts
Definition TrackCmd.cpp:140
static const std::map< std::string, Steppers::TimeIntegrator > stringTimeIntegrator_s
Definition TrackCmd.h:56
std::vector< unsigned long long > getMaxSteps() const
Return the maximum timsteps we integrate the system.
Definition TrackCmd.cpp:150
TimeIntegrator
Definition Steppers.h:25