29#ifndef _libDEM_HertzSpring_hpp_
30#define _libDEM_HertzSpring_hpp_
64 virtual std::string
info()
const;
67 GRANOO_ACCESS (stiffness ,
double ,
_stiffness );
85 template<
class Archive>
void serialize(Archive &,
const unsigned int);
103 template<
class Archive>
void
105 ar & boost::serialization::base_object<Bond>(*
this);
113#include <boost/serialization/version.hpp>
120 namespace serialization
122 template<
class Archive>
131 template<
class Archive>
BOOST_CLASS_VERSION(GranOO3::DEM::HertzSpring, 0) namespace boost
Definition HertzSpring.hpp:114
Bond(Element &el1, Element &el2, bool contact=false)
Constructor.
Definition Bond.cpp:70
a base class that represents an element
Definition Element.hpp:55
a bond model that represents an Hertzian contact (non linear contact)
Definition HertzSpring.hpp:46
virtual void compute_load()
trigger the computing of the reaction force and torque
Definition HertzSpring.cpp:107
double _equivalent_radius
the equivalent radius of the Hertz spring
Definition HertzSpring.hpp:94
void init()
initialize the hertzspring
Definition HertzSpring.cpp:67
HertzSpring & operator=(const HertzSpring &)=delete
Geom::Vector _direction
the current normal direction of the Hertz spring
Definition HertzSpring.hpp:92
virtual double get_linear_stiffness() const
compute the linear stiffness of the bond
Definition HertzSpring.cpp:114
Geom::Vector _force
the current normal force of the Hertz spring
Definition HertzSpring.hpp:93
virtual double compute_critical_time_step() const
compute the critical time of the bond
Definition HertzSpring.cpp:126
double _contact_surface
the contact surface of the Hertz spring
Definition HertzSpring.hpp:97
HertzSpring(Element &el1, Element &el2)
constructor
Definition HertzSpring.cpp:59
void process()
compute the reaction force (no torque)
Definition HertzSpring.cpp:86
virtual ~HertzSpring()
destructor
Definition HertzSpring.cpp:63
virtual void update()
Definition HertzSpring.cpp:75
double _stiffness
the equivalent stiffness of the Hertz spring
Definition HertzSpring.hpp:95
HertzSpring(const HertzSpring &)=delete
virtual double get_angular_stiffness() const
similar as get_linear_stiffness() for rotation (zero for a Hertzian spring)
Definition HertzSpring.cpp:120
double _young_modulus
the Young's modulus value of the bond in [Pa]
Definition HertzSpring.hpp:89
double _contact_radius
the contact radius of the Hertz spring
Definition HertzSpring.hpp:96
void serialize(Archive &, const unsigned int)
complete serializing of the bond in the *.gdd format
Definition HertzSpring.hpp:104
friend class boost::serialization::access
Definition HertzSpring.hpp:84
virtual std::string info() const
Display some useful info in the terminal.
Definition HertzSpring.cpp:139
double _poisson_ratio
the Poisson's ratio of the bond in [-]
Definition HertzSpring.hpp:90
pure virtual class for modeling classes able to compute a critical time step
Definition CriticalTimeStep.hpp:50
This namespace group the entire DEM library.
Definition Common.hpp:198