Table Of Contents

Previous topic

pset Package

This Page

utils Package

utils Package

parse_args Module

pyparticles.utils.parse_args.parse_args()

problem_config Module

class pyparticles.utils.problem_config.ParticlesConfig

Bases: object

Parse the config files used for generating the problems:

build_problem()

Build the main problem and return the four main objects: return ( self.animation , self.pset , self.force , self.ode_solver )

get_animation()

Build an Animation object and return the reference to the object

get_force()

Build and return an object for mdeling the force (derived form the abstract class force)

get_ode_solver()

Build and return an object for solving the Newton Law of motion (derived form the abstract class ode_solver)

get_particle_set()

Build and return a set of particles (class: particles_set)

read_config(file_name)

Read the configuration file

write_example_config_file(file_name='example_pyparticles_config.cfg')

Write a generic config file

pyparticles.utils.problem_config.read_str_list(string, to=<type 'float'>)

pypart_global Module

pyparticles.utils.pypart_global.py_particle_version()
pyparticles.utils.pypart_global.test_pyopencl()

time_formatter Module

class pyparticles.utils.time_formatter.MyTimeFormatter

Bases: object

to_str(t)