FileParticle

class FileParticle

See Particle files and units for more details.

Public Functions

Particle read(const std::string file_name)

Create a particle from the FEASST particle file format.

void read_properties(const std::string file_name, Particle *particle)

Read pair properties from file and assign properties to particle.

int read_num_in_section(const std::string &section, const std::string &file_name, const std::string comment = "#") const

Return the number of enteries in a given section, which is defined by an empty line at the beginning and end. Ignore lines beginning with a comment character.