Peano
Loading...
Searching...
No Matches
ccz4_archived 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_constraint_RefinementFlag_verification (self)
 
 add_derivative_calculation (self)
 
 add_PT_ConsW_Psi4W_AMRFlag (self)
 
 add_Psi4W (self)
 add psi4 writer
 

Variables

dict modes
 
dict floatparams
 
dict intparams = {"BBHType":2, "LapseType":1, "tp_grid_setup":0, "swi":99, "ReSwi":0, "source":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
 
list 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: RKDG not supported on this machine"
 
 min_h = args.min_h
 
 my_solver
 
 amr_label = exahype2.solvers.elliptic.AMRMarker( name="AMRMarker" )
 
 overlap
 
 interpolation
 
list tem_interp = ["TP_constant","TP_linear_with_linear_extrap_normal_interp"]
 
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]
 
str path = "./"
 output dir and proble
 
list probe_point = [-12,-12,0.0]
 
 select_dofs_to_print
 
 tracer_particles = project.add_tracer( name="Tracer",attribute_count=61 )
 
dict tracer_name = {1:"line", 2:"slide", 3:"volume", 6:"Gauss_Legendre_quadrature", 7:"t-design"}
 
 Type
 
 add_tracer
 
 a
 
 b
 
 N_x
 
 N_y
 
 N_z
 
 path1
 
 peano4_project = project.generate_Peano4_project(verbose=True)
 linking stuff
 
 throw_away_data_after_generation
 
 make_clean_first
 
 _auxiliary_variables
 
 _preprocess_reconstructed_patch
 

Function Documentation

◆ add_constraint_RefinementFlag_verification()

ccz4_archived.add_constraint_RefinementFlag_verification ( self)
Todo
legacy code

Add the constraint verification code

We introduce new auxiliary variables. Prior to each time step, I compute the Laplacian and store it in the auxiliary variable. This is kind of a material parameter F(Q) which does not feed back into the solution.

Changing the number of unknowns a posteriori is a delicate update to the solver, so we invoke the constructor again to be on the safe side.

Definition at line 325 of file ccz4_archived.py.

◆ add_derivative_calculation()

ccz4_archived.add_derivative_calculation ( self)
Todo
legacy code

Add the constraint verification code

We introduce new auxiliary variables. Prior to each time step, I compute the Laplacian and store it in the auxiliary variable. This is kind of a material parameter F(Q) which does not feed back into the solution.

Changing the number of unknowns a posteriori is a delicate update to the solver, so we invoke the constructor again to be on the safe side.

Definition at line 445 of file ccz4_archived.py.

◆ add_Psi4W()

ccz4_archived.add_Psi4W ( self)

add psi4 writer

Definition at line 636 of file ccz4_archived.py.

◆ add_PT_ConsW_Psi4W_AMRFlag()

ccz4_archived.add_PT_ConsW_Psi4W_AMRFlag ( self)
Todo
legacy code
      add puncutrestracker, constraints writer, psi4 writer, AMRflag(currently using gradient of phi)

Definition at line 495 of file ccz4_archived.py.

◆ CoordListFromFile()

ccz4_archived.CoordListFromFile ( file,
scale )

Definition at line 20 of file ccz4_archived.py.

◆ create_action_sets()

ccz4_archived.create_action_sets ( self)

Definition at line 312 of file ccz4_archived.py.

◆ get_user_action_set_includes()

ccz4_archived.get_user_action_set_includes ( self)

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

Definition at line 318 of file ccz4_archived.py.

Variable Documentation

◆ _auxiliary_variables

ccz4_archived._auxiliary_variables
protected

Definition at line 341 of file ccz4_archived.py.

◆ _preprocess_reconstructed_patch

ccz4_archived._preprocess_reconstructed_patch
protected

Definition at line 348 of file ccz4_archived.py.

◆ a

ccz4_archived.a

Definition at line 1043 of file ccz4_archived.py.

◆ action

ccz4_archived.action

Definition at line 65 of file ccz4_archived.py.

◆ add_tracer

ccz4_archived.add_tracer

Definition at line 1043 of file ccz4_archived.py.

◆ amr_label

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

Definition at line 762 of file ccz4_archived.py.

◆ args

ccz4_archived.args = parser.parse_args()

Definition at line 89 of file ccz4_archived.py.

◆ b

ccz4_archived.b

Definition at line 1043 of file ccz4_archived.py.

◆ build_mode

dict ccz4_archived.build_mode = modes[args.mode]

Definition at line 940 of file ccz4_archived.py.

◆ choices

ccz4_archived.choices

Definition at line 66 of file ccz4_archived.py.

◆ default

ccz4_archived.default

Definition at line 61 of file ccz4_archived.py.

◆ dest

ccz4_archived.dest

Definition at line 60 of file ccz4_archived.py.

◆ dimensions

int ccz4_archived.dimensions = 3

Definition at line 942 of file ccz4_archived.py.

◆ dr

dict ccz4_archived.dr = floatparams["domain_r"]

Domain settings.

Definition at line 948 of file ccz4_archived.py.

◆ exe

str ccz4_archived.exe = "peano4"

Definition at line 693 of file ccz4_archived.py.

◆ False

ccz4_archived.False

Definition at line 65 of file ccz4_archived.py.

◆ float

ccz4_archived.float

Definition at line 60 of file ccz4_archived.py.

◆ floatparams

dict ccz4_archived.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":4.0 #, \
8 #"itau":1.0, "k1":0.1, "k2":0.0, "k3":0.5, "eta":1.0,
9 #"f":1.0, "g":0.0, "xi":1.0, "e":1.0, "c":1.0, "mu":0.2, "ds":1.0,
10 #"sk":1.0, "bs":1.0#, \
11 #"par_b":666.0, "center_offset_x":-1.0, "center_offset_y":0.0, "center_offset_z":0.0, \
12 #"target_m_plus":1.0, "par_p_plus_x":0.0, "par_p_plus_y":0.0, "par_p_plus_z":0.0, \
13 #"par_s_plus_x":0.0, "par_s_plus_y":0.0, "par_s_plus_z":0.0, \
14 #"target_m_minus":1.0, "par_p_minus_x":0.0, "par_p_minus_y":0.0, "par_p_minus_z":0.0, \
15 #"par_s_minus_x":0.0, "par_s_minus_y":0.0, "par_s_minus_z":0.0, \
16 #"tp_epsilon":1e-6
17}

Definition at line 38 of file ccz4_archived.py.

◆ help

ccz4_archived.help

Definition at line 60 of file ccz4_archived.py.

◆ int

ccz4_archived.int

Definition at line 62 of file ccz4_archived.py.

◆ interpolation

ccz4_archived.interpolation

Definition at line 776 of file ccz4_archived.py.

◆ intparams

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

Definition at line 56 of file ccz4_archived.py.

◆ is_aderdg

bool ccz4_archived.is_aderdg = False

Pick solver.

Definition at line 705 of file ccz4_archived.py.

◆ is_rkdg

bool ccz4_archived.is_rkdg = False

Definition at line 706 of file ccz4_archived.py.

◆ make_clean_first

ccz4_archived.make_clean_first

Definition at line 1135 of file ccz4_archived.py.

◆ min_h

ccz4_archived.min_h = args.min_h

Definition at line 737 of file ccz4_archived.py.

◆ modes

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

Definition at line 31 of file ccz4_archived.py.

◆ msg

str ccz4_archived.msg = "Warning: RKDG not supported on this machine"

Definition at line 725 of file ccz4_archived.py.

◆ my_solver

ccz4_archived.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 743 of file ccz4_archived.py.

◆ N_x

ccz4_archived.N_x

Definition at line 1043 of file ccz4_archived.py.

◆ N_y

ccz4_archived.N_y

Definition at line 1043 of file ccz4_archived.py.

◆ N_z

ccz4_archived.N_z

Definition at line 1043 of file ccz4_archived.py.

◆ offset

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

Definition at line 949 of file ccz4_archived.py.

◆ order

int ccz4_archived.order = 3

Definition at line 711 of file ccz4_archived.py.

◆ overlap

ccz4_archived.overlap

Definition at line 773 of file ccz4_archived.py.

◆ parser

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

Definition at line 59 of file ccz4_archived.py.

◆ path

str ccz4_archived.path = "./"

output dir and proble

Definition at line 970 of file ccz4_archived.py.

◆ path1

ccz4_archived.path1

Definition at line 1052 of file ccz4_archived.py.

◆ peano4_project

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

linking stuff

Definition at line 1074 of file ccz4_archived.py.

◆ periodic_boundary_conditions

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

Definition at line 834 of file ccz4_archived.py.

◆ probe_point

list ccz4_archived.probe_point = [-12,-12,0.0]

Definition at line 976 of file ccz4_archived.py.

◆ project

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

Definition at line 700 of file ccz4_archived.py.

◆ required

ccz4_archived.required

Definition at line 60 of file ccz4_archived.py.

◆ select_dofs_to_print

ccz4_archived.select_dofs_to_print

Definition at line 979 of file ccz4_archived.py.

◆ solver_name

str ccz4_archived.solver_name = "CCZ4"

Definition at line 707 of file ccz4_archived.py.

◆ solverconstants

str ccz4_archived.solverconstants = ""

Definition at line 908 of file ccz4_archived.py.

◆ str

ccz4_archived.str

Definition at line 76 of file ccz4_archived.py.

◆ SuperClass

ccz4_archived.SuperClass = None

Definition at line 91 of file ccz4_archived.py.

◆ tem_interp

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

Definition at line 796 of file ccz4_archived.py.

◆ tem_restrict

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

Definition at line 797 of file ccz4_archived.py.

◆ TemplateHandleBoundary_KernelCalls

ccz4_archived.TemplateHandleBoundary_KernelCalls

Definition at line 859 of file ccz4_archived.py.

◆ throw_away_data_after_generation

ccz4_archived.throw_away_data_after_generation

Definition at line 1133 of file ccz4_archived.py.

◆ time_step_size

float ccz4_archived.time_step_size = 0.001

Definition at line 713 of file ccz4_archived.py.

◆ tracer_name

dict ccz4_archived.tracer_name = {1:"line", 2:"slide", 3:"volume", 6:"Gauss_Legendre_quadrature", 7:"t-design"}

Definition at line 1025 of file ccz4_archived.py.

◆ tracer_particles

ccz4_archived.tracer_particles = project.add_tracer( name="Tracer",attribute_count=61 )

Definition at line 996 of file ccz4_archived.py.

◆ True

ccz4_archived.True

Definition at line 68 of file ccz4_archived.py.

◆ type

ccz4_archived.type

Definition at line 60 of file ccz4_archived.py.

◆ Type

ccz4_archived.Type

Definition at line 1043 of file ccz4_archived.py.

◆ unknowns

int ccz4_archived.unknowns = 59

Definition at line 712 of file ccz4_archived.py.

◆ userinfo

list ccz4_archived.userinfo = []

main starts here

Definition at line 692 of file ccz4_archived.py.

◆ v

ccz4_archived.v

Definition at line 83 of file ccz4_archived.py.