Skip to content

Commit

Permalink
🎨 add doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
apearce committed Nov 5, 2024
1 parent c4ad18c commit a87fa0f
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions process/sctfcoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7187,9 +7187,17 @@ def _inductance_factor(H, Ri, Ro, Rm, theta1):
)


@staticmethod
def lambda_term(tau, omega):
"""
words
"""Lambda Term
Author: Alexander Pearce, UKAEA
:param tau: tau_{s,k} = (R_{s,k} - R_{c,k}) / R_k
:param omega: omega_k = R_{c,k}/R_k
The lammbda fucntion used inegral in inductance calcuation found
in Y. Itoh et al. The full form of the functions are given in appendix A.
"""
p = 1.0 - omega**2.0

Expand All @@ -7205,9 +7213,20 @@ def lambda_term(tau, omega):
return integral


@staticmethod
def _theta_factor_integral(Ro_vv, Ri_vv, Rm_vv, H_vv, theta1_vv):
"""
words
"""Theta Factor Integral
Author: Alexander Pearce, UKAEA
:param Ro_vv: the radius of the outboard edge of the VV CCL
:param Ri_vv: the radius of the inboard edge of the VV CCL
:param Rm_vv: the radius where the maximum height of the VV CCL occurs
:param H_vv: the maximum height of the VV CCL
:param theta1_vv: the polar angle of the point at which one circular arc is
joined to another circular arc in the approximation to the VV CCL
The calcuation of the theta factor found in Eq 4 of Y. Itoh et al. The
full form of the integral is given in appendix A.
"""
theta2 = np.pi / 2.0 + theta1_vv
a = (Ro_vv - Ri_vv) / 2.0
Expand Down

0 comments on commit a87fa0f

Please sign in to comment.