Skip to content

Commit

Permalink
remove f3prime function
Browse files Browse the repository at this point in the history
  • Loading branch information
m-julian committed Oct 16, 2024
1 parent 35060f5 commit df2ddb0
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions ichor_core/ichor/core/multipoles/hexadecapole.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,27 +371,6 @@ def f3(
return dipole_alpha * oct_prime + dipole_prime * oct_beta_gamma_chi


# TODO: remove this function after hexadecupole works
def f3prime(gamma, beta, alpha, dipole, octupole, displacement_vector):

dipole_term = dipole[gamma]

displacement_alpha = displacement_vector[alpha]
displacement_beta = displacement_vector[beta]
displacement_gamma = displacement_vector[gamma]

return (
0.5
* dipole_term
* (
4 * displacement_beta * displacement_alpha**2
- displacement_beta**3
- displacement_beta * displacement_gamma**2
)
+ displacement_gamma * octupole[beta, alpha, alpha]
)


def f4(alpha, beta, gamma, chi, quadrupole, displacement_vector):

theta_alpha_beta = quadrupole[alpha, beta]
Expand Down Expand Up @@ -601,10 +580,7 @@ def G(alpha, beta, gamma, chi, dipole, quadrupole, octupole, displacement_vector
)
term2 = 10.5 * (
f3(beta, gamma, alpha, alpha, dipole, octupole, displacement_vector)
+ f3(
gamma, beta, alpha, alpha, dipole, octupole, displacement_vector
) # TODO: remove this comment after hexadecupole works
# f3prime(gamma, beta, alpha, dipole, octupole, displacement_vector)
+ f3(gamma, beta, alpha, alpha, dipole, octupole, displacement_vector)
)
term3 = 3 * (
f3(beta, gamma, beta, beta, dipole, octupole, displacement_vector)
Expand Down

0 comments on commit df2ddb0

Please sign in to comment.