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
218 std::vector<int> partners);
252 int integrate(
int n_steps,
int reuse_forces);
255 bool update_accumulators);
336#ifdef ESPRESSO_COLLISION_DETECTION
341 std::shared_ptr<Accumulators::AutoUpdateAccumulators>
345#ifdef ESPRESSO_STOKESIAN_DYNAMICS
349 std::shared_ptr<NptIsoParameters>
nptiso;
373#ifdef ESPRESSO_ELECTROSTATICS
377#ifdef ESPRESSO_THERMAL_STONER_WOHLFARTH
386 void integrator_sanity_checks()
const;
390void set_system(std::shared_ptr<System> new_instance);
CellStructureType
Cell structure topology.
Vector implementation and trait types for boost qvm interoperability.
container for bonded interactions.
Describes a cell structure / cell system.
Particle data communication manager for the GPU.
Observable for the pressure and energy.
Queue to deallocate resources before normal program termination.
void on_periodicity_change()
std::shared_ptr< PressureObservable > m_obs_pressure
double particle_short_range_energy_contribution(int pid)
Compute the short-range energy of a particle.
void on_constraint_change()
Called every time a constraint is changed.
auto get_time_step() const
Get time_step.
void on_cell_structure_change()
std::shared_ptr< StokesianDynamics > stokesian_dynamics
std::shared_ptr< LeesEdwards::LeesEdwards > lees_edwards
double sim_time
Molecular dynamics integrator simulation time.
void on_boxl_change(bool skip_method_adaption=false)
Called when the box length has changed.
void update_used_propagations()
Update the global propagation bitmask.
std::shared_ptr< LocalBox > local_geo
std::shared_ptr< BondedInteractionsMap > bonded_ias
void on_temperature_change()
double min_global_cut
Minimal global interaction cutoff.
auto get_min_global_cut() const
Get min_global_cut.
void on_thermostat_param_change()
void on_lees_edwards_change()
bool reinit_thermo
Whether the thermostat has to be reinitialized before integration.
void on_integration_start()
int integrate_with_signal_handler(int n_steps, int reuse_forces, bool update_accumulators)
std::shared_ptr< ImmersedBoundaries > immersed_boundaries
std::shared_ptr< Accumulators::AutoUpdateAccumulators > auto_update_accumulators
std::shared_ptr< ComFixed > comfixed
void on_non_bonded_ia_change()
std::shared_ptr< BondBreakage::BondBreakage > bond_breakage
void on_verlet_skin_change()
std::shared_ptr< CollisionDetection::CollisionDetection > collision_detection
void integrate_magnetodynamics()
Run magnetodynamics update for local virtual particles.
void update_dependent_particles()
Update particles with properties depending on other particles, namely virtual sites and ICC charges.
std::optional< double > particle_bond_energy(int pid, int bond_id, std::vector< int > partners)
Compute the energy of a given bond which has to exist on the given particle.
std::shared_ptr< InstantaneousPressure > npt_inst_pressure
void on_lb_boundary_conditions_change()
Called when the LB boundary conditions change (geometry, slip velocity, or both).
void veto_boxl_change(bool skip_particle_checks=false) const
std::shared_ptr< OifGlobal > oif_global
void on_particle_change()
Called every time a particle property changes.
std::shared_ptr< NptIsoParameters > nptiso
void on_node_grid_change()
double force_cap
Molecular dynamics integrator force capping.
void on_particle_charge_change()
Called every time a particle charge changes.
ResourceCleanup cleanup_queue
std::shared_ptr< Propagation > propagation
void on_particle_local_change()
Called every time a particle local property changes.
double time_step
Molecular dynamics integrator time step.
void calculate_long_range_fields()
Calculate dipole fields.
void on_observable_calc()
called before calculating observables, i.e.
void update_icc_particles()
std::shared_ptr< SteepestDescent > steepest_descent
int integrate(int n_steps, int reuse_forces)
Integrate equations of motion.
std::shared_ptr< GpuParticleData > gpu
void on_timestep_change()
void check_kT(double value) const
Veto temperature change.
std::shared_ptr< Thermostat::Thermostat > thermostat
void lb_couple_particles()
Calculate particle-lattice interactions.
static std::shared_ptr< System > create()
std::shared_ptr< CellStructure > cell_structure
std::shared_ptr< Constraints::Constraints > constraints
bool has_icc_enabled() const
std::shared_ptr< EnergyObservable > m_obs_energy
auto get_force_cap() const
Get force_cap.
auto get_sim_time() const
Get sim_time.
std::shared_ptr< BoxGeometry > box_geo
void on_short_range_ia_change()
std::shared_ptr< Galilei > galilei
std::shared_ptr< InteractionsNonBonded > nonbonded_ias
bool has_collision_detection_enabled() const
bool is_same_system(System const *const system)
void set_system(std::shared_ptr< System > new_instance)
Instantaneous pressure during force calculation for NPT integration.
Parameters of the isotropic NpT-integration scheme.
Steepest descent algorithm.