NetDEM v1.0
Loading...
Searching...
No Matches
json_serilization.hpp
Go to the documentation of this file.
5#include "particle.hpp"
6#include "wall.hpp"
7#include <nlohmann/json.hpp>
8
9namespace netdem {
10
12 branch_1, branch_2, pos_ini, dir_n_ini,
13 dir_s_ini, dir_t_ini, pos_1_ini, pos_2_ini,
14 quat_1_ini, quat_2_ini, radius, len_n, len_s,
15 len_t, dlen_n, dlen_s, dlen_t, theta_n,
16 theta_s, theta_t, dtheta_n, dtheta_s,
18
24
25NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(ContactForces, fc_n, fc_s, fc_t, mc_n, mc_s,
26 mc_t, fd_n, fd_s, fd_t, md_n, md_s, md_t,
27 force, moment, force_n, force_t, moment_n,
28 moment_t)
29
30void to_json(nlohmann::json &js, const BondEntry &obj);
31void from_json(const nlohmann::json &js, BondEntry &obj);
32
33void to_json(nlohmann::json &js, const CollisionEntry &obj);
34void from_json(const nlohmann::json &js, CollisionEntry &obj);
35
36void to_json(nlohmann::json &js, const ContactPP &obj);
37void from_json(const nlohmann::json &js, ContactPP &obj);
38
39void to_json(nlohmann::json &js, const ContactPW &obj);
40void from_json(const nlohmann::json &js, ContactPW &obj);
41
42void to_json(nlohmann::json &js, const Particle &obj);
43void from_json(const nlohmann::json &js, Particle &obj);
44
45void to_json(nlohmann::json &js, const Wall &obj);
46void from_json(const nlohmann::json &js, Wall &obj);
47
48} // namespace netdem
The BondEntry class represents a collection of contact geometries and forces for one bond.
Definition bond_entry.hpp:16
The BondGeometries class represents the geometrical properties of a bond.
Definition bond_geometries.hpp:11
A class representing a collision entry.
Definition collision_entry.hpp:20
A class representing the geometries associated with a collision.
Definition collision_geometries.hpp:15
A class representing the contact forces and moments arising from a contact interaction.
Definition contact_forces.hpp:18
A class representing a contact between two particles.
Definition contact_pp.hpp:20
A class representing a contact between a particle and a wall.
Definition contact_pw.hpp:22
Definition particle.hpp:26
A class representing a wall object in a physics simulation.
Definition wall.hpp:32
nlohmann::json json
Definition input_processor.cpp:8
Definition bond_entry.hpp:7
dlen_n
Definition json_serilization.hpp:20
node_dist
Definition json_serilization.hpp:23
dtheta_t
Definition json_serilization.hpp:21
pos
Definition json_serilization.hpp:19
dlen_s
Definition json_serilization.hpp:21
node_id
Definition json_serilization.hpp:23
void from_json(const nlohmann::json &js, BondEntry &obj)
Definition json_serilization.cpp:12
branch_2
Definition json_serilization.hpp:20
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(BondGeometries, pos, dir_n, dir_s, dir_t, branch_1, branch_2, pos_ini, dir_n_ini, dir_s_ini, dir_t_ini, pos_1_ini, pos_2_ini, quat_1_ini, quat_2_ini, radius, len_n, len_s, len_t, dlen_n, dlen_s, dlen_t, theta_n, theta_s, theta_t, dtheta_n, dtheta_s, dtheta_t, active) NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(CollisionGeometries
len_n
Definition json_serilization.hpp:20
dtheta_n
Definition json_serilization.hpp:21
void to_json(nlohmann::json &js, const BondEntry &obj)
Definition json_serilization.cpp:5
dtheta_s
Definition json_serilization.hpp:21
dir_t
Definition json_serilization.hpp:20
node_2to1
Definition json_serilization.hpp:22
radius_2
Definition json_serilization.hpp:22
dir_n
Definition json_serilization.hpp:19
dir_s
Definition json_serilization.hpp:19
dlen_t
Definition json_serilization.hpp:21
active
Definition json_serilization.hpp:22
branch_1
Definition json_serilization.hpp:20
radius_1
Definition json_serilization.hpp:22
vol
Definition json_serilization.hpp:23