A MBDyn body with a mass, a center of mass and and an inertia matrix.
A body needs to be attached to a node, so the body properties are
provided according to the node reference frame. There is usually no need
to use the set_relative_from
method, but it may be used
anyway to set an different center of mass by using a reference frame.
Example of use:
|
|
|
set_default(self)
Set the default definition of a body, those values will stay
unless specify by the user |
source code
|
|
|
|
|
set_mass(self,
value,
com=None)
Set the mass of the body |
source code
|
|
|
set_center_of_mass(self,
*args,
**kargs)
Set the relative center of mass for the body according to the node
reference frame |
source code
|
|
|
set_inertia_matrix(self,
*args,
**kargs)
Set the inertia matrix on the body, by default in the node
reference frame |
source code
|
|
Inherited from elements_base.ElementWithNode :
attach_to_node ,
set_node_label
Inherited from elements_base.CommonElement :
do_as_init ,
update
Inherited from common.BasicObject :
get_lines ,
get_mbdyn_instance ,
set_comment ,
set_label ,
set_name ,
set_simulation_ref
Inherited from record.Record :
common_init_results ,
init_results ,
save ,
set_own_parameters ,
will_save ,
will_save_nothing ,
will_save_only
Inherited from record.RecordBase :
collect_own_parameters ,
collect_parameters ,
set_own_para ,
set_parameters
|