5#include <unordered_map>
51 void SetProperty(nlohmann::json
const &js)
override;
57 ContactModel *
Clone()
const override;
68 CollisionGeometries &cnt_geoms, ContactPP *
const cnt,
69 double dt)
const override;
80 CollisionGeometries &cnt_geoms, ContactPW *
const cnt,
81 double dt)
const override;
86 void Print()
const override;
Contact model that evaluates forces and moments based on volume overlap and relative velocity.
Definition model_volume_based.hpp:13
double beta
Definition model_volume_based.hpp:19
void EvaluateForces(ContactForces *const cnt_forces, CollisionGeometries &cnt_geoms, ContactPP *const cnt, double dt) const override
Evaluates the forces and moments between two particles.
Definition model_volume_based.cpp:72
void SetProperty(nlohmann::json const &js) override
Sets the contact model properties.
Definition model_volume_based.cpp:52
double kt
Definition model_volume_based.hpp:19
void InitFromJson(nlohmann::json const &js) override
Initializes the contact model from a JSON object.
Definition model_volume_based.cpp:34
void Print() const override
Prints the contact model properties.
Definition model_volume_based.cpp:141
int order
Parameters used to calculate contact forces.
Definition model_volume_based.hpp:17
VolumeBased()
Default constructor for VolumeBased.
Definition model_volume_based.cpp:12
nlohmann::json PackJson() override
Packs the contact model properties into a JSON object.
Definition model_volume_based.cpp:23
ContactModel * Clone() const override
Creates a copy of this contact model.
Definition model_volume_based.cpp:70
double kn
Definition model_volume_based.hpp:19
double mu
Definition model_volume_based.hpp:19
Definition bond_entry.hpp:7