Peano
Loading...
Searching...
No Matches
exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius Class Reference

Extension of the explicit Euler to support dynamic search radius adoption. More...

Inheritance diagram for exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius:
Collaboration diagram for exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius:

Public Member Functions

 __init__ (self, name, cfl_factor, initial_time_step_size, particle_particle_interaction_over_particle_sets_kernel="", touch_particles_of_set_first_time_kernel="", touch_particles_of_set_last_time_kernel="", number_of_interaction_partners=64, particles_per_cell=0, min_h=0.005, max_h=0.3)
 algorithm_steps (self)
 The explicit Euler basically consists of two steps per particle.
 initialisation_steps (self)
 No particular initialisation required.
Public Member Functions inherited from exaparty.api.particle.Particle.Particle
 __init__ (self, name, particles_per_cell, min_h, max_h)
 Initialise the particle.
 readme_descriptor (self)
 Create default readme descriptor.
Public Member Functions inherited from peano4.api.toolbox.particles.Particle.Particle
 __init__ (self, name)
 Constructor.
Public Member Functions inherited from peano4.api.datamodel.DaStGen2.DaStGen2
 __init__ (self, name)
 Construct a DaStGen2 object.
 configure (self, namespace, association, subdirectory="", temporary_subdirectory="")
 Configure output.
 additional_load_and_store_arguments (self)
 additional_load_and_store_arguments (self, new_arguments)
 hosts_smart_pointer_attribute (self)
 Does class host a smart pointer attribute.
Public Member Functions inherited from peano4.api.datamodel.DoF.DoF
 __init__ (self, name)
 Create a degree of freedom object.
 get_full_qualified_type (self)
 get_logical_type_name (self)
 What should the data type be called within the data repository, or within action sets.
 get_enumeration_type (self)
 What should the data type be called within the data repository.
 additional_load_and_store_arguments_for_other_dof (self, argument_name, use_dof_association=None)
 You can make Peano's store and load arguments of any DoF depend on other DoFs that you have loaded before.
 subnamespace (self)

Data Fields

 velocity = peano4.api.dastgen2.Peano4DoubleArray("v", "Dimensions")
 accelerator = peano4.api.dastgen2.Peano4DoubleArray("a", "Dimensions")
 cfl_factor = cfl_factor
 initial_time_step_size = initial_time_step_size
tuple particle_particle_interaction_over_particle_sets_kernel
tuple touch_particles_of_set_first_time_kernel
tuple touch_particles_of_set_last_time_kernel
 number_of_interaction_partners = number_of_interaction_partners
Data Fields inherited from exaparty.api.particle.Particle.Particle
 particles_per_cell = particles_per_cell
 min_h = min_h
 max_h = max_h
Data Fields inherited from peano4.api.toolbox.particles.Particle.Particle
 partid = dastgen2.attributes.Integer("partid", ifdefs=["PeanoDebug > 0"], initval="-1")
Data Fields inherited from peano4.api.datamodel.DaStGen2.DaStGen2
 generator = None
 data = dastgen2.DataModel(name)
 peano4_mpi_and_storage_aspect = peano4.api.dastgen2.MPIAndStorageAspect(peano4.api.datamodel.DoFAssociation.Undef)
Data Fields inherited from peano4.api.datamodel.DoF.DoF
 association = DoFAssociation.Undef
 name = name
list namespace = []
 grid_selector = None
 subdirectory = subdirectory
 temporary_subdirectory = temporary_subdirectory

Additional Inherited Members

Static Public Attributes inherited from exaparty.api.particle.Particle.Particle
str DependencyChecks_Attribute_Prefix = "dependencyChecks"
list DependencyChecks_Ifdefs = ["PeanoDebug > 0"]
Static Public Attributes inherited from peano4.api.datamodel.DaStGen2.DaStGen2
str readme_package_descriptor
Protected Member Functions inherited from exaparty.api.particle.Particle.Particle
 _dependency_checks_modify_steps (self, steplist, step_type_name, peano4_event_enum)
 Add dependency checks as well as mesh consistency checks to the algorithm steps.
 _add_dependency_checks (self)
 Add dependency (particle consistency) checks.
Protected Attributes inherited from exaparty.api.particle.Particle.Particle
 _algorithm_steps = modified_steps
 _initialisation_steps = modified_steps
Protected Attributes inherited from peano4.api.datamodel.DoF.DoF
list _additional_load_and_store_arguments = []

Detailed Description

Extension of the explicit Euler to support dynamic search radius adoption.

Attributes

Parameters
nameString To be in line with other conventions, I recommend you start with an uppercase letter. This has to be a valid C++ identifier, i.e. don't use any special symbols besides an underscore.
See also
exaparty.kernels.adoptSearchRadiusAndTriggerRerun()

Definition at line 11 of file ExplicitEulerDynamicSearchRadius.py.

Constructor & Destructor Documentation

◆ __init__()

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.__init__ ( self,
name,
cfl_factor,
initial_time_step_size,
particle_particle_interaction_over_particle_sets_kernel = "",
touch_particles_of_set_first_time_kernel = "",
touch_particles_of_set_last_time_kernel = "",
number_of_interaction_partners = 64,
particles_per_cell = 0,
min_h = 0.005,
max_h = 0.3 )

Definition at line 28 of file ExplicitEulerDynamicSearchRadius.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

◆ algorithm_steps()

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.algorithm_steps ( self)

The explicit Euler basically consists of two steps per particle.

We first determine the force. For this, we need access to the neighbours. The step solely alters the individual particle's state. In the next algorithm step, we need this state, as well as global data (the admissible time step size) to update position and velocity. We also determine the CFL condition here.

Reimplemented from exaparty.api.particle.Particle.Particle.

Definition at line 69 of file ExplicitEulerDynamicSearchRadius.py.

References cfl_factor, initial_time_step_size, convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, exahype2.api.dslhype2.Expressions.Variable.name, exahype2.api.dslhype2.Types.TFunction.name, exahype2.api.dslhype2.Types.TStruct.name, exahype2.api.PDETerm.PDETerm.name, exahype2.api.Solver.Solver.Plotter.name, exaparty.api.particle.AlgorithmStep.AlgorithmStep.name, peano4.api.datamodel.DoF.DoF.name, number_of_interaction_partners, touch_particles_of_set_first_time_kernel, and touch_particles_of_set_last_time_kernel.

Referenced by exaparty.api.particle.Particle.Particle._add_dependency_checks().

Here is the caller graph for this function:

◆ initialisation_steps()

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.initialisation_steps ( self)

No particular initialisation required.

Reimplemented from exaparty.api.particle.Particle.Particle.

Definition at line 158 of file ExplicitEulerDynamicSearchRadius.py.

Field Documentation

◆ accelerator

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.accelerator = peano4.api.dastgen2.Peano4DoubleArray("a", "Dimensions")

Definition at line 49 of file ExplicitEulerDynamicSearchRadius.py.

◆ cfl_factor

◆ initial_time_step_size

◆ number_of_interaction_partners

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.number_of_interaction_partners = number_of_interaction_partners

Definition at line 65 of file ExplicitEulerDynamicSearchRadius.py.

Referenced by algorithm_steps().

◆ particle_particle_interaction_over_particle_sets_kernel

tuple exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.particle_particle_interaction_over_particle_sets_kernel

◆ touch_particles_of_set_first_time_kernel

tuple exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.touch_particles_of_set_first_time_kernel

◆ touch_particles_of_set_last_time_kernel

tuple exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.touch_particles_of_set_last_time_kernel

◆ velocity

exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.velocity = peano4.api.dastgen2.Peano4DoubleArray("v", "Dimensions")

Definition at line 48 of file ExplicitEulerDynamicSearchRadius.py.


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