pysces.Body¶
-
class
pysces.Body(points)¶ Base class for representing bodies
-
__init__(points)¶ Create a body with nodes at the given points
Parameters: points : 2d array, shape (n,2)
Array of points defining the boundary of the body For a closed body, the boundary curve should be positively oriented (counter-clockwise around outside of body), starting from trailing edge
Methods
__init__(points)Create a body with nodes at the given points get_body()Return the Body object in the body-fixed frame get_motion()Return the transformation from the body-fixed to inertial frame get_points([body_frame])Attributes
timeThe time used to specify the body’s motion -
get_body()¶ Return the Body object in the body-fixed frame
-
get_motion()¶ Return the transformation from the body-fixed to inertial frame
-
time¶ The time used to specify the body’s motion
-