Peano
Loading...
Searching...
No Matches
planet-orbit.py File Reference

Go to the source code of this file.

Namespaces

namespace  planet-orbit

Variables

 planet-orbit.parser = argparse.ArgumentParser(description="SPH benchmarking script")
 Parse user input.
 planet-orbit.dest
 planet-orbit.type
 planet-orbit.int
 planet-orbit.default
 planet-orbit.help
 planet-orbit.action
 planet-orbit.choices
 planet-orbit.required
 planet-orbit.args = parser.parse_args()
 planet-orbit.dimensions = args.dimensions
 Generate ExaParty project.
 planet-orbit.project
 planet-orbit.particle
 planet-orbit.particle_set = project.add_particle_species(particle)
 planet-orbit.energy_kin_attr = dastgen2.attributes.Double("energyKin")
 planet-orbit.energy_pot_attr = dastgen2.attributes.Double("energyPot")
 planet-orbit.energy_tot_attr = dastgen2.attributes.Double("energyTot")
 planet-orbit.build_mode = peano4.api.output.CompileMode.ASSERTS
list planet-orbit.offset = [0, 0, 0]
list planet-orbit.domain_size = [1, 1, 1]
list planet-orbit.periodic_boundary_conditions = [False, False, False]
 planet-orbit.min_end_time
 planet-orbit.max_end_time
 planet-orbit.first_plot_time_stamp
 planet-orbit.time_in_between_plots
 planet-orbit.periodic_BC
 planet-orbit.plotter_precision
int planet-orbit.N_orbits = 8
float planet-orbit.G_NEWTON = 6.67384e-11
float planet-orbit.M_SUN = 1.9885e30
float planet-orbit.M_EARTH = 5.97219e24
float planet-orbit.R_MAX = 152097701000.0
float planet-orbit.R_MIN = 147098074000.0
float planet-orbit.V_MAX = 30287.0
float planet-orbit.LENGTH_UNIT = 4.0 * R_MAX
 planet-orbit.SUN_X_COORD = str(0.5)
 planet-orbit.SUN_Y_COORD = str(0.5)
 planet-orbit.EARTH_X_INI = str(float(SUN_X_COORD) + R_MAX / LENGTH_UNIT)
 planet-orbit.EARTH_Y_INI = SUN_Y_COORD
tuple planet-orbit.e = (R_MAX - R_MIN) / (R_MAX + R_MIN)
 planet-orbit.b = np.sqrt(R_MAX * R_MIN)
 planet-orbit.p = b * np.sqrt(1.0 - e * e)
 planet-orbit.a = p / (1.0 - e * e)
 planet-orbit.T = np.sqrt(4.0 * np.pi * np.pi * a * a * a / (G_NEWTON * (M_SUN + M_EARTH)))
int planet-orbit.dt = 1e-3 * T
int planet-orbit.N = N_orbits / dt
 planet-orbit.GLOBAL_TIME_STEP_SIZE = str(dt)
 planet-orbit.EARTH_V_INI_X = str(0.0)
 planet-orbit.EARTH_V_INI_Y = str(V_MAX / LENGTH_UNIT * T)
str planet-orbit.particle_force
 Declare the force acting on the particle.
 planet-orbit.cell_kernel
float planet-orbit.search_radius = args.cell_size / 100.0
 Initialisation snippet for the particle.
tuple planet-orbit.initialisation_snippet
 planet-orbit.particle_plotter
 Set up the plotter.
 planet-orbit.peano4_project = project.generate_Peano4_project(verbose=args.verbose)
 Generate plain Peano 4 project.
list planet-orbit.dirs = ["vertexdata/", "repositories/", "globaldata/", "observers/"]
 planet-orbit.overwrite
 planet-orbit.Always
 planet-orbit.throw_away_data_after_generation
 planet-orbit.make_clean_first
 planet-orbit.True
 planet-orbit.number_of_parallel_builds
list planet-orbit.output_files