NetDEM v1.0
Loading...
Searching...
No Matches
contact_pw_parser.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "bond_entry_data.hpp"
7#include "contact_pw.hpp"
8#include "contact_pw_data.hpp"
9
10namespace netdem {
11
21public:
31 static void ClassToStruct(const ContactPW *const cnt_class,
32 ContactPWData *const cnt_struct);
33
50 static void
51 StructToClass(ContactPW *const cnt_class,
52 const ContactPWData *const cnt_struct,
53 const BondEntryData *const bond_entries_data,
54 const CollisionEntryData *const collision_entries_data,
55 const MiniMap<int, ContactModel *> &contact_model_map);
56
65 static void DefineMPIDataType(MPI_Datatype *const datatype);
66};
67
68} // namespace netdem
A class representing a contact between a particle and a wall.
Definition contact_pw.hpp:22
A class for converting between ContactPW objects and ContactPWData structs.
Definition contact_pw_parser.hpp:20
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.
Definition contact_pw_parser.cpp:26
static void ClassToStruct(const ContactPW *const cnt_class, ContactPWData *const cnt_struct)
Converts a ContactPW object to a ContactPWData struct.
Definition contact_pw_parser.cpp:6
static void DefineMPIDataType(MPI_Datatype *const datatype)
Defines an MPI datatype for the ContactPWData struct.
Definition contact_pw_parser.cpp:68
Definition mini_map.hpp:17
Definition bond_entry.hpp:7
A struct that represents data associated with a bond entry.
Definition bond_entry_data.hpp:13
A struct that represents data associated with a collision entry.
Definition collision_entry_data.hpp:13
Struct representing particle-wall contact data for MPI communication.
Definition contact_pw_data.hpp:11