Spherical Harmonics

Hi,
I’d like to draw Spherical Harmonics as they’re definied here by Paul Bourke:

http://paulbourke.net/geometry/sphericalh/

I get something with my GH definition but the final result is missing… Could anybody have a look and tell me where I go wrong ?
Many thanks …
GH_Spherical_Harmonics.ghx (225.3 KB)

Is there a particular reason why you’re not using a scripting component?

1 Like

SPH.gh (9.2 KB)

2 Likes

Hi Ivelin,
No particular reason excep tthat I’m a noob (triyng to impove myself…).
Thank you very much for the answer, I guess you made in seconds what I tried during hours…

Oh, I’m a noob myself.

As for the quickness, what I did is translate the C code from the page you posted into Python. You can see how similar they are.

Hey Ivelin
, you better do that to have the real shape of the Spherical Harmonics.
image
spherical hatmonics bourke.gh (12.7 KB)
It seems faster in C#

4 Likes

I couldn’t figure out how to create the form. :smiley:

See, @vergez.fabrice, I’m noob as well. :wink:

@laurent_delrieu, what is that component you’re using?
Could this be mimicked by a combination of OOTB GH components?

it is mesh from points, it is from MeshEdit,
http://grasshopperdocs.com/components/meshedit/meshFromPoints.html
It could surely be replaces by the surface from points Fabrice used.

Yeah, I guess you can do it with surfaces as well :slight_smile:

Here the script from @vergez.fabrice with some changes, a graft is added, some components removed


GH_Spherical_Harmonics.ghx (224.7 KB)

3 Likes

Could either of you tell me what these goo blobs are good for?

It is used a lot to calculate the earth gravity field. So it could represent the geoid (iso gravity surface or mean sea level)
It is mandatory to predict satellites trajectories …

1 Like

Thank “God” for the wind :smiley:

" The perfect blossom is a rare thing. You could spend your whole life looking for one, and it would not be a wasted life”"… or would it

1 Like

Maybe, but surely a poet meanwhile :smiley: :smiley:

The perfect blossom is a rare thing. You could spend your whole life looking for one, and it would not be a wasted life”

For myself, I consider that some parameters give nices shapes…

Thank you again for the help and also @laurent_delrieu.

given that the sample illustrations according to Wiki assumes the absence of wind and current, these shapes would never occur in nature? what do the shapes look like if you include wind and currents or is that beyond the scope of the math?

Yep! I encourage you to solve the Navier-Stokes equations and get the 1 million bucks :smiley:

1 Like

thank you, and as far as an answer to the infinite smoothness problem in the N-S Equations, I solved it: they don’t exist and there is no answer to the problem! :wink:

I wouldn’t apply for the reward with that answer. :smiley:

You know, mathematicians are weird breed. When they could not solve some equations with integers, they invented the fractions, when that didn’t work they invented “real” numbers with sign “-” in front, when that didn’t work, they imagined the complex numbers. And when that didn’t work they started inventing multiple (over 3) dimensions to make the number of equations equal the number of unknowns.

I think there is a solution but someone has to imagine or invent something else that doesn’t yet exist. :wink:

1 Like

of course I am joking, I dont have he math skills to even try to prove it but from a distant perch, I sounds similar to other physical events where the math rules apply up to a certain point and then extreme areas of the event, the event descends into chaos.
For example, you may have read or remember the Long-Term Credit Corp collapse where to Nobel laureates in economics had as theory of how to maximize the movement of the credit market. The theory worked 95% of the time, except when the 5% occurred and the market collapsed with a $20B debt. I have a sneaking suspicion that the Boeing 737 problem is related in that the calculations applied in designing the software couldn’t take into account the exponential occurrence of further disruptions. But these are just speculations., I appreciate your suggestion, however. I learned something today…!

1 Like