|
Peano
|
First-order CCZ4 and an advected scalar field with one numerical scheme for both. More...
Public Member Functions | |
| __init__ (self, str ccz4_name="CCZ4", str scalar_field_name="ScalarField") | |
| str | name (self) |
| solvers (self) | |
| The solvers the project has to register; exahype2.api.Project.add_solver() asks for them. | |
| numerical_scheme (self) | |
| The generator, i.e. | |
| numerical_scheme (self, generator) | |
| Attach the generator of the coupled system. | |
| generate_solver_realisation (self, exahype2_project, peano_project, setup_simulation, time_step, plot, mesh_adaptation) | |
| Let the generator build the task graph of the coupled system and add it to the project's graphs. | |
Data Fields | |
| ccz4 = FOCCZ4Solver(ccz4_name) | |
| ccz4_auxiliary_copies | |
| scalar_field = ScalarField(scalar_field_name, self.ccz4_auxiliary_copies) | |
| solvers | |
| name | |
Protected Attributes | |
| str | _name = f"{ccz4_name}With{scalar_field_name}" |
| _numerical_scheme = None | |
First-order CCZ4 and an advected scalar field with one numerical scheme for both.
In an inner coupling, the numerical scheme sits in the coupled solver, i.e. in this class. The two aggregated solvers hold no numerical scheme of their own, and the user must not assign one to them. Instead, the user attaches a "generator" (a numerical scheme of the coupled system) to the coupled solver:
coupled = exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling() coupled.numerical_scheme = exagrype.api.scalarfield.RungeKuttaFD4InnerAdditive(patch_size=9, rk_order=4)
There are four generators, one for each combination of Finite Volumes (explicit Euler) or Runge-Kutta with fourth-order Finite Differences, and of multiplicative or additive coupling. They exchange the data in each stage of the time integrator, i.e. both solvers advance the same stage, and the solvers see each other's data of the same time level. This gives the time integration order of the scheme: the lapse that the scalar field sees in stage k is the lapse of the stage input of CCZ4. The generators build the whole task graph of the combination, see exagrype.api.scalarfield.InnerCouplingGenerator.
Grid construction and plotters are not part of a generator, they are assigned to the solvers (host.ccz4, host.scalar_field) as always. The coupling is one-directional (fake coupling): CCZ4 does not see the field. The auxiliary variables of the scalar field hold the CCZ4 fields and change in each stage (exahype2.api.AuxiliaryVariables.Mode.CHANGING_ON_FACES).
Definition at line 12 of file CCZ4WithScalarField_InnerCoupling.py.
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.__init__ | ( | self, | |
| str | ccz4_name = "CCZ4", | ||
| str | scalar_field_name = "ScalarField" ) |
| ccz4_name | str Name of the CCZ4 solver. |
| scalar_field_name | str Name of the scalar field solver. |
Definition at line 44 of file CCZ4WithScalarField_InnerCoupling.py.
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.generate_solver_realisation | ( | self, | |
| exahype2_project, | |||
| peano_project, | |||
| setup_simulation, | |||
| time_step, | |||
| plot, | |||
| mesh_adaptation ) |
Let the generator build the task graph of the coupled system and add it to the project's graphs.
The arguments are those of exahype2.api.Solver.generate_solver_realisation().
Definition at line 98 of file CCZ4WithScalarField_InnerCoupling.py.
| str exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name | ( | self | ) |
Definition at line 66 of file CCZ4WithScalarField_InnerCoupling.py.
References dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, and _name.
Referenced by exagrype.api.CCZ4SolverBase.CCZ4SolverBase._insert_constraint_enforcement(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase._tasks_of_this_solver(), and exagrype.api.FOSOReconstructionSolver.FOSOReconstructionSolver.create_task_graph().

| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.numerical_scheme | ( | self | ) |
The generator, i.e.
the numerical scheme of the coupled system
Definition at line 75 of file CCZ4WithScalarField_InnerCoupling.py.
References exagrype.api.FOSOSolver.FOSOSolver._numerical_scheme, and _numerical_scheme.
Referenced by exagrype.api.CCZ4SolverBase.CCZ4SolverBase.generate_solver_realisation(), and exagrype.api.CCZ4SolverBase.CCZ4SolverBase.ncp_adds_advection().

| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.numerical_scheme | ( | self, | |
| generator ) |
Attach the generator of the coupled system.
The aggregated solvers must not hold a numerical scheme of their own yet: the generator installs the building blocks on the solvers itself.
Definition at line 80 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by exagrype.api.CCZ4SolverBase.CCZ4SolverBase.generate_solver_realisation(), and exagrype.api.CCZ4SolverBase.CCZ4SolverBase.ncp_adds_advection().

| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.solvers | ( | self | ) |
The solvers the project has to register; exahype2.api.Project.add_solver() asks for them.
Definition at line 70 of file CCZ4WithScalarField_InnerCoupling.py.
References exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.ccz4, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.ccz4, exagrype.api.FOSOReconstructionSolver.FOSOReconstructionSolver.ccz4, exagrype.api.FOSOSolver.FOSOSolver.ccz4, ccz4, and scalar_field.
|
protected |
Definition at line 62 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by api.Tree.Tree.__str__(), exahype2.api.Solver.Solver.__str__(), solvers.aderdg.ADERDG.ADERDG.__str__(), solvers.api.Solver.Solver.__str__(), solvers.elliptic.AMRMarker.AMRMarker.__str__(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.__str__(), solvers.fv.FV.FV.__str__(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.__str__(), solvers.fv.EnclaveTasking.EnclaveTasking._enclave_task_name(), solvers.aderdg.ADERDG.ADERDG._generate_kernels(), solvers.aderdg.ADERDG.ADERDG._init_dictionary_with_default_parameters(), solvers.fv.FV.FV._init_dictionary_with_default_parameters(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters(), solvers.aderdg.ADERDG.ADERDG._interpolate_face_data_default_guard(), solvers.aderdg.SingleSweep.SingleSweep._interpolate_face_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._load_cell_data_default_guard(), solvers.fv.FV.FV._load_cell_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._load_cell_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._load_face_data_default_guard(), solvers.fv.FV.FV._load_face_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._load_face_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._provide_cell_data_to_compute_kernels_default_guard(), solvers.fv.FV.FV._provide_cell_data_to_compute_kernels_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._provide_cell_data_to_compute_kernels_default_guard(), solvers.aderdg.ADERDG.ADERDG._provide_face_data_to_compute_kernels_default_guard(), solvers.fv.FV.FV._provide_face_data_to_compute_kernels_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._provide_face_data_to_compute_kernels_default_guard(), solvers.aderdg.SingleSweep.SingleSweep._restrict_face_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._store_boundary_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._store_cell_data_default_guard(), solvers.fv.FV.FV._store_cell_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._store_cell_data_default_guard(), solvers.aderdg.ADERDG.ADERDG._store_face_data_default_guard(), solvers.fv.FV.FV._store_face_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._store_face_data_default_guard(), exahype2.api.Solver.Solver._unknown_identifier(), solvers.aderdg.ADERDG.ADERDG._unknown_identifier(), solvers.elliptic.AMRMarker.AMRMarker._unknown_identifier(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells._unknown_identifier(), solvers.fv.FV.FV._unknown_identifier(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._unknown_identifier(), solvers.fv.FV.FV.add_actions_to_checkpoint_solution(), solvers.fv.EnclaveTasking.EnclaveTasking.add_actions_to_create_grid(), solvers.fv.EnclaveTasking.EnclaveTasking.add_actions_to_init_grid(), solvers.aderdg.ADERDG.ADERDG.add_actions_to_plot_solution(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.add_actions_to_plot_solution(), solvers.fv.FV.FV.add_actions_to_plot_solution(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.add_actions_to_plot_solution(), solvers.fv.EnclaveTasking.EnclaveTasking.add_entries_to_text_replacement_dictionary(), solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.add_entries_to_text_replacement_dictionary(), api.solvers.CollocatedLowOrderDiscretisation.CollocatedLowOrderDiscretisation.add_implementation_files_to_project(), api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation.add_implementation_files_to_project(), solvers.aderdg.ADERDG.ADERDG.add_implementation_files_to_project(), solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi.add_implementation_files_to_project(), solvers.api.CollocatedMG.CollocatedMG.add_implementation_files_to_project(), solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_implementation_files_to_project(), solvers.elliptic.AMRMarker.AMRMarker.add_to_Peano4_datamodel(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.add_to_Peano4_datamodel(), api.solvers.CollocatedLowOrderDiscretisation.CollocatedLowOrderDiscretisation.add_to_plot(), exahype2.api.AuxiliaryVariables.AuxiliaryVariables.argument_name(), solvers.aderdg.SingleSweep.SingleSweep.create_action_sets(), solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.create_action_sets(), solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking.create_action_sets(), solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep.create_action_sets(), solvers.fv.rusanov.SubcyclingFixedTimeStepWithEnclaveTasking.SubcyclingFixedTimeStepWithEnclaveTasking.create_action_sets(), solvers.rkdg.SeparateSweeps.SeparateSweeps.create_action_sets(), solvers.fv.SingleSweep.SingleSweep.create_data_structures(), exahype2.api.AuxiliaryVariables.AuxiliaryVariables.delta_argument_name(), exahype2.api.Solver.Solver.get_name_of_global_instance(), solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance(), solvers.elliptic.AMRMarker.AMRMarker.get_name_of_global_instance(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.get_name_of_global_instance(), solvers.fv.FV.FV.get_name_of_global_instance(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.get_name_of_global_instance(), exahype2.api.Solver.Solver.get_name_of_solver_class(), api.solvers.Solver.Solver.name(), name(), exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name(), exahype2.api.AuxiliaryVariables.AuxiliaryVariables.name(), exahype2.api.Solver.Solver.name(), solvers.api.Solver.Solver.name(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.name(), solvers.fv.FV.FV.name(), api.solvers.Solver.Solver.typename(), and solvers.api.Solver.Solver.typename().
|
protected |
Definition at line 63 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by numerical_scheme(), exahype2.api.Solver.Solver.numerical_scheme(), and exahype2.api.Solver.Solver.numerical_scheme().
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.ccz4 = FOCCZ4Solver(ccz4_name) |
Definition at line 54 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by solvers(), and exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.solvers().
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.ccz4_auxiliary_copies |
Definition at line 55 of file CCZ4WithScalarField_InnerCoupling.py.
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name |
Definition at line 114 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by solvers.aderdg.kernels.Gemms.Gemms.__init__(), solvers.aderdg.kernels.Gemms.Gemms.__repr__(), test_derive_load_store_compute_flag._FakeSubmodel.__repr__(), test_propagate_use_statements._FakeSubmodel.__repr__(), exaparty.api.particle.ExplicitEulerFixedSearchRadius.ExplicitEulerFixedSearchRadius.__setup_algorithm_steps(), exaparty.api.particle.AlgorithmStep.AlgorithmStep.__str__(), exahype2.api.Solver.Solver.Plotter._add_time_interval_bookkeeping_to_solver(), exaparty.api.particle.Particle.Particle._dependency_checks_modify_steps(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase._insert_constraint_enforcement(), exaparty.api.particle.LeapfrogFixedSearchRadius.LeapfrogFixedSearchRadius._setup_algorithm_steps_dict(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase._tasks_of_this_solver(), peano4.api.datamodel.DoF.DoF.additional_load_and_store_arguments_for_other_dof(), exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.algorithm_steps(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.algorithm_steps(), exaparty.api.particle.tests.DisappearingParticleTest.DisappearingParticleTest.algorithm_steps(), exaparty.api.particle.tests.testLeapfrogFixedTimeStepSize.testLeapfrogFixedTimeStepSize.algorithm_steps(), exahype2.api.dslhype2.Expressions.Variable.convert_indices_to_integers(), exahype2.api.dslhype2.Expressions.Variable.convert_integers_to_indices(), exahype2.api.Solver.Solver.Plotter.create_finish_call(), exahype2.api.Solver.Solver.Plotter.create_is_active_predicate(), exagrype.api.FOSOReconstructionSolver.FOSOReconstructionSolver.create_task_graph(), peano4.api.solversteps.UserActionSet.UserActionSet.get_action_set_name(), peano4.api.taskgraph.compiler.fuse-steps-illustrations._IllustrationActionSet.get_action_set_name(), test_fuse_steps._FakeActionSet.get_action_set_name(), peano4.api.datamodel.DoF.DoF.get_full_qualified_type(), peano4.api.datamodel.DoF.DoF.get_logical_type_name(), exahype2.api.dslhype2.Expressions.Variable.get_name(), peano4.api.solversteps.Step.Step.get_observer_class_name(), dastgen2.attributes.Enumeration.Enumeration.get_to_string(), exahype2.api.dslhype2.Expressions.Variable.get_type(), exahype2.api.dslhype2.Expressions.Variable.get_value(), and exaparty.api.particle.Particle.Particle.readme_descriptor().
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.scalar_field = ScalarField(scalar_field_name, self.ccz4_auxiliary_copies) |
Definition at line 61 of file CCZ4WithScalarField_InnerCoupling.py.
Referenced by solvers(), and exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.solvers().
| exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.solvers |
Definition at line 89 of file CCZ4WithScalarField_InnerCoupling.py.