NetDEM v1.0
|
A class for converting between ContactPP objects and ContactPPData structs. More...
#include <contact_pp_parser.hpp>
Static Public Member Functions | |
static void | ClassToStruct (const ContactPP *const cnt_class, ContactPPData *const cnt_struct) |
Converts a ContactPP object to a ContactPPData struct. | |
static void | StructToClass (ContactPP *const cnt_class, const ContactPPData *const cnt_struct, const BondEntryData *const bond_entries_data, const CollisionEntryData *const collision_entries_data, const MiniMap< int, ContactModel * > &contact_model_map) |
Converts a ContactPPData struct to a ContactPP object. | |
static void | DefineMPIDataType (MPI_Datatype *const datatype) |
Defines an MPI datatype for the ContactPPData struct. | |
A class for converting between ContactPP objects and ContactPPData structs.
The ContactPPParser class provides methods for converting between ContactPP objects and ContactPPData structs, which are used for communication between MPI processes in the Peridigm code.
|
static |
Converts a ContactPP object to a ContactPPData struct.
This static method converts a ContactPP object to a ContactPPData struct, which can be used for communication between MPI processes.
cnt_class | The ContactPP object to convert. |
cnt_struct | The ContactPPData struct to store the converted data in. |
|
static |
Defines an MPI datatype for the ContactPPData struct.
This static method defines an MPI datatype for the ContactPPData struct, allowing it to be used in MPI communication between processes.
datatype | The MPI_Datatype to define. |
|
static |
Converts a ContactPPData struct to a ContactPP object.
This static method converts a ContactPPData struct to a ContactPP object, using additional input data such as bond entries, collision entries, contact models, etc.
cnt_class | The ContactPP object to store the converted data in. |
cnt_struct | The ContactPPData struct to convert. |
bond_entries_data | The BondEntryData struct containing information about bonds between particles. |
collision_entries_data | The CollisionEntryData struct containing information about particle collisions. |
contact_model_map | The MiniMap<int, ContactModel *> containing contact models for the simulation. |