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 const & id () const
constexpr auto & id ()
constexpr auto const & mol_id () const
constexpr auto & mol_id ()
constexpr auto const & type () const
constexpr auto & type ()
constexpr auto const & propagation () const
constexpr auto & propagation ()
constexpr bool operator== (Particle const &rhs) const
constexpr bool operator!= (Particle const &rhs) const
constexpr auto const & bonds () const
constexpr auto & bonds ()
constexpr auto const & pos () const
constexpr auto & pos ()
constexpr auto const & v () const
constexpr auto & v ()
constexpr auto const & force () const
constexpr auto & force ()
constexpr auto const & force_and_torque () const
constexpr auto & force_and_torque ()
constexpr bool is_ghost () const
constexpr void set_ghost (bool const ghost_flag)
constexpr auto & pos_at_last_verlet_update ()
constexpr auto const & pos_at_last_verlet_update () const
constexpr auto const & image_box () const
constexpr auto & image_box ()
constexpr auto const & lees_edwards_offset () const
constexpr auto & lees_edwards_offset ()
constexpr auto const & lees_edwards_flag () const
constexpr auto & lees_edwards_flag ()
constexpr auto const & mass () const
constexpr auto & mass ()
constexpr auto const & rotation () const
constexpr auto & rotation ()
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 const & quat () const
constexpr auto & quat ()
constexpr auto const & torque () const
constexpr auto & torque ()
constexpr auto const & omega () const
constexpr auto & omega ()
constexpr auto const & ext_torque () const
constexpr auto & ext_torque ()
constexpr auto calc_director () const
constexpr auto const & dipm () const
constexpr auto & dipm ()
constexpr auto calc_dip () const
constexpr auto const & stoner_wohlfarth_is_enabled () const
constexpr auto & stoner_wohlfarth_is_enabled ()
constexpr auto const & stoner_wohlfarth_phi_0 () const
constexpr auto & stoner_wohlfarth_phi_0 ()
constexpr auto const & saturation_magnetization () const
constexpr auto & saturation_magnetization ()
constexpr auto const & magnetic_anisotropy_field_inv () const
constexpr auto & magnetic_anisotropy_field_inv ()
constexpr auto const & magnetic_anisotropy_energy () const
constexpr auto & magnetic_anisotropy_energy ()
constexpr auto const & stoner_wohlfarth_tau0_inv () const
constexpr auto & stoner_wohlfarth_tau0_inv ()
constexpr auto const & stoner_wohlfarth_dt_incr () const
constexpr auto & stoner_wohlfarth_dt_incr ()
constexpr auto const & dip_fld () const
constexpr auto & dip_fld ()
constexpr auto const & rinertia () const
constexpr auto & rinertia ()
constexpr auto const & q () const
constexpr auto & q ()
constexpr auto const & mu_E () const
constexpr auto & mu_E ()
constexpr auto is_virtual () const
constexpr auto const & vs_relative () const
constexpr auto & vs_relative ()
constexpr auto const & gamma () const
constexpr auto & gamma ()
constexpr auto const & gamma_rot () const
constexpr auto & gamma_rot ()
constexpr auto const & fixed () const
constexpr auto & fixed ()
constexpr bool has_fixed_coordinates () const
constexpr bool is_fixed_along (unsigned int const axis) const
constexpr void set_fixed_along (unsigned int const axis, bool const fixed_flag)
constexpr auto const & ext_force () const
constexpr auto & ext_force ()
constexpr auto const & swimming () const
constexpr auto & swimming ()
constexpr auto const & pos_last_time_step () const
constexpr auto & pos_last_time_step ()
constexpr auto const & rattle_params () const
constexpr auto & rattle_params ()
constexpr auto const & rattle_correction () const
constexpr auto & rattle_correction ()
Utils::compact_vector< int > & exclusions ()
Utils::compact_vector< int > const & exclusions () 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]

auto & Particle::bonds ( )
inlineconstexpr

Definition at line 474 of file Particle.hpp.

◆ bonds() [2/2]

◆ calc_dip()

◆ calc_director()

auto Particle::calc_director ( ) const
inlineconstexpr

◆ can_rotate()

◆ can_rotate_around()

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

◆ dip_fld() [1/2]

auto & Particle::dip_fld ( )
inlineconstexpr

Definition at line 591 of file Particle.hpp.

◆ dip_fld() [2/2]

◆ dipm() [1/2]

auto & Particle::dipm ( )
inlineconstexpr

Definition at line 544 of file Particle.hpp.

◆ dipm() [2/2]

◆ exclusions() [1/2]

◆ exclusions() [2/2]

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

Definition at line 668 of file Particle.hpp.

◆ ext_force() [1/2]

auto & Particle::ext_force ( )
inlineconstexpr

Definition at line 648 of file Particle.hpp.

◆ ext_force() [2/2]

auto const & Particle::ext_force ( ) const
inlineconstexpr

◆ ext_torque() [1/2]

auto & Particle::ext_torque ( )
inlineconstexpr

Definition at line 535 of file Particle.hpp.

◆ ext_torque() [2/2]

auto const & Particle::ext_torque ( ) const
inlineconstexpr

◆ fixed() [1/2]

auto & Particle::fixed ( )
inlineconstexpr

Definition at line 630 of file Particle.hpp.

◆ fixed() [2/2]

auto const & Particle::fixed ( ) const
inlineconstexpr

◆ force() [1/2]

auto & Particle::force ( )
inlineconstexpr

Definition at line 481 of file Particle.hpp.

◆ force() [2/2]

◆ force_and_torque() [1/2]

auto & Particle::force_and_torque ( )
inlineconstexpr

Definition at line 483 of file Particle.hpp.

◆ force_and_torque() [2/2]

auto const & Particle::force_and_torque ( ) const
inlineconstexpr

◆ gamma() [1/2]

auto & Particle::gamma ( )
inlineconstexpr

Definition at line 622 of file Particle.hpp.

◆ gamma() [2/2]

◆ gamma_rot() [1/2]

auto & Particle::gamma_rot ( )
inlineconstexpr

Definition at line 625 of file Particle.hpp.

◆ gamma_rot() [2/2]

◆ has_exclusion()

bool Particle::has_exclusion ( int pid) const
inline

◆ has_fixed_coordinates()

bool Particle::has_fixed_coordinates ( ) const
inlineconstexpr

Definition at line 631 of file Particle.hpp.

◆ id() [1/2]

auto & Particle::id ( )
inlineconstexpr

Definition at line 456 of file Particle.hpp.

◆ id() [2/2]

◆ image_box() [1/2]

auto & Particle::image_box ( )
inlineconstexpr

Definition at line 490 of file Particle.hpp.

◆ image_box() [2/2]

◆ is_fixed_along()

bool Particle::is_fixed_along ( unsigned int const axis) const
inlineconstexpr

◆ is_ghost()

◆ is_virtual()

◆ lees_edwards_flag() [1/2]

auto & Particle::lees_edwards_flag ( )
inlineconstexpr

Definition at line 498 of file Particle.hpp.

◆ lees_edwards_flag() [2/2]

auto const & Particle::lees_edwards_flag ( ) const
inlineconstexpr

◆ lees_edwards_offset() [1/2]

auto & Particle::lees_edwards_offset ( )
inlineconstexpr

Definition at line 494 of file Particle.hpp.

◆ lees_edwards_offset() [2/2]

auto const & Particle::lees_edwards_offset ( ) const
inlineconstexpr

◆ magnetic_anisotropy_energy() [1/2]

auto & Particle::magnetic_anisotropy_energy ( )
inlineconstexpr

Definition at line 573 of file Particle.hpp.

◆ magnetic_anisotropy_energy() [2/2]

auto const & Particle::magnetic_anisotropy_energy ( ) const
inlineconstexpr

◆ magnetic_anisotropy_field_inv() [1/2]

auto & Particle::magnetic_anisotropy_field_inv ( )
inlineconstexpr

Definition at line 567 of file Particle.hpp.

◆ magnetic_anisotropy_field_inv() [2/2]

auto const & Particle::magnetic_anisotropy_field_inv ( ) const
inlineconstexpr

◆ mass() [1/2]

auto & Particle::mass ( )
inlineconstexpr

Definition at line 502 of file Particle.hpp.

◆ mass() [2/2]

◆ mol_id() [1/2]

auto & Particle::mol_id ( )
inlineconstexpr

Definition at line 458 of file Particle.hpp.

◆ mol_id() [2/2]

◆ mu_E() [1/2]

auto & Particle::mu_E ( )
inlineconstexpr

Definition at line 603 of file Particle.hpp.

◆ mu_E() [2/2]

auto const & Particle::mu_E ( ) const
inlineconstexpr

◆ omega() [1/2]

auto & Particle::omega ( )
inlineconstexpr

Definition at line 532 of file Particle.hpp.

◆ omega() [2/2]

◆ operator!=()

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

Definition at line 469 of file Particle.hpp.

References id().

◆ operator==()

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

Definition at line 465 of file Particle.hpp.

References id().

◆ pos() [1/2]

auto & Particle::pos ( )
inlineconstexpr

Definition at line 477 of file Particle.hpp.

◆ pos() [2/2]

◆ pos_at_last_verlet_update() [1/2]

auto & Particle::pos_at_last_verlet_update ( )
inlineconstexpr

Definition at line 487 of file Particle.hpp.

Referenced by fold_and_reset().

◆ pos_at_last_verlet_update() [2/2]

auto const & Particle::pos_at_last_verlet_update ( ) const
inlineconstexpr

Definition at line 488 of file Particle.hpp.

◆ pos_last_time_step() [1/2]

auto & Particle::pos_last_time_step ( )
inlineconstexpr

Definition at line 659 of file Particle.hpp.

◆ pos_last_time_step() [2/2]

auto const & Particle::pos_last_time_step ( ) const
inlineconstexpr

◆ propagation() [1/2]

auto & Particle::propagation ( )
inlineconstexpr

Definition at line 463 of file Particle.hpp.

◆ propagation() [2/2]

◆ q() [1/2]

auto & Particle::q ( )
inlineconstexpr

Definition at line 599 of file Particle.hpp.

◆ q() [2/2]

◆ quat() [1/2]

auto & Particle::quat ( )
inlineconstexpr

Definition at line 528 of file Particle.hpp.

◆ quat() [2/2]

◆ rattle_correction() [1/2]

auto & Particle::rattle_correction ( )
inlineconstexpr

Definition at line 663 of file Particle.hpp.

◆ rattle_correction() [2/2]

auto const & Particle::rattle_correction ( ) const
inlineconstexpr

Definition at line 662 of file Particle.hpp.

Referenced by GhostComm::serialize_and_reduce().

◆ rattle_params() [1/2]

auto & Particle::rattle_params ( )
inlineconstexpr

Definition at line 661 of file Particle.hpp.

◆ rattle_params() [2/2]

auto const & Particle::rattle_params ( ) const
inlineconstexpr

◆ rinertia() [1/2]

auto & Particle::rinertia ( )
inlineconstexpr

Definition at line 595 of file Particle.hpp.

◆ rinertia() [2/2]

◆ rotation() [1/2]

auto & Particle::rotation ( )
inlineconstexpr

Definition at line 506 of file Particle.hpp.

◆ rotation() [2/2]

◆ saturation_magnetization() [1/2]

auto & Particle::saturation_magnetization ( )
inlineconstexpr

Definition at line 561 of file Particle.hpp.

◆ saturation_magnetization() [2/2]

auto const & Particle::saturation_magnetization ( ) const
inlineconstexpr

◆ set_can_rotate_all_axes()

void Particle::set_can_rotate_all_axes ( )
inlineconstexpr

◆ set_can_rotate_around()

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

Definition at line 512 of file Particle.hpp.

◆ set_cannot_rotate_all_axes()

void Particle::set_cannot_rotate_all_axes ( )
inlineconstexpr

Definition at line 524 of file Particle.hpp.

◆ set_fixed_along()

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

Definition at line 638 of file Particle.hpp.

◆ set_ghost()

void Particle::set_ghost ( bool const ghost_flag)
inlineconstexpr

Definition at line 486 of file Particle.hpp.

◆ stoner_wohlfarth_dt_incr() [1/2]

auto & Particle::stoner_wohlfarth_dt_incr ( )
inlineconstexpr

Definition at line 585 of file Particle.hpp.

◆ stoner_wohlfarth_dt_incr() [2/2]

auto const & Particle::stoner_wohlfarth_dt_incr ( ) const
inlineconstexpr

◆ stoner_wohlfarth_is_enabled() [1/2]

auto & Particle::stoner_wohlfarth_is_enabled ( )
inlineconstexpr

Definition at line 551 of file Particle.hpp.

◆ stoner_wohlfarth_is_enabled() [2/2]

auto const & Particle::stoner_wohlfarth_is_enabled ( ) const
inlineconstexpr

◆ stoner_wohlfarth_phi_0() [1/2]

auto & Particle::stoner_wohlfarth_phi_0 ( )
inlineconstexpr

Definition at line 557 of file Particle.hpp.

◆ stoner_wohlfarth_phi_0() [2/2]

auto const & Particle::stoner_wohlfarth_phi_0 ( ) const
inlineconstexpr

◆ stoner_wohlfarth_tau0_inv() [1/2]

auto & Particle::stoner_wohlfarth_tau0_inv ( )
inlineconstexpr

Definition at line 579 of file Particle.hpp.

◆ stoner_wohlfarth_tau0_inv() [2/2]

auto const & Particle::stoner_wohlfarth_tau0_inv ( ) const
inlineconstexpr

◆ swimming() [1/2]

auto & Particle::swimming ( )
inlineconstexpr

Definition at line 655 of file Particle.hpp.

◆ swimming() [2/2]

auto const & Particle::swimming ( ) const
inlineconstexpr

◆ torque() [1/2]

auto & Particle::torque ( )
inlineconstexpr

Definition at line 530 of file Particle.hpp.

◆ torque() [2/2]

◆ type() [1/2]

auto & Particle::type ( )
inlineconstexpr

Definition at line 460 of file Particle.hpp.

◆ type() [2/2]

◆ v() [1/2]

auto & Particle::v ( )
inlineconstexpr

Definition at line 479 of file Particle.hpp.

◆ v() [2/2]

◆ vs_relative() [1/2]

auto & Particle::vs_relative ( )
inlineconstexpr

Definition at line 618 of file Particle.hpp.

◆ vs_relative() [2/2]


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