|
| ContactBond (Element &el1, Element &el2) |
| constructor More...
|
|
virtual | ~ContactBond () |
| destructor More...
|
|
void | init () |
| a method that must be overridden from the Bond class. In this case, it does nothing. More...
|
|
virtual void | update () |
| a method that must be overridden from the Bond class. In this case, it does nothing. More...
|
|
virtual void | compute_load () |
| a method that must be overridden from the Bond class. In this case, it just calls the Bond::compute_load() method. More...
|
|
virtual double | compute_critical_time_step () const |
| this method is not implemented, it triggers an assertion if it is called. More...
|
|
virtual std::string | info () const |
| Display some useful info in the terminal
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...
|
|
virtual double | get_linear_stiffness () const |
| compute the linear stiffness of the bond More...
|
|
virtual double | get_angular_stiffness () const |
| similar as get_linear_stiffness() for rotation 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< ContactBond > &set) const |
|
std::list< SetOf< ContactBond > * > & | get_setof_list () |
|
unsigned long long int | get_numeric_ID () const |
|
this class is able to transform a regular contact into a bond
This class is a trick class able to transform a regular contact into a standard. In certain conditions it should be useful to consider (persistent) bonds instead of (vanishing) contacts. For example, if you want to compute virial stresses, these feature is possible only with bond. So, you can use this trick to transform a contact into bond. Note that this process is time consuming and could have a non negligible impact on the computational performance. Note that this option is only available with the HertzMindlin
and Standard2
contact callbacks (To learn how to use it, you can take a look into the 00016
example).
- Warning
- this is an experimental feature