ParticleBeam.cpp File Reference

Classes

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

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
68  {
69  ParticleBeam dpm;
70  dpm.write(std::cout);
71  dpm.solve();
72  helpers::writeToFile(dpm.getName()+".gnu","p 'ParticleBeam.data' u 1 ev 101::99");
73  return 0;
74 }
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:377
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
void write(std::ostream &os, bool writeAllParticles=true) const override
Writes all data into a restart file.
Definition: MercuryBase.cc:126
A 1D "beam" structure composed of particles.
Definition: ParticleBeam.cpp:9
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29

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