PAPRECA hybrid off-lattice kMC/MD simulator  2.0.0 (17 September 2024)
PAPRECA::PredefinedReaction Class Reference

class associated with reaction events. This is a Predefined template for PAPRECA::BondBreak and PAPRECA::BondForm events. More...

#include <event_list.h>

Inheritance diagram for PAPRECA::PredefinedReaction:

Public Member Functions

 PredefinedReaction (const int &atom1_type_in, const int &atom2_type_in, const int &bond_type_in, const double &rate_in)
 
 PredefinedReaction (const int &atom1_type_in, const int &atom2_type_in, const int &bond_type_in, const double &rate_in, const std::vector< int > &catalyzing_types_in)
 
 ~PredefinedReaction ()
 
const int & getAtom1Type () const
 
const int & getAtom2Type () const
 
const int & getBondType () const
 
const double & getRate () const
 
const std::vector< int > & getCatalyzingTypes () const
 
const bool & isForm () const
 

Protected Attributes

int atom1_type = -1
 
int atom2_type = -2
 
int bond_type = -3
 
double rate = 0.0
 
std::vector< int > catalyzing_types
 these types of atoms have to be present in the neighborhood of atom1 or atom2. Otherwise, the reaction event is invalid. If the catalyzing_types vector is empty, the neighborhood of atom1 and atom2 is not scanned for catalyzing types. More...
 
bool is_form = false
 this variable allows us to differentiate between the parent class PAPRECA::PredefinedReaction and the child class PAPRECA::PredefinedBondForm More...
 

Detailed Description

class associated with reaction events. This is a Predefined template for PAPRECA::BondBreak and PAPRECA::BondForm events.

Constructor & Destructor Documentation

◆ PredefinedReaction() [1/2]

PAPRECA::PredefinedReaction::PredefinedReaction ( const int &  atom1_type_in,
const int &  atom2_type_in,
const int &  bond_type_in,
const double &  rate_in 
)

◆ PredefinedReaction() [2/2]

PAPRECA::PredefinedReaction::PredefinedReaction ( const int &  atom1_type_in,
const int &  atom2_type_in,
const int &  bond_type_in,
const double &  rate_in,
const std::vector< int > &  catalyzing_types_in 
)

◆ ~PredefinedReaction()

PAPRECA::PredefinedReaction::~PredefinedReaction ( )

Member Function Documentation

◆ getAtom1Type()

const int & PAPRECA::PredefinedReaction::getAtom1Type ( ) const

◆ getAtom2Type()

const int & PAPRECA::PredefinedReaction::getAtom2Type ( ) const

◆ getBondType()

const int & PAPRECA::PredefinedReaction::getBondType ( ) const

◆ getCatalyzingTypes()

const std::vector< int > & PAPRECA::PredefinedReaction::getCatalyzingTypes ( ) const

◆ getRate()

const double & PAPRECA::PredefinedReaction::getRate ( ) const

◆ isForm()

const bool & PAPRECA::PredefinedReaction::isForm ( ) const

Member Data Documentation

◆ atom1_type

int PAPRECA::PredefinedReaction::atom1_type = -1
protected

◆ atom2_type

int PAPRECA::PredefinedReaction::atom2_type = -2
protected

◆ bond_type

int PAPRECA::PredefinedReaction::bond_type = -3
protected

◆ catalyzing_types

std::vector< int > PAPRECA::PredefinedReaction::catalyzing_types
protected

these types of atoms have to be present in the neighborhood of atom1 or atom2. Otherwise, the reaction event is invalid. If the catalyzing_types vector is empty, the neighborhood of atom1 and atom2 is not scanned for catalyzing types.

◆ is_form

bool PAPRECA::PredefinedReaction::is_form = false
protected

this variable allows us to differentiate between the parent class PAPRECA::PredefinedReaction and the child class PAPRECA::PredefinedBondForm

◆ rate

double PAPRECA::PredefinedReaction::rate = 0.0
protected

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