NetDEM v1.0
Loading...
Searching...
No Matches
netdem::ContactPPParser Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ ClassToStruct()

void ContactPPParser::ClassToStruct ( const ContactPP *const cnt_class,
ContactPPData *const cnt_struct )
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.

Parameters
cnt_classThe ContactPP object to convert.
cnt_structThe ContactPPData struct to store the converted data in.

◆ DefineMPIDataType()

void ContactPPParser::DefineMPIDataType ( MPI_Datatype *const datatype)
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.

Parameters
datatypeThe MPI_Datatype to define.

◆ StructToClass()

void ContactPPParser::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 )
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.

Parameters
cnt_classThe ContactPP object to store the converted data in.
cnt_structThe ContactPPData struct to convert.
bond_entries_dataThe BondEntryData struct containing information about bonds between particles.
collision_entries_dataThe CollisionEntryData struct containing information about particle collisions.
contact_model_mapThe MiniMap<int, ContactModel *> containing contact models for the simulation.

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