Skip to content

Commit 8fb3415

Browse files
committed
coord_system3d: doc
1 parent 2f7cc5e commit 8fb3415

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fluidsim/operators/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
sphericalharmo
1414
op_finitediff1d
1515
op_finitediff2d
16+
coord_system3d
1617
1718
"""

fluidsim/operators/coord_system3d.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ def compute_r_theta(self):
3737

3838
def compute_cylindrical_components(self, vx, vy, vz):
3939
"""Convert (vx, vy, vz) in cylindrical coordinates (vh, vt, vz)"""
40-
4140
vh = (self.x * vx + self.y * vy) / self.rh_not0
4241
vt = (-self.y * vx + self.x * vy) / self.rh_not0
4342
return vh, vt, vz
4443

4544
def compute_radial_component(self, vx, vy, vz):
46-
"""Compute radial component"""
45+
"""Compute (spherical) radial component"""
4746
return (self.x * vx + self.y * vy + self.z * vz) / self.r_not0
4847

4948
def compute_spherical_components(self, vx, vy, vz):

0 commit comments

Comments
 (0)