Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Off-Topic > Rotation of the spherical harmonics
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
20.Sep: FOURTH CHAPTER IN `HISTORY OF...` PUBLISHED
13.Sep: NEWS ON THE FLY
06.Sep: APOLYTON DONATES TO HURRICANE RELIEF

bottom of page
   - CIVILIZATION 3 $9.99 - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - ALPHA CENTAURI + ALIEN CROSSFIRE (laptop collection) from $19.99 - ALPHA CENTAURI PC $9.99 -->
Author
Thread   
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 03:08 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Rotation of the spherical harmonics Support Apolyton buy from Amazon

Any good references out there?

Basically, my problem is that I have the coefficients of the spherical harmonic decompositon of a function defined on the sphere. The only way I was able to write these down was to define my z axis such that the function was properly azimuthally symmetric.

My decomposition therefore has Clm = 0 if m is not 0.

What I want to be able to do is transform this decomposition into another basis with new z axis pointing in arbitrary theta, phi direction

What I remember of this is that the transformation involves only a sum over m's (not l's) therefore it shouldn't take too much computer time to do (which is good, because I have to transform the bases approximately 3 million times, before doing some other manipulations)

this has something to do with the wigner-eckart theorem, but I don't want to think too hard about it. Therefore, the more cookbooky the reference gets the better.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 03:11 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Avatar Enlargement: We've got the solution

I'm already getting way too clever for my own good right now.

I used Rodrigues' formula today. That wasn't something I expected to do.

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:37
  Old Post 08-06-2005 03:12
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization 2

Richelieu is offline Richelieu
Warlord
Gatineau
Dec 2001
time: 00:37
  Old Post 08-06-2005 03:33
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Re: Rotation of the spherical harmonics Got spare money?

quote:
Originally posted by KrazyHorse
Any good references out there?

Basically, my problem is that I have the coefficients of the spherical harmonic decompositon of a function defined on the sphere. The only way I was able to write these down was to define my z axis such that the function was properly azimuthally symmetric.

My decomposition therefore has Clm = 0 if m is not 0.

What I want to be able to do is transform this decomposition into another basis with new z axis pointing in arbitrary theta, phi direction

What I remember of this is that the transformation involves only a sum over m's (not l's) therefore it shouldn't take too much computer time to do (which is good, because I have to transform the bases approximately 3 million times, before doing some other manipulations)

this has something to do with the wigner-eckart theorem, but I don't want to think too hard about it. Therefore, the more cookbooky the reference gets the better.




This is another one of your drunk threads right? You're actually asking for the recipe for a martini, but you're too drunk to type, right?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:37
  Old Post 08-06-2005 03:45 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon

Du musst erst den Nippel durch die Lasche ziehen...

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 03:47 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Inflate your Upload Space

Not drunk yet. Might be soon.

Not on martinis, though. Time for more bloody marys

Last night I had a litre and a half of wine but that only kept me buzzing for about 2 hours.

7 or 8 bloody marys ought to do a better job.

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:37
  Old Post 08-06-2005 04:21
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Probably useless, but couldn't you substitute in x-y-z coordinates, do a normal rotation, and then translate back into spherical?

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 04:49 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Lose 30 kilos (of popups)

Uh. Yeah. Extremely useless. That computation takes too long.

In the end IIRC it would be of order (n^3)logn

My way should be n^2

That's the difference between 12 hours on these machines and ~1000 years.

If I was willing to accept a (n^3)logn method then I could have just done it the dumb, straightforward way. (point by point addition)

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 04:54 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

The dude who I'm doing work for this summer is going to get his socks blown off tomorrow when I tell him what I'm up to.

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:01 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Have you considered a bottom-up approach?

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:07 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Increase Your PM Length

huh?

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:10 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton buy from Amazon

Man, these marys are strong.

Two knocked back and I'm starting to really feel it.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:12 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Anybody who's supposed to be a computer scientist should know this. It seems way to useful for 3-D graphics not to be a standard problem

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:14 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

In that case maybe I should read it.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:16 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I also had to write my own goddamn sphercial harmonic decomposition program because it doesn't seem to be a standard fpart of an liberary i can find.

bastards.

I used to shudder every time I saw the spherical harmonics in a classas.

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:19 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Suffering from ads?

Break this down for me.

You want to transform a matrix?

MrFun is offline MrFun
King
of Iowa
Nov 2000
time: 23:37
  Old Post 08-06-2005 05:19 Visit MrFun's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton buy from Amazon

What is more scary than a drunk person?




A drunk genius who has diabolical plans to take over the world.

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:23 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Get a bigger avatar today!

Are you using (have you considered using) Legendre polynomials?

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:30 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Enter the AD-FREE zone

I want to transform an orthonormal basis for the set of (complex) scalar functions on the unit sphere

This orthonormal basis is called the spherical harmonics. Each element of this basis is the angular portion of the solution to laplace's equation in spherical coordinates. Think of an expansion in spherical harmonics as being similar to a fourier expansion, except with a different basis set. Fourier expansion is good for describing functions on a lone or a plane. The bessel functions ar good for circles and cyliners. The spherical harmonics are good for spheres.

Since the space is two dimensional there is a 2 dimensional infinite basis set, called the Ylm's (spheriacal hamonics). L despcribles what happens along polar angles. m describes what happens along azimuthatl angles. If there is azimuthal symmetry to your function (rotational symmetry about the z axis), then any coefficient other than the m = 0 ones will be 0, and your Yl0's will look like the legendre polynomials operationg on cos theta (instead of x)

The nice thing about rotations on a function decomposed into spherical harmonic coefficients is that mixing happens only at a single l (i.e. coefficients with different l's have no effect on each other). I just don't know what the transforations look like exactly. I used to , but that was during my graduate QM class (which I took in undergrad about 4 years ago)

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:30 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by Asher
Are you using (have you considered using) Legendre polynomials?


Spherical harmonics are closely related to the (associated) Legendre polynomials

C'm on asher...

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:32 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy Civilization 2

Come on, man, I came up with all this **** by myself.

Somebody has to have done this before me. This **** is an obfvious usage of transformation into an orthionaolrmal basis with nice properties (which have been well-expolored due to hardass pahysicists like Wigner and Dirac)

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:33 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Increase the size of your Attachments

No clue bud, never particularly dealt with that.

We don't use spheres in 3D graphics for one thing.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:35 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Browse Apolyton AD-FREE

It seems to me like this woul d be an extremely useful method to rotate objects in 3-D gracphics, sindce any 3-D object (which does not cross itself aong radial lines, and this rpoblem could proabably be solved by decomposing an object into a relatively small number of pieces) can bes describes as a function (distance from arbitrary centre) which depends on theta and phi, and which can thus be decompsed into spherical harmonics.

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:37
  Old Post 08-06-2005 05:40 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Avatar Enlargement: We've got the solution

It doesn't sound particularly efficient.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:41 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Put an end to popups!

Come on, asher.

You don't use spheres in 3-D graphics but the whole point is that your function to be decomposed can despcribe radial distance from an arbitrary centre point.

Like if I wanted to describe an ellipsoid I could write it as r = sqrt(a^2cos^2theta + b^2sin^2theta cos^2 phi + c^2 sin^2 theta sin^2 phi)

other objects can be modelled fairly simply using discrete spherical harmonic demcomposition and then rortated. You have a free hand when it comes to your resolution (depends on how high you go with l), and the object would be automatically smootherd.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:43 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Would have no articficail planes that come from usual vertex decomposition

Everything would be smoothly curved, as you want it to be.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:44 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Increase the size of your Attachments

http://mathworld.wolfram.com/SphericalHarmonic.html

scroll down for images of the first few spherical harmonics.

Oerdin is offline Oerdin
King
of Internet Music.
Sep 2001
time: 21:37
  Old Post 08-06-2005 05:44
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Don't you get spherical harmonics in the atoms of a molecule? I know you do get harmonic vibrations between individual atoms of a molecule.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:46 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Enter the AD-FREE zone

OF course you do. Wavefucntions of an electron in a coulomb potential give spherical harmonics as solutions.

Harmonic vibrations between atoms is not really relevant to spherical harmonics. That's a radial effect. Spherical harmonics define angeular dependence.

KrazyHorse is offline KrazyHorse
King
Macedonia
May 2001
time: 00:37
  Old Post 08-06-2005 05:52 Visit KrazyHorse's homepage!
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Increase the size of your Attachments

in other words, s electrons (l = 0) all have angular dependence like Y00 (they are rotationally spymemtric on sphere)

for a p electron, there are 3 choices. They can look like Y1-1, Y10 and Y11 (this is why there are 6 electrons in each with p in each shell; you have to multiply by two bfro the spin degrees of freedom)

for a d electron there are 5 choices Y2-2, Y2-1, Y20, Y21 and Y22

etc.

since the nth electron shell only lallows l values from 0 to n (comes from lapalce's equation) wyou get a total of 2 * (1 + 3 + 5 + ... + (2n+1)) in each shell = 2n^2 electrons, which gives the electronic structiure of the pericodic table.

 
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:37.
Apolyton Time is 00:37.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0549 seconds (80.37% PHP - 19.63% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net