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

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.
 

Detailed Description

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.

Member Function Documentation

◆ ClassToStruct()

void ContactPWParser::ClassToStruct ( const ContactPW *const cnt_class,
ContactPWData *const cnt_struct )
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.

Parameters
cnt_classThe ContactPW object to convert.
cnt_structThe ContactPWData struct to store the converted data in.

◆ DefineMPIDataType()

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

Parameters
datatypeThe MPI_Datatype to define.

◆ StructToClass()

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

Parameters
cnt_classThe ContactPW object to store the converted data in.
cnt_structThe ContactPWData 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: