bond

class granoo3.lib.bond

Bases: granoo3.lib.base

an abstract class that represents a link between two elements

Attributes Summary

element1

return a reference to the bonded element 1

element2

return a reference to the bonded element 2

Methods Summary

apply_load(arg1)

apply the reaction forces and torques to element.

bonded_element(arg1, arg2)

return the other bonded element of the passed element.

compute_load(arg1)

compute the reaction forces and torques

current_elongation(arg1)

return the current relative elongation value

get_current_length(arg1)

return the current length

get_element1(arg1)

return a reference to the bonded element 1

get_element2(arg1)

return a reference to the bonded element 2

get_initial_length(arg1)

return the initial length

get_max_elongation(arg1)

return the maximal elongation value.

get_relaxed_length(arg1)

return the relaxed length used for reaction computation.

set_current_length(arg1, arg2)

set the value of the current length

set_initial_length(arg1, arg2)

set the value of initial length

set_max_elongation(arg1, arg2)

set the value of the max relative elongation length

set_relaxed_length(arg1, arg2)

set the value of relaxed length

Attributes Documentation

element1

return a reference to the bonded element 1

element2

return a reference to the bonded element 2

Methods Documentation

apply_load((bond)arg1) None[STATIC]

apply the reaction forces and torques to element. You need to call ‘compute_load’ first to update the reaction forces and torques values

bonded_element((bond)arg1, (element)arg2) element[STATIC]

return the other bonded element of the passed element. If the passed element is not connected to the bond it gives an error

compute_load((bond)arg1) None[STATIC]

compute the reaction forces and torques

current_elongation((bond)arg1) float[STATIC]

return the current relative elongation value

get_current_length((bond)arg1) float[STATIC]

return the current length

get_element1((bond)arg1) element[STATIC]

return a reference to the bonded element 1

get_element2((bond)arg1) element[STATIC]

return a reference to the bonded element 2

get_initial_length((bond)arg1) float[STATIC]

return the initial length

get_max_elongation((bond)arg1) float[STATIC]

return the maximal elongation value. If the current length is higher than the current elongation the spring is automatically deleted. You can set zero here if you don’t need this behavior. The elongation is computed as ‘DeltaL/L’ where ‘L’ is the current length.

get_relaxed_length((bond)arg1) float[STATIC]

return the relaxed length used for reaction computation. If the current length equals to the relaxed length, the reaction force is null.

set_current_length((bond)arg1, (float)arg2) None[STATIC]

set the value of the current length

set_initial_length((bond)arg1, (float)arg2) None[STATIC]

set the value of initial length

set_max_elongation((bond)arg1, (float)arg2) None[STATIC]

set the value of the max relative elongation length

set_relaxed_length((bond)arg1, (float)arg2) None[STATIC]

set the value of relaxed length