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