30 #ifndef _libDEM_PlasticBeam_hpp_
31 #define _libDEM_PlasticBeam_hpp_
63 virtual std::string
info()
const;
78 template<
class Archive>
void serialize(Archive&,
const unsigned int);
94 template<
class Archive>
void
96 ar & boost::serialization::base_object<Beam>(*
this);
107 #include <boost/serialization/version.hpp>
113 namespace serialization
116 template<
class Archive>
119 const unsigned int) {
126 template<
class Archive>
129 const unsigned int) {
142 GRANOO_CLASS_DECLARE_TPL(DEM::PlasticBeam);
BOOST_CLASS_VERSION(GranOO3::DEM::PlasticBeam, 0) namespace boost
Definition: PlasticBeam.hpp:108
Definition: SetOf.hpp:346
a bond beam that works in tension, compression, bending and torsion
Definition: Beam.hpp:53
a base class that represents an element
Definition: Element.hpp:55
a bond model that represents a beam able to handle plastic deformation.
Definition: PlasticBeam.hpp:51
PlasticBeam(const PlasticBeam &)=delete
PlasticBeam & operator=(const PlasticBeam &)=delete
virtual ~PlasticBeam()
destructor
Definition: PlasticBeam.cpp:60
virtual void compute_load()
trigger the computing of the reaction force and torque
Definition: PlasticBeam.cpp:77
virtual void draw()
OpenGL draw of the bond
Definition: PlasticBeam.cpp:133
void enable_plastic_mode()
a method that enable the plastic mode
Definition: PlasticBeam.cpp:65
virtual std::string info() const
Display some useful info in the terminal
Definition: PlasticBeam.cpp:120
PlasticBeam(Element &el1, Element &el2, double young_mod, double damp, double rad, double poisson_ratio, double max_stress)
constructor
bool _plastic
a Boolean variable to know if the beam is currently in plastic mode or not
Definition: PlasticBeam.hpp:81
double _max_bending_force
this attribute is able to store the current maximal bending force (for internal usage only)
Definition: PlasticBeam.hpp:84
double _max_normal_force
this attribute is able to store the current maximal normal force (for internal usage only)
Definition: PlasticBeam.hpp:83
bool is_plastic() const
util method to know if the beam is exhibiting plastic deformation
Definition: PlasticBeam.hpp:89
double _max_elastic_relative_elongation
the elastic limit in terms of deformation
Definition: PlasticBeam.hpp:82
friend class boost::serialization::access
Definition: PlasticBeam.hpp:77
void serialize(Archive &, const unsigned int)
complete serializing of the bond in the *.gdd format
Definition: PlasticBeam.hpp:95
Definition: Common.hpp:198
void save_construct_data(Archive &ar, const GranOO3::Core::Pair< type > *t, const unsigned int)
Definition: Pair.hpp:207
void load_construct_data(Archive &ar, GranOO3::Core::Pair< type > *t, const unsigned int)
Definition: Pair.hpp:217
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t t(t+t)") define_sfop3(16