Base class for any particle in the project.
The SPH particle base class.
h_max_iterations(self)
Max number of iterations to adapt the SPH smoothing length.
_setup_initialisation_steps(self)
Define the algorithm steps to be taken during initialization here.
h_hydro_min(self)
Set the limits allowed for the SPH smoothing length.
__init__(self, name, dimensions_hydro=2, cfl_factor=0.1, initial_time_step_size=1e-4, constant_time_step_size=True, swift_project_namespace="SPH", particles_per_cell=0, min_h=0.3, max_h=0.3)
Initialise the particle.
eta_factor(self)
Set the eta factor used by the SPH kernel to target a certain number of neighbour particles.
get_cpp_namespace_from_project_namespace(self)
Transform namespace into cpp format.
h_tolerance(self)
Tolerance for Newton-Raphson convergence criterion.
algorithm_steps(self)
Return algorithm steps: A list of AlgorithmStep objects to be executed in that order for this particl...
_setup_algorithm_steps(self)
Set up the internal list of algorithm steps for this particle.
mantissa_size(self)
Set the mantissa size of doubles and Peano double arrays if we want to use reduced precission via Cla...
initialisation_steps(self)
Return the list of algorithm steps to be executed during initialisation.
hydro_dimensions(self)
Forbid users to modify hydro dimensions on-the-fly.
set_parameters(self)
This function translates "global" particle parameters which are constant throughout the simulation (l...
switch_namespace_of_all_particle_iterators(self, new_namespace, old_namespace="::swift2::kernels::")
Switch the prefix (namespace) of all particle iterators.