87class System :
public std::enable_shared_from_this<System> {
95 static std::shared_ptr<System> create();
98 std::shared_ptr<GpuParticleData>
gpu;
106 void set_time_step(
double value);
112 void set_sim_time(
double value);
118 void set_force_cap(
double value);
124 void set_min_global_cut(
double value);
134 void tune_verlet_skin(
double min_skin,
double max_skin,
double tol,
135 int int_steps,
bool adjust_max_skin);
141 void rebuild_cell_structure();
142 void rebuild_aosoa();
145 double maximal_cutoff()
const;
148 double get_interaction_range()
const;
150 unsigned get_global_ghost_flags()
const;
158 unsigned get_force_reduce_ghost_flags()
const;
163 bool long_range_interactions_sanity_checks()
const;
173 void synchronize_npt_state();
175 void npt_ensemble_init(
bool recalc_forces);
176 void npt_add_virial_contribution(
double energy);
177 bool has_npt_enabled()
const;
182 void calculate_forces();
184#ifdef ESPRESSO_DIPOLE_FIELD_TRACKING
189#ifdef ESPRESSO_COLLISION_DETECTION
190 bool has_collision_detection_enabled()
const;
202 double particle_short_range_energy_contribution(
int pid);
217 std::optional<double> particle_bond_energy(
int pid,
int bond_id,
218 std::vector<int> partners);
252 int integrate(
int n_steps,
int reuse_forces);
254 int integrate_with_signal_handler(
int n_steps,
int reuse_forces,
255 bool update_accumulators);
258 void lb_couple_particles();
273 void on_boxl_change(
bool skip_method_adaption =
false);
274 void on_node_grid_change();
275 void on_periodicity_change();
276 void on_cell_structure_change();
277 void on_thermostat_param_change();
278 void on_temperature_change();
279 void on_verlet_skin_change();
280 void on_timestep_change();
281 void on_integration_start();
282 void on_short_range_ia_change();
283 void on_non_bonded_ia_change();
284 void on_coulomb_change();
285 void on_dipoles_change();
287 void on_constraint_change();
291 void on_lb_boundary_conditions_change();
293 void on_particle_local_change();
295 void on_particle_change();
297 void on_particle_charge_change();
302 void on_observable_calc();
303 void on_lees_edwards_change();
304 void veto_boxl_change(
bool skip_particle_checks =
false)
const;
311 void update_dependent_particles();
315 void update_used_propagations();
319 void check_kT(
double value)
const;
336#ifdef ESPRESSO_COLLISION_DETECTION
341 std::shared_ptr<Accumulators::AutoUpdateAccumulators>
345#ifdef ESPRESSO_STOKESIAN_DYNAMICS
349 std::shared_ptr<NptIsoParameters>
nptiso;
372 void update_local_geo();
373#ifdef ESPRESSO_ELECTROSTATICS
374 void update_icc_particles();
375 bool has_icc_enabled()
const;
377#ifdef ESPRESSO_THERMAL_STONER_WOHLFARTH
378 void integrate_magnetodynamics();
386 void integrator_sanity_checks()
const;
Particle data communication manager for the GPU.