76 std::cerr <<
"format not found" << std::endl;
87 std::stringstream file_name;
88 std::ofstream script_file;
90 script_file.open((file_name.str()).c_str());
93 script_file <<
"#!/bin/bash" << std::endl;
94 script_file <<
"x=$(echo $0 | cut -c2-)" << std::endl;
95 script_file <<
"file=$PWD$x" << std::endl;
96 script_file <<
"dirname=`dirname \"$file\"`" << std::endl;
97 script_file <<
"cd $dirname" << std::endl;
128 script_file <<
"../../xballs/xballs -format " << format
144 chmod((file_name.str().c_str()),S_IRWXU);
std::string xballs_additional_arguments
const Vec3D & get_Velocity() const
std::stringstream data_filename
These store the save file names, by default they are derived from problem_name.
T * getObject(const unsigned int id) const
Gets a pointer to the Object at the specified index in the BaseHandler.
int dim
The dimension of the simulation.
int get_dim()
Allows the dimension of the simulation to be accessed.
std::stringstream problem_name
Stores the problem_name.
Mdouble get_Radius() const
std::fstream data_file
Stream used for data files.
virtual void output_xballs_data_particle(int i)
This function outputs the location and velocity of the particle in a format the xballs progream can r...
unsigned int get_options_data(void)
const Vec3D & get_Position() const
ParticleHandler & getParticleHandler()
const Vec3D & get_Angle() const
Mdouble xmin
These store the size of the domain, assume walls at the ends.
virtual double getInfo(BaseParticle &P)
Allows the user to set what is written into the info column in the data file. By default is store the...
const Vec3D & get_AngularVelocity() const
virtual void create_xballs_script()
This creates a scipt which can be used to load the xballs problem to display the data just generated...