Peano
Loading...
Searching...
No Matches
dastgen-test Namespace Reference

Variables

 parser = argparse.ArgumentParser(description="Dastgen2 testing script")
 Parse user input.
 
 dest
 
 type
 
 int
 
 default
 
 help
 
 action
 
 args = parser.parse_args()
 
list project_namespace = ["tests", "exaparty", "dastgenTest"]
 Generate ExaParty project.
 
 project
 
int dimensions = 2
 
float cell_size = 0.3
 
 particle
 
 particle_set = project.add_particle_species(particle)
 
 build_mode = peano4.api.output.CompileMode.ASSERTS
 
list offset = [0, 0, 0]
 
list domain_size = [1, 1, 1]
 
list periodic_boundary_conditions = [False, False, False]
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 time_in_between_plots
 
 periodic_BC
 
 plotter_precision
 
 generated
 
int Npart = 10
 Initialisation snippet for the particle.
 
 coords = np.zeros((Npart**dimensions, 3))
 
 x = np.linspace(offset, 1, Npart, endpoint=False)
 
 y = np.linspace(offset, 1, Npart, endpoint=False)
 
 xp = xp.reshape((np.prod(xp.shape),))
 
 yp = yp.reshape((np.prod(yp.shape),))
 
str initialisation_snippet
 
 peano4_project = project.generate_Peano4_project(verbose=args.verbose)
 Generate plain Peano 4 project.
 
list dirs = ["vertexdata/", "repositories/", "globaldata/", "observers/"]
 Cleanup and compilation.
 
 overwrite
 
 Always
 
 throw_away_data_after_generation
 
 make_clean_first
 
 True
 
 number_of_parallel_builds
 
list output_files
 

Variable Documentation

◆ action

dastgen-test.action

Definition at line 25 of file dastgen-test.py.

◆ Always

dastgen-test.Always

Definition at line 159 of file dastgen-test.py.

◆ args

dastgen-test.args = parser.parse_args()

Definition at line 36 of file dastgen-test.py.

◆ build_mode

dastgen-test.build_mode = peano4.api.output.CompileMode.ASSERTS

Definition at line 68 of file dastgen-test.py.

◆ cell_size

float dastgen-test.cell_size = 0.3

Definition at line 52 of file dastgen-test.py.

◆ coords

dastgen-test.coords = np.zeros((Npart**dimensions, 3))

Definition at line 103 of file dastgen-test.py.

◆ default

dastgen-test.default

Definition at line 19 of file dastgen-test.py.

◆ dest

dastgen-test.dest

Definition at line 19 of file dastgen-test.py.

◆ dimensions

dastgen-test.dimensions = 2

Definition at line 51 of file dastgen-test.py.

◆ dirs

list dastgen-test.dirs = ["vertexdata/", "repositories/", "globaldata/", "observers/"]

Cleanup and compilation.

Definition at line 151 of file dastgen-test.py.

◆ domain_size

dastgen-test.domain_size = [1, 1, 1]

Definition at line 72 of file dastgen-test.py.

◆ first_plot_time_stamp

dastgen-test.first_plot_time_stamp

Definition at line 81 of file dastgen-test.py.

◆ generated

dastgen-test.generated

Definition at line 88 of file dastgen-test.py.

◆ help

dastgen-test.help

Definition at line 19 of file dastgen-test.py.

◆ initialisation_snippet

str dastgen-test.initialisation_snippet
Initial value:
1= """
2 /*
3 * Initial Conditions: None. The dummy particles aren't even proper SPH
4 * particles. Notably, they don't even contain fields like mass, density,
5 * etc. Nothing to do here except read in particle positions (which is
6 * done elsewhere) and give particles a search radius, which needs to
7 * exist.
8 */
9 tarch::la::Vector<Dimensions,double> GridSize = marker.h();
10 const double GridSize_x = GridSize(0);
11 particle->setSearchRadius( GridSize_x / 4.0);
12"""

Definition at line 115 of file dastgen-test.py.

◆ int

dastgen-test.int

Definition at line 19 of file dastgen-test.py.

◆ make_clean_first

dastgen-test.make_clean_first

Definition at line 161 of file dastgen-test.py.

◆ max_end_time

dastgen-test.max_end_time

Definition at line 80 of file dastgen-test.py.

◆ min_end_time

dastgen-test.min_end_time

Definition at line 79 of file dastgen-test.py.

◆ Npart

int dastgen-test.Npart = 10

Initialisation snippet for the particle.

Definition at line 98 of file dastgen-test.py.

◆ number_of_parallel_builds

dastgen-test.number_of_parallel_builds

Definition at line 161 of file dastgen-test.py.

◆ offset

int dastgen-test.offset = [0, 0, 0]

Definition at line 71 of file dastgen-test.py.

◆ output_files

list dastgen-test.output_files
Initial value:
1= [
2 f
3 for f in os.listdir(".")
4 if f.endswith(".peano-patch-file") or f.endswith(".vtu") or f.endswith(".pvd")
5]

Definition at line 164 of file dastgen-test.py.

◆ overwrite

dastgen-test.overwrite

Definition at line 159 of file dastgen-test.py.

◆ parser

dastgen-test.parser = argparse.ArgumentParser(description="Dastgen2 testing script")

Parse user input.

Definition at line 17 of file dastgen-test.py.

◆ particle

dastgen-test.particle
Initial value:
1= DastgenTestDummyParticle(
2 "dummyPart",
3 particles_per_cell=20,
4 min_h=cell_size / 100,
5 max_h=cell_size,
6)

Definition at line 55 of file dastgen-test.py.

◆ particle_set

dastgen-test.particle_set = project.add_particle_species(particle)

Definition at line 65 of file dastgen-test.py.

◆ peano4_project

dastgen-test.peano4_project = project.generate_Peano4_project(verbose=args.verbose)

Generate plain Peano 4 project.

Definition at line 143 of file dastgen-test.py.

◆ periodic_BC

dastgen-test.periodic_BC

Definition at line 83 of file dastgen-test.py.

◆ periodic_boundary_conditions

list dastgen-test.periodic_boundary_conditions = [False, False, False]

Definition at line 73 of file dastgen-test.py.

◆ plotter_precision

dastgen-test.plotter_precision

Definition at line 84 of file dastgen-test.py.

◆ project

dastgen-test.project
Initial value:
2 namespace=project_namespace, project_name="dastgen_test", executable="dastgen_test"
3)
ExaParty project.
Definition Project.py:27

Definition at line 45 of file dastgen-test.py.

◆ project_namespace

list dastgen-test.project_namespace = ["tests", "exaparty", "dastgenTest"]

Generate ExaParty project.

Definition at line 43 of file dastgen-test.py.

◆ throw_away_data_after_generation

dastgen-test.throw_away_data_after_generation

Definition at line 159 of file dastgen-test.py.

◆ time_in_between_plots

dastgen-test.time_in_between_plots

Definition at line 82 of file dastgen-test.py.

◆ True

dastgen-test.True

Definition at line 161 of file dastgen-test.py.

◆ type

dastgen-test.type

Definition at line 19 of file dastgen-test.py.

◆ x

dastgen-test.x = np.linspace(offset, 1, Npart, endpoint=False)

Definition at line 105 of file dastgen-test.py.

◆ xp

dastgen-test.xp = xp.reshape((np.prod(xp.shape),))

Definition at line 108 of file dastgen-test.py.

◆ y

dastgen-test.y = np.linspace(offset, 1, Npart, endpoint=False)

Definition at line 106 of file dastgen-test.py.

◆ yp

dastgen-test.yp = yp.reshape((np.prod(yp.shape),))

Definition at line 108 of file dastgen-test.py.