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

#include <ExclusionRadius.hpp>

+ Collaboration diagram for ExclusionRadius:

Public Types

using map_type = std::unordered_map< int, double >
 

Public Member Functions

 ExclusionRadius (boost::mpi::communicator const &comm)
 
void set_exclusion_range (double range)
 
void set_exclusion_radius_per_type (map_type const &map)
 
bool check_exclusion_range (int p_id, int p_type)
 Check if an inserted particle is too close to neighboring particles.
 
bool check_exclusion_range (int pid)
 

Public Attributes

bool neighbor_search_order_n = true
 
double exclusion_range = 0.
 
map_type exclusion_radius_per_type {}
 

Detailed Description

Definition at line 26 of file core/ExclusionRadius.hpp.

Member Typedef Documentation

◆ map_type

using ExclusionRadius::map_type = std::unordered_map<int, double>

Definition at line 32 of file core/ExclusionRadius.hpp.

Constructor & Destructor Documentation

◆ ExclusionRadius()

ExclusionRadius::ExclusionRadius ( boost::mpi::communicator const &  comm)
inlineexplicit

Definition at line 33 of file core/ExclusionRadius.hpp.

Member Function Documentation

◆ check_exclusion_range() [1/2]

bool ExclusionRadius::check_exclusion_range ( int  p_id,
int  p_type 
)

Check if an inserted particle is too close to neighboring particles.

Definition at line 81 of file ExclusionRadius.cpp.

References exclusion_radius_per_type, exclusion_range, get_particle_ids_parallel(), get_real_particle(), get_short_range_neighbors(), System::get_system(), and neighbor_search_order_n.

Referenced by check_exclusion_range().

◆ check_exclusion_range() [2/2]

bool ExclusionRadius::check_exclusion_range ( int  pid)

Definition at line 186 of file ExclusionRadius.cpp.

References check_exclusion_range(), and get_real_particle().

◆ set_exclusion_radius_per_type()

void ExclusionRadius::set_exclusion_radius_per_type ( map_type const &  map)

Definition at line 58 of file ExclusionRadius.cpp.

References exclusion_radius_per_type.

◆ set_exclusion_range()

void ExclusionRadius::set_exclusion_range ( double  range)

Definition at line 50 of file ExclusionRadius.cpp.

References exclusion_range.

Member Data Documentation

◆ exclusion_radius_per_type

map_type ExclusionRadius::exclusion_radius_per_type {}

◆ exclusion_range

double ExclusionRadius::exclusion_range = 0.

Definition at line 41 of file core/ExclusionRadius.hpp.

Referenced by check_exclusion_range(), and set_exclusion_range().

◆ neighbor_search_order_n

bool ExclusionRadius::neighbor_search_order_n = true

Definition at line 40 of file core/ExclusionRadius.hpp.

Referenced by check_exclusion_range().


The documentation for this class was generated from the following files: