Peano
Loading...
Searching...
No Matches
solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep Class Reference
Inheritance diagram for solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep:
Collaboration diagram for solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep:

Public Member Functions

 __init__ (self, name, patch_size, unknowns, auxiliary_variables, min_volume_h, max_volume_h, normalised_time_step_size, initial_conditions=PDETerms.User_Defined_Implementation, boundary_conditions=PDETerms.User_Defined_Implementation, refinement_criterion=PDETerms.Empty_Implementation, flux=PDETerms.None_Implementation, ncp=PDETerms.None_Implementation, eigenvalues=PDETerms.None_Implementation, riemann_solver=PDETerms.User_Defined_Implementation, source_term=PDETerms.None_Implementation, plot_grid_properties=False, pde_terms_without_state=False, overlap=1)
 time_step_size: Float This is the normalised time step size w.r.t.
 set_implementation (self, initial_conditions=None, boundary_conditions=None, refinement_criterion=None, flux=None, ncp=None, eigenvalues=None, riemann_solver=None, source_term=None, memory_location=None, use_split_loop=False, additional_action_set_includes="", additional_user_includes="")
 If you pass in User_Defined, then the generator will create C++ stubs that you have to befill manually.
 user_action_set_includes (self)
 __str__ (self)

Protected Attributes

 _normalised_time_step_size = normalised_time_step_size
 _flux_implementation = PDETerms.None_Implementation
 _ncp_implementation = PDETerms.None_Implementation
 _eigenvalues_implementation = PDETerms.None_Implementation
 _riemann_solver_implementation = PDETerms.None_Implementation
 _source_term_implementation = PDETerms.None_Implementation
bool _compute_eigenvalue = False
 _initial_conditions_implementation = initial_conditions
 _boundary_conditions_implementation = boundary_conditions
 _refinement_criterion_implementation = refinement_criterion
 _reconstructed_array_memory_location = memory_location
 _use_split_loop = use_split_loop
 _compute_kernel_call
 _compute_kernel_call_stateless
 _abstract_solver_user_declarations
 _abstract_solver_user_definitions
 _solver_user_declarations
 _solver_user_definitions
tuple _compute_time_step_size
tuple _compute_new_time_step_size
tuple _start_time_step_implementation
tuple _finish_time_step_implementation
tuple _constructor_implementation

Static Private Attributes

 __repr__ = __str__

Detailed Description

Definition at line 15 of file GlobalFixedTimeStep.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.__init__ ( self,
name,
patch_size,
unknowns,
auxiliary_variables,
min_volume_h,
max_volume_h,
normalised_time_step_size,
initial_conditions = PDETerms.User_Defined_Implementation,
boundary_conditions = PDETerms.User_Defined_Implementation,
refinement_criterion = PDETerms.Empty_Implementation,
flux = PDETerms.None_Implementation,
ncp = PDETerms.None_Implementation,
eigenvalues = PDETerms.None_Implementation,
riemann_solver = PDETerms.User_Defined_Implementation,
source_term = PDETerms.None_Implementation,
plot_grid_properties = False,
pde_terms_without_state = False,
overlap = 1 )

time_step_size: Float This is the normalised time step size w.r.t.

the coarsest admissible h value. If the code employs AMR on top of it and refines further, it will automatically downscale the time step size accordingly. So hand in a valid time step size w.r.t. to max_volume_h.

Definition at line 16 of file GlobalFixedTimeStep.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ __str__()

◆ set_implementation()

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.set_implementation ( self,
initial_conditions = None,
boundary_conditions = None,
refinement_criterion = None,
flux = None,
ncp = None,
eigenvalues = None,
riemann_solver = None,
source_term = None,
memory_location = None,
use_split_loop = False,
additional_action_set_includes = "",
additional_user_includes = "" )

If you pass in User_Defined, then the generator will create C++ stubs that you have to befill manually.

If you pass in None_Implementation, it will create nop, i.e., no implementation or defaults. Any other string is copied 1:1 into the implementation. If you pass in None, then the set value so far won't be overwritten.

Please note that not all options are supported by all solvers.

This routine should be the very last invoked by the constructor.

Definition at line 77 of file GlobalFixedTimeStep.py.

◆ user_action_set_includes()

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.user_action_set_includes ( self)

Field Documentation

◆ __repr__

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.__repr__ = __str__
staticprivate

Definition at line 249 of file GlobalFixedTimeStep.py.

◆ _abstract_solver_user_declarations

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._abstract_solver_user_declarations
protected
Initial value:
= create_abstract_solver_declarations(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
pde_terms_without_state=self._pde_terms_without_state,
)

Definition at line 162 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _abstract_solver_user_definitions

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._abstract_solver_user_definitions
protected
Initial value:
= create_abstract_solver_definitions(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
pde_terms_without_state=self._pde_terms_without_state,
)

Definition at line 173 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _boundary_conditions_implementation

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._boundary_conditions_implementation = boundary_conditions
protected

◆ _compute_eigenvalue

bool solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._compute_eigenvalue = False
protected

◆ _compute_kernel_call

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._compute_kernel_call
protected
Initial value:
= create_compute_Riemann_kernel(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step=self._compute_eigenvalue,
solver_variant=SolverVariant.WithVirtualFunctions,
kernel_variant=KernelVariant.PatchWiseAoS,
)

Definition at line 124 of file GlobalFixedTimeStep.py.

◆ _compute_kernel_call_stateless

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._compute_kernel_call_stateless
protected
Initial value:
= create_compute_Riemann_kernel(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step=self._compute_eigenvalue,
solver_variant=SolverVariant.Stateless,
kernel_variant=KernelVariant.PatchWiseAoS,
)

Definition at line 135 of file GlobalFixedTimeStep.py.

◆ _compute_new_time_step_size

tuple solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._compute_new_time_step_size
protected
Initial value:
= (
solver_code_snippets.create_compute_new_time_step_size()
)

Definition at line 205 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _compute_time_step_size

tuple solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._compute_time_step_size
protected
Initial value:
= (
solver_code_snippets.create_compute_time_step_size()
)

Definition at line 202 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _constructor_implementation

tuple solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._constructor_implementation
protected
Initial value:
= (
solver_code_snippets.create_abstract_solver_constructor_statements()
)

Definition at line 215 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _eigenvalues_implementation

◆ _finish_time_step_implementation

tuple solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._finish_time_step_implementation
protected
Initial value:
= (
solver_code_snippets.create_finish_time_step_implementation()
)

Definition at line 212 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _flux_implementation

◆ _initial_conditions_implementation

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._initial_conditions_implementation = initial_conditions
protected

◆ _ncp_implementation

◆ _normalised_time_step_size

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._normalised_time_step_size = normalised_time_step_size
protected

◆ _reconstructed_array_memory_location

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._reconstructed_array_memory_location = memory_location
protected

Definition at line 120 of file GlobalFixedTimeStep.py.

◆ _refinement_criterion_implementation

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._refinement_criterion_implementation = refinement_criterion
protected

◆ _riemann_solver_implementation

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._riemann_solver_implementation = PDETerms.None_Implementation
protected

◆ _solver_user_declarations

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._solver_user_declarations
protected
Initial value:
= create_solver_declarations(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
pde_terms_without_state=self._pde_terms_without_state,
)

Definition at line 185 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _solver_user_definitions

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._solver_user_definitions
protected
Initial value:
= create_solver_definitions(
flux_implementation=self._flux_implementation,
ncp_implementation=self._ncp_implementation,
eigenvalues_implementation=self._eigenvalues_implementation,
riemann_solver_implementation=self._riemann_solver_implementation,
source_term_implementation=self._source_term_implementation,
pde_terms_without_state=self._pde_terms_without_state,
)

Definition at line 193 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _source_term_implementation

◆ _start_time_step_implementation

tuple solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._start_time_step_implementation
protected
Initial value:
= (
solver_code_snippets.create_start_time_step_implementation()
)

Definition at line 209 of file GlobalFixedTimeStep.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters().

◆ _use_split_loop

solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._use_split_loop = use_split_loop
protected

Definition at line 122 of file GlobalFixedTimeStep.py.


The documentation for this class was generated from the following file: