ParticleBeam.cpp File Reference

Classes

class  ParticleBeam
 A 1D "beam" structure composed of particles. More...
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
89  {
90  ParticleBeam dpm;
91  dpm.write(std::cout);
92  dpm.solve();
93  helpers::writeToFile(dpm.getName()+".gnu","p 'ParticleBeam.data' u 1 ev 101::99");
94  return 0;
95 }
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:399
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void write(std::ostream &os, bool writeAllParticles=true) const override
Writes all data into a restart file.
Definition: MercuryBase.cc:147
A 1D "beam" structure composed of particles.
Definition: ParticleBeam.cpp:30
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58

References DPMBase::getName(), DPMBase::solve(), MercuryBase::write(), and helpers::writeToFile().