ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Particle Struct Reference

Struct holding all information for one particle. More...

#include <Particle.hpp>

Public Member Functions

constexpr auto constid () const
 
constexpr autoid ()
 
constexpr auto constmol_id () const
 
constexpr automol_id ()
 
constexpr auto consttype () const
 
constexpr autotype ()
 
constexpr auto constpropagation () const
 
constexpr autopropagation ()
 
constexpr bool operator== (Particle const &rhs) const
 
constexpr bool operator!= (Particle const &rhs) const
 
constexpr auto constbonds () const
 
constexpr autobonds ()
 
constexpr auto constpos () const
 
constexpr autopos ()
 
constexpr auto constv () const
 
constexpr autov ()
 
constexpr auto constforce () const
 
constexpr autoforce ()
 
constexpr auto constforce_and_torque () const
 
constexpr autoforce_and_torque ()
 
constexpr bool is_ghost () const
 
constexpr void set_ghost (bool const ghost_flag)
 
constexpr autopos_at_last_verlet_update ()
 
constexpr auto constpos_at_last_verlet_update () const
 
constexpr auto constimage_box () const
 
constexpr autoimage_box ()
 
constexpr auto constlees_edwards_offset () const
 
constexpr autolees_edwards_offset ()
 
constexpr auto constlees_edwards_flag () const
 
constexpr autolees_edwards_flag ()
 
constexpr auto constmass () const
 
constexpr automass ()
 
constexpr auto constrotation () const
 
constexpr autorotation ()
 
constexpr bool can_rotate () const
 
constexpr bool can_rotate_around (unsigned int const axis) const
 
constexpr void set_can_rotate_around (unsigned int const axis, bool const rot_flag)
 
constexpr void set_can_rotate_all_axes ()
 
constexpr void set_cannot_rotate_all_axes ()
 
constexpr auto constquat () const
 
constexpr autoquat ()
 
constexpr auto consttorque () const
 
constexpr autotorque ()
 
constexpr auto constomega () const
 
constexpr autoomega ()
 
constexpr auto constext_torque () const
 
constexpr autoext_torque ()
 
constexpr auto calc_director () const
 
constexpr auto constdipm () const
 
constexpr autodipm ()
 
constexpr auto calc_dip () const
 
constexpr auto conststoner_wohlfarth_is_enabled () const
 
constexpr autostoner_wohlfarth_is_enabled ()
 
constexpr auto conststoner_wohlfarth_phi_0 () const
 
constexpr autostoner_wohlfarth_phi_0 ()
 
constexpr auto constsaturation_magnetization () const
 
constexpr autosaturation_magnetization ()
 
constexpr auto constmagnetic_anisotropy_field_inv () const
 
constexpr automagnetic_anisotropy_field_inv ()
 
constexpr auto constmagnetic_anisotropy_energy () const
 
constexpr automagnetic_anisotropy_energy ()
 
constexpr auto conststoner_wohlfarth_tau0_inv () const
 
constexpr autostoner_wohlfarth_tau0_inv ()
 
constexpr auto conststoner_wohlfarth_dt_incr () const
 
constexpr autostoner_wohlfarth_dt_incr ()
 
constexpr auto constdip_fld () const
 
constexpr autodip_fld ()
 
constexpr auto constrinertia () const
 
constexpr autorinertia ()
 
constexpr auto constq () const
 
constexpr autoq ()
 
constexpr auto constmu_E () const
 
constexpr automu_E ()
 
constexpr auto is_virtual () const
 
constexpr auto constvs_relative () const
 
constexpr autovs_relative ()
 
constexpr auto constgamma () const
 
constexpr autogamma ()
 
constexpr auto constgamma_rot () const
 
constexpr autogamma_rot ()
 
constexpr auto constfixed () const
 
constexpr autofixed ()
 
constexpr bool has_fixed_coordinates () const
 
constexpr bool is_fixed_along (unsigned int const axis) const
 
constexpr void set_fixed_along (int const axis, bool const fixed_flag)
 
constexpr auto constext_force () const
 
constexpr autoext_force ()
 
constexpr auto constswimming () const
 
constexpr autoswimming ()
 
constexpr auto constpos_last_time_step () const
 
constexpr autopos_last_time_step ()
 
constexpr auto constrattle_params () const
 
constexpr autorattle_params ()
 
constexpr auto constrattle_correction () const
 
constexpr autorattle_correction ()
 
Utils::compact_vector< int > & exclusions ()
 
Utils::compact_vector< int > constexclusions () const
 
bool has_exclusion (int pid) const
 

Detailed Description

Struct holding all information for one particle.

Definition at line 436 of file Particle.hpp.

Member Function Documentation

◆ bonds() [1/2]

constexpr auto & Particle::bonds ( )
inlineconstexpr

Definition at line 474 of file Particle.hpp.

◆ bonds() [2/2]

◆ calc_dip()

◆ calc_director()

constexpr auto Particle::calc_director ( ) const
inlineconstexpr

◆ can_rotate()

◆ can_rotate_around()

constexpr bool Particle::can_rotate_around ( unsigned int const  axis) const
inlineconstexpr

◆ dip_fld() [1/2]

constexpr auto & Particle::dip_fld ( )
inlineconstexpr

Definition at line 591 of file Particle.hpp.

References ParticleProperties::dip_fld.

◆ dip_fld() [2/2]

◆ dipm() [1/2]

constexpr auto & Particle::dipm ( )
inlineconstexpr

Definition at line 544 of file Particle.hpp.

References ParticleProperties::dipm.

◆ dipm() [2/2]

◆ exclusions() [1/2]

◆ exclusions() [2/2]

Utils::compact_vector< int > const & Particle::exclusions ( ) const
inline

Definition at line 667 of file Particle.hpp.

◆ ext_force() [1/2]

constexpr auto & Particle::ext_force ( )
inlineconstexpr

Definition at line 647 of file Particle.hpp.

References ParticleProperties::ext_force.

◆ ext_force() [2/2]

constexpr auto const & Particle::ext_force ( ) const
inlineconstexpr

◆ ext_torque() [1/2]

constexpr auto & Particle::ext_torque ( )
inlineconstexpr

Definition at line 535 of file Particle.hpp.

References ParticleProperties::ext_torque.

◆ ext_torque() [2/2]

constexpr auto const & Particle::ext_torque ( ) const
inlineconstexpr

◆ fixed() [1/2]

constexpr auto & Particle::fixed ( )
inlineconstexpr

Definition at line 630 of file Particle.hpp.

References ParticleProperties::ext_flag.

◆ fixed() [2/2]

constexpr auto const & Particle::fixed ( ) const
inlineconstexpr

◆ force() [1/2]

constexpr auto & Particle::force ( )
inlineconstexpr

Definition at line 481 of file Particle.hpp.

References ParticleForce::f.

◆ force() [2/2]

◆ force_and_torque() [1/2]

constexpr auto & Particle::force_and_torque ( )
inlineconstexpr

Definition at line 483 of file Particle.hpp.

◆ force_and_torque() [2/2]

constexpr auto const & Particle::force_and_torque ( ) const
inlineconstexpr

Definition at line 482 of file Particle.hpp.

Referenced by CellStructure::ghosts_reset_forces(), and init_forces_and_thermostat().

◆ gamma() [1/2]

constexpr auto & Particle::gamma ( )
inlineconstexpr

Definition at line 622 of file Particle.hpp.

References ParticleProperties::gamma.

◆ gamma() [2/2]

◆ gamma_rot() [1/2]

constexpr auto & Particle::gamma_rot ( )
inlineconstexpr

Definition at line 625 of file Particle.hpp.

References ParticleProperties::gamma_rot.

◆ gamma_rot() [2/2]

◆ has_exclusion()

bool Particle::has_exclusion ( int  pid) const
inline

◆ has_fixed_coordinates()

constexpr bool Particle::has_fixed_coordinates ( ) const
inlineconstexpr

Definition at line 631 of file Particle.hpp.

References ParticleProperties::ext_flag.

◆ id() [1/2]

constexpr auto & Particle::id ( )
inlineconstexpr

Definition at line 456 of file Particle.hpp.

References ParticleProperties::identity.

◆ id() [2/2]

◆ image_box() [1/2]

constexpr auto & Particle::image_box ( )
inlineconstexpr

Definition at line 490 of file Particle.hpp.

References ParticlePosition::i.

◆ image_box() [2/2]

◆ is_fixed_along()

◆ is_ghost()

constexpr bool Particle::is_ghost ( ) const
inlineconstexpr

◆ is_virtual()

◆ lees_edwards_flag() [1/2]

constexpr auto & Particle::lees_edwards_flag ( )
inlineconstexpr

Definition at line 498 of file Particle.hpp.

References ParticleLocal::lees_edwards_flag.

◆ lees_edwards_flag() [2/2]

constexpr auto const & Particle::lees_edwards_flag ( ) const
inlineconstexpr

◆ lees_edwards_offset() [1/2]

constexpr auto & Particle::lees_edwards_offset ( )
inlineconstexpr

Definition at line 494 of file Particle.hpp.

References ParticleLocal::lees_edwards_offset.

◆ lees_edwards_offset() [2/2]

constexpr auto const & Particle::lees_edwards_offset ( ) const
inlineconstexpr

◆ magnetic_anisotropy_energy() [1/2]

constexpr auto & Particle::magnetic_anisotropy_energy ( )
inlineconstexpr

◆ magnetic_anisotropy_energy() [2/2]

◆ magnetic_anisotropy_field_inv() [1/2]

constexpr auto & Particle::magnetic_anisotropy_field_inv ( )
inlineconstexpr

◆ magnetic_anisotropy_field_inv() [2/2]

constexpr auto const & Particle::magnetic_anisotropy_field_inv ( ) const
inlineconstexpr

◆ mass() [1/2]

constexpr auto & Particle::mass ( )
inlineconstexpr

Definition at line 502 of file Particle.hpp.

References ParticleProperties::mass.

◆ mass() [2/2]

◆ mol_id() [1/2]

constexpr auto & Particle::mol_id ( )
inlineconstexpr

Definition at line 458 of file Particle.hpp.

References ParticleProperties::mol_id.

◆ mol_id() [2/2]

◆ mu_E() [1/2]

constexpr auto & Particle::mu_E ( )
inlineconstexpr

Definition at line 603 of file Particle.hpp.

References ParticleProperties::mu_E.

◆ mu_E() [2/2]

constexpr auto const & Particle::mu_E ( ) const
inlineconstexpr

◆ omega() [1/2]

constexpr auto & Particle::omega ( )
inlineconstexpr

Definition at line 532 of file Particle.hpp.

References ParticleMomentum::omega.

◆ omega() [2/2]

◆ operator!=()

constexpr bool Particle::operator!= ( Particle const rhs) const
inlineconstexpr

Definition at line 469 of file Particle.hpp.

References id(), and stream.

◆ operator==()

constexpr bool Particle::operator== ( Particle const rhs) const
inlineconstexpr

Definition at line 465 of file Particle.hpp.

References id(), and stream.

◆ pos() [1/2]

constexpr auto & Particle::pos ( )
inlineconstexpr

Definition at line 477 of file Particle.hpp.

References ParticlePosition::p.

◆ pos() [2/2]

◆ pos_at_last_verlet_update() [1/2]

constexpr auto & Particle::pos_at_last_verlet_update ( )
inlineconstexpr

Definition at line 487 of file Particle.hpp.

References ParticleLocal::p_old.

Referenced by fold_and_reset().

◆ pos_at_last_verlet_update() [2/2]

constexpr auto const & Particle::pos_at_last_verlet_update ( ) const
inlineconstexpr

Definition at line 488 of file Particle.hpp.

References ParticleLocal::p_old.

◆ pos_last_time_step() [1/2]

constexpr auto & Particle::pos_last_time_step ( )
inlineconstexpr

Definition at line 658 of file Particle.hpp.

References ParticlePosition::p_last_timestep.

◆ pos_last_time_step() [2/2]

constexpr auto const & Particle::pos_last_time_step ( ) const
inlineconstexpr

Definition at line 657 of file Particle.hpp.

References ParticlePosition::p_last_timestep.

Referenced by serialize_and_reduce().

◆ propagation() [1/2]

constexpr auto & Particle::propagation ( )
inlineconstexpr

Definition at line 463 of file Particle.hpp.

References ParticleProperties::propagation.

◆ propagation() [2/2]

◆ q() [1/2]

constexpr auto & Particle::q ( )
inlineconstexpr

Definition at line 599 of file Particle.hpp.

References ParticleProperties::q.

◆ q() [2/2]

◆ quat() [1/2]

constexpr auto & Particle::quat ( )
inlineconstexpr

Definition at line 528 of file Particle.hpp.

References ParticlePosition::quat.

◆ quat() [2/2]

◆ rattle_correction() [1/2]

constexpr auto & Particle::rattle_correction ( )
inlineconstexpr

Definition at line 662 of file Particle.hpp.

References ParticleRattle::correction.

◆ rattle_correction() [2/2]

constexpr auto const & Particle::rattle_correction ( ) const
inlineconstexpr

Definition at line 661 of file Particle.hpp.

References ParticleRattle::correction.

Referenced by serialize_and_reduce().

◆ rattle_params() [1/2]

constexpr auto & Particle::rattle_params ( )
inlineconstexpr

Definition at line 660 of file Particle.hpp.

◆ rattle_params() [2/2]

constexpr auto const & Particle::rattle_params ( ) const
inlineconstexpr

Definition at line 659 of file Particle.hpp.

Referenced by apply_positional_correction(), and apply_velocity_correction().

◆ rinertia() [1/2]

constexpr auto & Particle::rinertia ( )
inlineconstexpr

Definition at line 595 of file Particle.hpp.

References ParticleProperties::rinertia.

◆ rinertia() [2/2]

◆ rotation() [1/2]

constexpr auto & Particle::rotation ( )
inlineconstexpr

Definition at line 506 of file Particle.hpp.

References ParticleProperties::rotation.

◆ rotation() [2/2]

◆ saturation_magnetization() [1/2]

constexpr auto & Particle::saturation_magnetization ( )
inlineconstexpr

◆ saturation_magnetization() [2/2]

◆ set_can_rotate_all_axes()

constexpr void Particle::set_can_rotate_all_axes ( )
inlineconstexpr

◆ set_can_rotate_around()

constexpr void Particle::set_can_rotate_around ( unsigned int const  axis,
bool const  rot_flag 
)
inlineconstexpr

Definition at line 512 of file Particle.hpp.

References ParticleProperties::rotation, and stream.

◆ set_cannot_rotate_all_axes()

constexpr void Particle::set_cannot_rotate_all_axes ( )
inlineconstexpr

Definition at line 524 of file Particle.hpp.

References ParticleProperties::rotation, and stream.

◆ set_fixed_along()

constexpr void Particle::set_fixed_along ( int const  axis,
bool const  fixed_flag 
)
inlineconstexpr

Definition at line 638 of file Particle.hpp.

References ParticleProperties::ext_flag, and stream.

◆ set_ghost()

constexpr void Particle::set_ghost ( bool const  ghost_flag)
inlineconstexpr

Definition at line 486 of file Particle.hpp.

References ParticleLocal::ghost, and stream.

◆ stoner_wohlfarth_dt_incr() [1/2]

constexpr auto & Particle::stoner_wohlfarth_dt_incr ( )
inlineconstexpr

◆ stoner_wohlfarth_dt_incr() [2/2]

◆ stoner_wohlfarth_is_enabled() [1/2]

constexpr auto & Particle::stoner_wohlfarth_is_enabled ( )
inlineconstexpr

◆ stoner_wohlfarth_is_enabled() [2/2]

◆ stoner_wohlfarth_phi_0() [1/2]

constexpr auto & Particle::stoner_wohlfarth_phi_0 ( )
inlineconstexpr

◆ stoner_wohlfarth_phi_0() [2/2]

◆ stoner_wohlfarth_tau0_inv() [1/2]

constexpr auto & Particle::stoner_wohlfarth_tau0_inv ( )
inlineconstexpr

◆ stoner_wohlfarth_tau0_inv() [2/2]

◆ swimming() [1/2]

constexpr auto & Particle::swimming ( )
inlineconstexpr

Definition at line 654 of file Particle.hpp.

References ParticleProperties::swim.

◆ swimming() [2/2]

constexpr auto const & Particle::swimming ( ) const
inlineconstexpr

◆ torque() [1/2]

constexpr auto & Particle::torque ( )
inlineconstexpr

Definition at line 530 of file Particle.hpp.

References ParticleForce::torque.

◆ torque() [2/2]

◆ type() [1/2]

constexpr auto & Particle::type ( )
inlineconstexpr

Definition at line 460 of file Particle.hpp.

References ParticleProperties::type.

◆ type() [2/2]

◆ v() [1/2]

constexpr auto & Particle::v ( )
inlineconstexpr

Definition at line 479 of file Particle.hpp.

References ParticleMomentum::v.

◆ v() [2/2]

◆ vs_relative() [1/2]

constexpr auto & Particle::vs_relative ( )
inlineconstexpr

Definition at line 618 of file Particle.hpp.

References ParticleProperties::vs_relative.

◆ vs_relative() [2/2]


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