|
|
"Jaap Frank" <jjf### [at] xs4allnl> wrote in message news:3e20f2e3@news.povray.org...
> Hello,
>
> Version 3_8 is made with hand-derived functions
> and is limited to n = 4 (main quantum number).
> Version 4_1 is extended to n = 10 and uses
> computer generated derivatives. There is a slight
> difference between the results, but I can't find the cause
> of this. Somehow the waves are a little bit bigger with 4_1.
Tor Olav have found it and shame on me:
>There seems to be some cut-n-paste errors
>in your Sigma_n_l() function. CS_5 and
>CS_6 are repeated several times in place
>of CS_7 -> CS_10.
He 's definitely right. Change the last CS_constants into
CS_7 -> CS_10. (starting in line 241)
Now the clouds are the expected dimension.
Starting in line 106 of the file you find:
#switch (n) // Switch container radius for electron cloud.
#case (1) #declare Radius = 7.1/Exp; #break
#case (2) #declare Radius = 17/Exp; #break
#case (3) #declare Radius = 30/Exp; #break
#case (4) #declare Radius = 50/Exp; #break
#case (5) #declare Radius = 70/Exp; #break
#case (6) #declare Radius = 90/Exp; #break
#case (7) #declare Radius = 115/Exp; #break
#case (8) #declare Radius = 140/Exp; #break
#case (9) #declare Radius = 165/Exp; #break
#case (10) #declare Radius = 190/Exp; #break
Change this part too from 7 to 10. The Radius
can now be much smaller.
Now the bug is gone, there's no need for Version 3_8
anymore. That's history now.
Tor Olav has suggested several speed optimizations and
is checking more possibilities. If that's all done, I will post
that, if anyone is interested.
Regards,
Jaap Frank
PS
> ('l' : this is the letter 'l' that follows the letter 'k'. With my font
> this is almost equal to the number 1. I'll put them between
> ''.)
I hope everybody has understand that 'letter' should be
'character'. 'Letter' is the dutch word for it and because
it's an normal english word, I've not noticed that I used it
wrong.
Post a reply to this message
|
|