Giter Club home page Giter Club logo

vswf's People

Contributors

lemoer avatar

Watchers

 avatar

vswf's Issues

Fix vswf() calculation...

 def coord_s2c(r, theta, phi):
     x = r * np.sin(theta) * np.cos(phi)
     y = r * np.sin(theta) * np.sin(phi)
@@ -274,7 +266,7 @@
     elif c == 4:
         rl = spherical_hn2

-    _, vsh_lm_theta, vsh_lm_phi = vec_sph_harm(tau, l, m, theta, phi)
+    _, vsh_lm_theta, vsh_lm_phi = vec_sph_harm(tau, l, m, theta, phi) # This is either called Xlm or Zlm (depending on tau)

     if tau == 1:
         rl_res = rl(l, k*r)
@@ -284,18 +276,18 @@
         f_r = 0
     elif tau == 2:
         rl_intermed = rl(l, k*r)/(k*r)
-        rl_res = rl_intermed + rl(l, k*r, derivative=True)
+        rl_res = rl_intermed + rl(l, k*r, derivative=True) #rl(l, k*r) # rl(l, k*r, derivative=True) #

-        f_theta = 1j*rl_res * vsh_lm_theta
-        f_phi = 1j*rl_res * vsh_lm_phi
-        f_r = -rl_intermed*np.sqrt(l*(l+1))*my_sph_harm(l, m, theta, phi)
+        f_theta = rl_res * vsh_lm_theta
+        f_phi = rl_res * vsh_lm_phi
+        f_r = rl_intermed*np.sqrt(l*(l+1))*my_sph_harm(l, m, theta, phi)
     else:
         raise NotImplemented('NIY')

     return f_r, f_theta, f_phi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.