Peano
Loading...
Searching...
No Matches
ccz4 Namespace Reference

Data Structures

class  CCZ4Solver
 

Functions

 CoordListFromFile (file, scale)
 
 create_action_sets (self)
 
 get_user_action_set_includes (self)
 We take this routine to add a few additional include statements.
 
 add_adm_constriants (self)
 @add adm constriants (Hamilton and Momentum)
 
 add_Psi4W (self)
 add psi4 writer
 
 add_intermediate_quantities (self)
 @add adm intermediate quantites
 
 add_puncture_tracker (self)
 @add
 

Variables

dict modes
 
dict floatparams
 
dict intparams = {"BBHType":2, "LapseType":1, "tp_grid_setup":0, "swi":99, "ReSwi":0, "SO":0}
 
 parser = argparse.ArgumentParser(description='ExaHyPE 2 - CCZ4 script')
 
 dest
 
 type
 
 float
 
 required
 
 help
 
 default
 
 int
 
 False
 
 action
 
 choices
 
 True
 
 str
 
 v
 
 args = parser.parse_args()
 
 SuperClass = None
 
 userinfo = []
 main starts here
 
str exe = "peano4"
 
 project = exahype2.Project( ["applications", "exahype2", "ccz4"], "ccz4", executable=exe)
 
bool is_aderdg = False
 Pick solver.
 
bool is_rkdg = False
 
str solver_name = "CCZ4"
 
int order = 3
 
int unknowns = 59
 
float time_step_size = 0.001
 
str msg = "Warning: ADER-DG no supported on this machine"
 
 min_h = args.min_h
 
 my_solver
 
list tem_interp = ["TP_constant","TP_linear_with_linear_extrap_normal_interp"]
 Pick interpolation scheme.
 
list tem_restrict = ["TP_inject_normal_extrap","TP_average_normal_extrap"]
 
list periodic_boundary_conditions = [False,False,False]
 
 TemplateHandleBoundary_KernelCalls
 
str solverconstants = ""
 
dict build_mode = modes[args.mode]
 
int dimensions = 3
 
dict dr = floatparams["domain_r"]
 Domain settings.
 
list offset = [2*dr, 2*dr, 2*dr]
 
 first_checkpoint_time_stamp
 
 time_in_between_checkpoints
 
 cpath = args.checkpoint_path
 
 expected_restart_timestamp
 
 restart_timestamp
 
 checkpoint_path
 
str path = "./"
 output dir and proble
 
list probe_point = [-100, -100, 0.0]
 
 tracer_particles = project.add_tracer( name="Tracer",attribute_count=59 )
 
 init_action_set
 
list particle_set = [[-0.1,0,0],[0.1,0,0],[0,0.1,0],[0,-0.1,0]])
 
 descend_invocation_order
 
 tracer_action_set
 
 dump_action_set
 
 peano4_project = project.generate_Peano4_project(verbose=True)
 linking stuff
 
 additional_mesh_traversal
 
 project_patch_onto_faces = exahype2.solvers.rkfd.actionsets.ProjectPatchOntoFaces(my_solver)
 
 guards
 
 roll_over_projected_faces
 
 dynamic_AMR
 
 throw_away_data_after_generation
 
 make_clean_first
 
 amr_label = exahype2.solvers.elliptic.AMRMarker( name="AMRMarker" )
 
 overlap
 
 interpolation
 
 select_dofs_to_print
 
 priority
 
 _auxiliary_variables
 
 _preprocess_reconstructed_patch
 

Function Documentation

◆ add_adm_constriants()

ccz4.add_adm_constriants ( self)

@add adm constriants (Hamilton and Momentum)

Definition at line 320 of file ccz4.py.

◆ add_intermediate_quantities()

ccz4.add_intermediate_quantities ( self)

@add adm intermediate quantites

Definition at line 424 of file ccz4.py.

◆ add_Psi4W()

ccz4.add_Psi4W ( self)

add psi4 writer

Definition at line 371 of file ccz4.py.

◆ add_puncture_tracker()

ccz4.add_puncture_tracker ( self)

@add

Definition at line 480 of file ccz4.py.

◆ CoordListFromFile()

ccz4.CoordListFromFile ( file,
scale )

Definition at line 16 of file ccz4.py.

◆ create_action_sets()

ccz4.create_action_sets ( self)

Definition at line 308 of file ccz4.py.

◆ get_user_action_set_includes()

ccz4.get_user_action_set_includes ( self)

We take this routine to add a few additional include statements.

Definition at line 314 of file ccz4.py.

Variable Documentation

◆ _auxiliary_variables

ccz4._auxiliary_variables
protected

Definition at line 324 of file ccz4.py.

◆ _preprocess_reconstructed_patch

ccz4._preprocess_reconstructed_patch
protected

Definition at line 330 of file ccz4.py.

◆ action

ccz4.action

Definition at line 45 of file ccz4.py.

◆ additional_mesh_traversal

ccz4.additional_mesh_traversal
Initial value:
1= peano4.solversteps.Step( name = "AdditionalMeshTraversal",
2 add_user_defined_actions=False,
3 )

Definition at line 634 of file ccz4.py.

◆ amr_label

ccz4.amr_label = exahype2.solvers.elliptic.AMRMarker( name="AMRMarker" )

Definition at line 662 of file ccz4.py.

◆ args

ccz4.args = parser.parse_args()

Definition at line 72 of file ccz4.py.

◆ build_mode

dict ccz4.build_mode = modes[args.mode]

Definition at line 455 of file ccz4.py.

◆ checkpoint_path

ccz4.checkpoint_path

Definition at line 487 of file ccz4.py.

◆ choices

ccz4.choices

Definition at line 46 of file ccz4.py.

◆ cpath

str ccz4.cpath = args.checkpoint_path

Definition at line 482 of file ccz4.py.

◆ default

ccz4.default

Definition at line 41 of file ccz4.py.

◆ descend_invocation_order

ccz4.descend_invocation_order

Definition at line 538 of file ccz4.py.

◆ dest

ccz4.dest

Definition at line 40 of file ccz4.py.

◆ dimensions

int ccz4.dimensions = 3

Definition at line 457 of file ccz4.py.

◆ dr

dict ccz4.dr = floatparams["domain_r"]

Domain settings.

Definition at line 463 of file ccz4.py.

◆ dump_action_set

ccz4.dump_action_set
Initial value:
2 particle_set=tracer_particles,
3 solver=my_solver,
4 filename=args.path+"Tracer-test",
5 number_of_entries_between_two_db_flushes=1000,
6 output_precision=8,
7 data_delta_between_two_snapsots=1e16,
8 position_delta_between_two_snapsots=1e16,
9 time_delta_between_two_snapsots=0.02,
10 clear_database_after_flush = True
11 )

Definition at line 549 of file ccz4.py.

◆ dynamic_AMR

ccz4.dynamic_AMR
Initial value:
2 solver=my_solver,
3 interpolation=my_solver.interpolation,
4 restriction=my_solver.restriction,
5 )
The handling of (dynamically) adaptive meshes for finite differences.
Definition DynamicAMR.py:11

Definition at line 645 of file ccz4.py.

◆ exe

str ccz4.exe = "peano4"

Definition at line 276 of file ccz4.py.

◆ expected_restart_timestamp

ccz4.expected_restart_timestamp

Definition at line 487 of file ccz4.py.

◆ False

ccz4.False

Definition at line 45 of file ccz4.py.

◆ first_checkpoint_time_stamp

ccz4.first_checkpoint_time_stamp

Definition at line 476 of file ccz4.py.

◆ float

ccz4.float

Definition at line 40 of file ccz4.py.

◆ floatparams

dict ccz4.floatparams
Initial value:
1= {
2 "GLMc0":1.5, "GLMc":1.2, "GLMd":2.0, "GLMepsA":1.0, "GLMepsP":1.0,
3 "GLMepsD":1.0,
4 "itau":1.0, "k1":0.1, "k2":0.0, "k3":0.5, "eta":1.0,
5 "f":0.75, "g":0.0, "xi":1.0, "e":1.0, "c":1.0, "mu":0.2, "ds":1.0,
6 "sk":1.0, "bs":1.0,
7 "domain_r":0.5, "smoothing":0.0, "KOSigma":8.0 #, \
8}

Definition at line 27 of file ccz4.py.

◆ guards

ccz4.guards

Definition at line 638 of file ccz4.py.

◆ help

ccz4.help

Definition at line 40 of file ccz4.py.

◆ init_action_set

ccz4.init_action_set
Initial value:
2 # particle_set=tracer_particles, coordinates=[[0,0,8.0],[0,0,-8.0],[8.0,8.0,0],[-8.0,-8.0,0]])

Definition at line 532 of file ccz4.py.

◆ int

ccz4.int

Definition at line 42 of file ccz4.py.

◆ interpolation

ccz4.interpolation

Definition at line 676 of file ccz4.py.

◆ intparams

dict ccz4.intparams = {"BBHType":2, "LapseType":1, "tp_grid_setup":0, "swi":99, "ReSwi":0, "SO":0}

Definition at line 36 of file ccz4.py.

◆ is_aderdg

bool ccz4.is_aderdg = False

Pick solver.

Definition at line 288 of file ccz4.py.

◆ is_rkdg

bool ccz4.is_rkdg = False

Definition at line 289 of file ccz4.py.

◆ make_clean_first

ccz4.make_clean_first

Definition at line 664 of file ccz4.py.

◆ min_h

ccz4.min_h = args.min_h

Definition at line 322 of file ccz4.py.

◆ modes

dict ccz4.modes
Initial value:
1= {
2 "release": peano4.output.CompileMode.Release,
3 "trace": peano4.output.CompileMode.Trace,
4 "assert": peano4.output.CompileMode.Asserts,
5 "stats": peano4.output.CompileMode.Stats,
6 "debug": peano4.output.CompileMode.Debug,
7}

Definition at line 19 of file ccz4.py.

◆ msg

str ccz4.msg = "Warning: ADER-DG no supported on this machine"

Definition at line 299 of file ccz4.py.

◆ my_solver

ccz4.my_solver
Initial value:
1= exahype2.solvers.aderdg.NonFusedGenericRusanovFixedTimeStepSize(
2 solver_name, order, unknowns, 0, #auxiliary_variables
3 exahype2.solvers.aderdg.Polynomials.Gauss_Legendre,
4 min_h, args.max_h, time_step_size,
5 flux = None,
6 ncp = exahype2.solvers.PDETerms.User_Defined_Implementation,
7 sources = exahype2.solvers.PDETerms.User_Defined_Implementation
8 )

Definition at line 328 of file ccz4.py.

◆ offset

list ccz4.offset = [2*dr, 2*dr, 2*dr]

Definition at line 464 of file ccz4.py.

◆ order

int ccz4.order = 3

Definition at line 294 of file ccz4.py.

◆ overlap

ccz4.overlap

Definition at line 673 of file ccz4.py.

◆ parser

ccz4.parser = argparse.ArgumentParser(description='ExaHyPE 2 - CCZ4 script')

Definition at line 39 of file ccz4.py.

◆ particle_set

list ccz4.particle_set = [[-0.1,0,0],[0.1,0,0],[0,0.1,0],[0,-0.1,0]])

Definition at line 534 of file ccz4.py.

◆ path

str ccz4.path = "./"

output dir and proble

Definition at line 497 of file ccz4.py.

◆ peano4_project

ccz4.peano4_project = project.generate_Peano4_project(verbose=True)

linking stuff

Definition at line 604 of file ccz4.py.

◆ periodic_boundary_conditions

list ccz4.periodic_boundary_conditions = [False,False,False]

Definition at line 392 of file ccz4.py.

◆ priority

ccz4.priority

Definition at line 938 of file ccz4.py.

◆ probe_point

list ccz4.probe_point = [-100, -100, 0.0]

Definition at line 506 of file ccz4.py.

◆ project

ccz4.project = exahype2.Project( ["applications", "exahype2", "ccz4"], "ccz4", executable=exe)

Definition at line 283 of file ccz4.py.

◆ project_patch_onto_faces

Definition at line 637 of file ccz4.py.

◆ required

ccz4.required

Definition at line 40 of file ccz4.py.

◆ restart_timestamp

ccz4.restart_timestamp

Definition at line 487 of file ccz4.py.

◆ roll_over_projected_faces

ccz4.roll_over_projected_faces
Initial value:
2 my_solver._store_face_data_default_guard(),
3 )

Definition at line 641 of file ccz4.py.

◆ select_dofs_to_print

ccz4.select_dofs_to_print

Definition at line 912 of file ccz4.py.

◆ solver_name

str ccz4.solver_name = "CCZ4"

Definition at line 290 of file ccz4.py.

◆ solverconstants

str ccz4.solverconstants = ""

Definition at line 423 of file ccz4.py.

◆ str

ccz4.str

Definition at line 55 of file ccz4.py.

◆ SuperClass

ccz4.SuperClass = None

Definition at line 74 of file ccz4.py.

◆ tem_interp

list ccz4.tem_interp = ["TP_constant","TP_linear_with_linear_extrap_normal_interp"]

Pick interpolation scheme.

Definition at line 351 of file ccz4.py.

◆ tem_restrict

list ccz4.tem_restrict = ["TP_inject_normal_extrap","TP_average_normal_extrap"]

Definition at line 352 of file ccz4.py.

◆ TemplateHandleBoundary_KernelCalls

ccz4.TemplateHandleBoundary_KernelCalls

Definition at line 417 of file ccz4.py.

◆ throw_away_data_after_generation

ccz4.throw_away_data_after_generation

Definition at line 663 of file ccz4.py.

◆ time_in_between_checkpoints

ccz4.time_in_between_checkpoints

Definition at line 477 of file ccz4.py.

◆ time_step_size

float ccz4.time_step_size = 0.001

Definition at line 296 of file ccz4.py.

◆ tracer_action_set

ccz4.tracer_action_set
Initial value:
2 my_solver,
3 project_on_tracer_properties_kernel="::exahype2::fv::projectAllValuesOntoParticle_piecewiseLinear",
4 )
Particle tracing over the Finite Volumes solver.

Definition at line 541 of file ccz4.py.

◆ tracer_particles

ccz4.tracer_particles = project.add_tracer( name="Tracer",attribute_count=59 )

Definition at line 531 of file ccz4.py.

◆ True

ccz4.True

Definition at line 48 of file ccz4.py.

◆ type

ccz4.type

Definition at line 40 of file ccz4.py.

◆ unknowns

int ccz4.unknowns = 59

Definition at line 295 of file ccz4.py.

◆ userinfo

list ccz4.userinfo = []

main starts here

Definition at line 275 of file ccz4.py.

◆ v

ccz4.v

Definition at line 66 of file ccz4.py.