|
| | RepulsiveSpring (Element &el1, Element &el2, double stiffness, double damping) |
| | constructor More...
|
| |
| | RepulsiveSpring (Element &el1, Element &el2) |
| | constructor More...
|
| |
| | RepulsiveSpring (Bond &bond) |
| | constructor, by copying a bond More...
|
| |
| virtual | ~RepulsiveSpring () |
| | destructor More...
|
| |
| virtual void | compute_load () |
| | compute the reaction force and torque of the attractive spring More...
|
| |
| virtual std::string | info () const |
| | Display some useful info in the terminal
More...
|
| |
| | Spring (Element &el1, Element &el2) |
| | constructor More...
|
| |
| | Spring (Element &el1, Element &el2, double stiffness, double damping, double max_relative_elongation=0) |
| | constructor More...
|
| |
| | Spring (Element &el1, Element &el2, double stiffness, double damping, double attrac_coef, double rep_coeff, double max_relative_elongation=0) |
| | constructor More...
|
| |
| virtual | ~Spring () |
| | destructor More...
|
| |
| void | init () |
| | initialize the spring (it does nothing) More...
|
| |
| virtual void | update () |
| | update the current values of elongation, local frame, etc... More...
|
| |
| void | process () |
| | update the current value of reaction force More...
|
| |
| virtual double | get_linear_stiffness () const |
| | compute the linear stiffness of the bond More...
|
| |
| virtual double | get_angular_stiffness () const |
| | always return 0 in case of spring More...
|
| |
| virtual double | compute_critical_time_step () const |
| | compute the critical time of the bond More...
|
| |
| double | get_restitution_coeff () const |
| | get the current value of the restitution coefficient More...
|
| |
| void | set_restitution_coeff (double val) |
| | set the current value of the restitution coefficient More...
|
| |
| | Bond (Element &el1, Element &el2, bool contact=false) |
| | Constructor. More...
|
| |
| virtual | ~Bond ()=0 |
| | Destructor. More...
|
| |
| virtual void | draw () |
| | OpenGL draw of the bond
More...
|
| |
| Element & | get_item1 () |
| |
| const Element & | get_item1 () const |
| |
| Element & | get_item2 () |
| |
| const Element & | get_item2 () const |
| |
| Element & | item1 () |
| |
| Element & | item2 () |
| |
| double | get_normal_force_intensity () const |
| |
| double | get_tangential_force_intensity () const |
| |
| Element & | bonded_element (const Element &) |
| | get the bonded element More...
|
| |
| const Element & | get_bonded_element (const Element &) const |
| | same as bonded_element(const Element&) (provided for convenience) More...
|
| |
| void | apply_linear_damping_factor () |
| | compute and apply the linear (translation) damping factor of the bond More...
|
| |
| void | apply_angular_damping_factor () |
| | similar as apply_linear_damping_factor() for rotation More...
|
| |
| void | apply_load () |
| | apply the computed reaction force and torque to the bonded Element (_element1 and _element2) More...
|
| |
| void | disable (bool manage_slave=true) |
| | disable the bond More...
|
| |
| void | disable_fast_mode (bool manage_slave=true) |
| | simply disable the bond by switching the _disabled attribute to true without doing the lot of things done by the disable() method More...
|
| |
| void | enable (bool manage_slave=true) |
| | simply enable the bond by switching the _disabled attribute to false More...
|
| |
| bool | is_disabled () const |
| | check if the bond is enable or not More...
|
| |
| void | crack (bool manage_slave=true) |
| |
| void | uncrack (bool manage_slave=true) |
| |
| bool | is_cracked () const |
| |
| void | init_local_frame (bool update_initial_param=false) |
| | initialize the bond local frame More...
|
| |
| void | update_local_frame () |
| | update the bond local frame More...
|
| |
| void | update_current_length () |
| | update the current value of the bond length (see _current_length attribute) More...
|
| |
| void | build_voronoi_bond () |
| | build a voronoi bond from the current bond More...
|
| |
| virtual void | stiffness_matrix (Eigen::MatrixXd &kMatrix) |
| | assemble a stiffness matrix More...
|
| |
| virtual void | update_dof () |
| | update the bond dof More...
|
| |
| const std::vector< unsigned int > & | get_dof () const |
| | get the dof vector More...
|
| |
| const Geom::Point & | initial_pos (const Element &) const |
| | get the initial position of the el element More...
|
| |
| Geom::Vector | get_disp (const Element &) const |
| | get the displacement of the el element More...
|
| |
| Geom::Vector | get_disp1 () const |
| | get the displacement of the first bonded element (_element1) More...
|
| |
| Geom::Vector | get_disp2 () const |
| | similar as get_disp1() More...
|
| |
| void | swap (Element &from, Element &to) |
| | swap the bond from the Element from to to More...
|
| |
| void | add_slave (Bond &b) |
| | add a slave bond (useful for periodic simulation) More...
|
| |
| virtual std::ostream & | export_to_povray (std::ostream &out) const |
| | exporting to povray format More...
|
| |
Public Member Functions inherited from GranOO3::Physic::BodyInteraction |
| | BodyInteraction (Body &b1, Body &b2, bool contact_interaction) |
| | constructor More...
|
| |
| virtual | ~BodyInteraction () |
| | destructor More...
|
| |
| void | apply_torque () |
| | apply the current torque value More...
|
| |
| void | clear_torque () |
| | set the torques to zero More...
|
| |
| Geom::Vector & | torque_on (const Body &b) |
| | get the torque value applied on b More...
|
| |
| const Geom::Vector & | torque_on (const Body &b) const |
| | same as BodyInteraction::torque_on More...
|
| |
| void | add_label_torque (const std::string &label, const Geom::Vector &t1, const Geom::Vector &t2) |
| | add a label for the torque More...
|
| |
| void | swap (Body &from, Body &to) |
| | swap one body More...
|
| |
| | NodeInteraction (Node &de1, Node &de2, bool build_node_interaction) |
| |
| virtual | ~NodeInteraction () |
| |
| bool | contact_interaction () const |
| |
| void | apply_force () |
| |
| void | clear_force () |
| |
| Geom::Vector & | force_on (const Node &) |
| |
| const Geom::Vector & | force_on (const Node &) const |
| |
| void | swap (Node &from, Node &to) |
| |
| virtual std::ostream & | write_ascii (std::ostream &out) const |
| |
| void | add_label_force (const std::string &label, const Geom::Vector &f1, const Geom::Vector &f2) |
| |
| virtual | ~Base () |
| |
| size_t | numID () const |
| |
| size_t | uID () const |
| |
| void | set_numID (size_t val) |
| |
| void | clear_numID () |
| |
| Physic::Material & | get_mat () const |
| |
| void | set_mat (Physic::Material *) |
| |
| Base & | item () |
| |
| const Base & | item () const |
| |
| bool | is_same (const Base &) const |
| |
| template<class T > |
| T & | cast_to () |
| |
| template<class T > |
| const T & | cast_to () const |
| |
| template<class T > |
| bool | is () const |
| |
| virtual bool | is (size_t) const |
| |
| virtual const std::string & | get_ID () const |
| |
| virtual Base & | clone () |
| |
| template<class T > |
| T & | clone_to () |
| |
| virtual std::istream & | read_ascii (std::istream &in) |
| |
| Signal< Base & > & | deleted_signal () |
| |
| | Null () |
| |
| virtual | ~Null () |
| |
| | Drawable () |
| |
| virtual | ~Drawable () |
| |
| virtual void | draw_edge () |
| |
| virtual void | init_default_color () |
| |
| virtual std::ostream & | get_info (std::ostream &os) const |
| |
| virtual const Color & | default_color () const |
| |
| Color & | get_color () |
| |
| const Color & | get_color () const |
| |
| virtual void | set_color (const Color &) |
| |
| virtual void | set_alpha (float alpha) |
| |
| void | apply_color () const |
| |
| void | apply_edge_color () const |
| |
| void | apply_default_color () |
| |
| void | apply_selected_color () |
| |
| void | set_line_width (float) |
| |
| float | get_line_width () const |
| |
| float & | get_line_width () |
| |
| void | apply_line_width () const |
| |
| bool | is_visible () const |
| |
| void | set_visible (bool) |
| |
| void | paint () |
| |
| void | paint_edge () |
| |
| unsigned int | get_item_glkey () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< Base > &set) const |
| |
| std::list< SetOf< Base > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< NodeInteraction > &set) const |
| |
| std::list< SetOf< NodeInteraction > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< BodyInteraction > &set) const |
| |
| std::list< SetOf< BodyInteraction > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
| | PropClass () |
| |
| virtual | ~PropClass () |
| |
| T & | new_object () |
| |
| T & | get () |
| |
| const T & | get () const |
| |
| bool | prop_exist () const |
| |
| void | add_prop (Core::Prop< Bond > *) |
| |
| void | remove_prop (Core::Prop< Bond > *) |
| |
| std::string | info () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< Bond > &set) const |
| |
| std::list< SetOf< Bond > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< Spring > &set) const |
| |
| std::list< SetOf< Spring > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
| | Register () |
| |
| virtual | ~Register () |
| |
| void | erase_from_all_setof () |
| |
| bool | belong_to_setof (const std::string &setOfId) const |
| |
| bool | belong_to_setof (const SetOf< RepulsiveSpring > &set) const |
| |
| std::list< SetOf< RepulsiveSpring > * > & | get_setof_list () |
| |
| unsigned long long int | get_numeric_ID () const |
| |
a bond spring that works only in tension
This class derives from the Spring class. An RepulsiveSpring is just a Spring that works only in compression (it means that the spring is only repulsive not attractive). The RepulsiveSpring are mainly used by the granoo-cooker utility tool during the relaxing process.