Physics package¶
Submodules¶
Physics.Notions module¶
-
class
Physics.Notions.
Mesh
(filename, **kwargs)¶ Bases:
object
-
property
areas
¶ Mesh areas
-
property
attr
¶
-
check
()¶ Check the mesh is valid or not
-
is_closed
()¶ Check the mesh is closed or not
-
property
max_
¶ Mesh maximum value
-
property
min_
¶ Mesh minimum value
-
property
normals
¶
-
property
points
¶
-
precalculus
()¶
-
remove_empty_areas
(data)¶
-
property
units
¶ Mesh unit vectors
-
update_areas
(normals=None)¶
-
update_max
()¶
-
update_min
()¶
-
update_normals
(update_areas=True)¶ Update the normals and areas for all points
-
update_units
()¶
-
property
vectors
¶
-
property
x
¶
-
xyz
()¶
-
property
y
¶
-
property
z
¶
-
property
-
class
Physics.Notions.
Shape
(name: str = 'CYLINDER', **kwargs)¶ Bases:
object
-
PREDEFINED_FORMS
= ['CYLINDER', 'SPHERE', 'CUBE', 'PARALLELEPIPED', 'CONE', 'PYRAMID', 'TORUS']¶
-
getCoG
(volume)¶
-
getInertia
(volume)¶
-
getMass
(rho=1.0) → float¶
-
getVolume
()¶
-
mesh
¶
-
name
¶
-
-
class
Physics.Notions.
State
(name: str = 'State', rf: Physics.Notions.Reference_Frame = Reference Frame object: -id : 0; -coordinate system : cartesian; -metric : euclidean., *args)¶ Bases:
object
-
R_T
= 6378000.0¶
-
T_side
= 86164.1¶
-
a
¶ alias of
Physics.Quantities.Acceleration
-
all_metrics
= ['euclidean']¶
-
all_states_name
= ['horizontal', 'equatorial', 'ecliptic', 'galactic']¶
-
all_states_varname
= [['x', 'y', 'z'], ['r', 'theta', 'z'], ['r', 'theta', 'phi']]¶
-
earth_rot_vel
= 7.29211505392569e-05¶
-
property
name
¶
-
p
¶ alias of
Physics.Quantities.Position
-
property
ref_frame_id
¶
-
property
state
¶
-
v
¶ alias of
Physics.Quantities.Velocity
-
Physics.Object module¶
Created on Tue May 26 23:36:49 2020
@author: ewn
-
class
Physics.Object.
Orbit
¶ Bases:
object
-
convert_state
(state_name, save_change_state=True, *args)¶
-
state2real_state
(earth_rot_vel, R_T, t)¶
-
-
class
Physics.Object.
Physical_Object
(rfi: Physics.Notions.Reference_Frame, sti: Physics.Notions.State, mass: float = 0, shi: Physics.Notions.Shape = None)¶ Bases:
object
-
property
inertia
¶
-
property
mass
¶
-
reference_frame
¶
-
rf
¶ alias of
Physics.Notions.Reference_Frame
-
sh
¶ alias of
Physics.Notions.Shape
-
shape
¶
-
st
¶ alias of
Physics.Notions.State
-
state
¶
-
property
volume
¶
-
property
Physics.Quantities module¶
Created on Sun Apr 19 13:43:47 2020
@author: ewn
-
class
Physics.Quantities.
Acceleration
(a0x: float = 0, a0y: float = 0, a0z: float = 0, a0theta: float = 0, a0phi: float = 0, a0delta: float = 0)¶ Bases:
object
-
property
delta
¶
-
norm
()¶
-
property
phi
¶
-
property
theta
¶
-
property
x
¶
-
property
y
¶
-
property
z
¶
-
property
-
class
Physics.Quantities.
Force
(name: str = 'force', rfi: Physics.Notions.Reference_Frame = Reference Frame object: -id : 1; -coordinate system : cartesian; -metric : euclidean., fx: float = 0.0, fy: float = 0.0, fz: float = 0.0, xc: float = 0.0, yc: float = 0.0, zc: float = 0.0)¶ Bases:
object
-
distance
(x0, y0, z0)¶
-
norm
()¶
-
property
x
¶
-
property
xc
¶
-
property
y
¶
-
property
yc
¶
-
property
z
¶
-
property
zc
¶
-
-
class
Physics.Quantities.
Inertia
(xx: float = 0.0, xy: float = 0.0, xz: float = 0.0, yx: float = 0.0, yy: float = 0.0, yz: float = 0.0, zx: float = 0.0, zy: float = 0.0, zz: float = 0.0)¶ Bases:
object
-
property
xx
¶
-
property
xy
¶
-
property
xz
¶
-
property
yx
¶
-
property
yy
¶
-
property
yz
¶
-
property
zx
¶
-
property
zy
¶
-
property
zz
¶
-
property
Physics.STL module¶
-
class
Physics.STL.
parser
¶ Bases:
object
-
BUFFER_SIZE
= 4096¶
-
COUNT_SIZE
= 4¶
-
HEADER_SIZE
= 80¶
-
MAX_COUNT
= 1000000.0¶
-
STLDTYPE
= dtype([('normals', '<f4', (3,)), ('vectors', '<f4', (3, 3)), ('attr', '<u2', (1,))])¶
-
b
(encoding='ascii', errors='replace')¶
-
from_ascii
(fh, header)¶
-
from_binary
(fh, header)¶
-
s
()¶
-
write_ascii
(name)¶
-