Universe Simulator

More
20 years 10 months ago #7931 by Rudolf
Replied by Rudolf on topic Reply from Rudolf Henning
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">A galaxy collision is going to be a lot less organized than this, I'm afraid. Different parts of it will be accelerating in different directions and by different amounts and at different times. The leading edges will have been interacting for many TimeIntervals before the centers even begin to feel something, for example<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

I can't agree more. I'll worry about that when I get that far. This is going to be a interesting project and surely will have some challenges along the way. However I'll have to crawl before I can walk or run.

Rudolf

Please Log in or Create an account to join the conversation.

More
20 years 10 months ago #8055 by Rudolf
Replied by Rudolf on topic Reply from Rudolf Henning
I got a question for you Larry,

Looking at
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
save new postion of star 2
* p[x] = v[x] * TimeInterval
* p[y] = v[y] * TimeInterval
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

should'nt it rather be something like

* p[x] = p[x] + (v[x] * TimeInterval)
* p[y] = p[y] + (v[y] * TimeInterval)

?

Rudolf

Please Log in or Create an account to join the conversation.

More
20 years 10 months ago #8312 by Larry Burford
Ruddolf,

I do believe you are right. New position = present position + change in position during current TimeInterval. Just like the velocity formulas.

Sorry about that.

Please keep a sharp eye on the details. Like I said, I don't have as much time as I would like to play with stuff like this.

LB

Please Log in or Create an account to join the conversation.

More
20 years 10 months ago #8128 by Larry Burford
[Rudolf] ]"Once I have a set of vectors (vector for each gravitational influence of another body) I should be able to just add these (vectors) up and the result would be the net acceleration which I can use to calculate the final positional change in the X time-slice time frame."

Ah yes. I thought you were talking about several galaxies, but I see now that you meant several stars. And you are right, this is a good plan of attack.

You don't have to wait until you have them all, you can add them on the fly. (Same difference.)

Please Log in or Create an account to join the conversation.

More
20 years 10 months ago #7938 by Rudolf
Replied by Rudolf on topic Reply from Rudolf Henning
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">You don't have to wait until you have them all, you can add them on the fly. (Same difference.)
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Your algorithm do follow that idea anyway I believe (acceleration used as a vector)

I made some progress but being busy with work (the income type) I have not had too much time for this yet. The basics are already starting to take shape but I know there's going to be some refinement needed.

BTW. would you be able to 'read' basic (like in VB.Net)? There is a free IDE/compiler available at www.icsharpcode.net/OpenSource/SD
This way I could send you progress updates and you can comment on it if you like. Keep in mind that the language is not as important as developing the algoritms/process for me (for now). When it gets to optimizing for performance I might very well have to go to C/C++.

Thanks

Rudolf

Please Log in or Create an account to join the conversation.

More
20 years 10 months ago #7968 by Larry Burford
I can read Basic, C & C++, Pascal and get by with a few more. I have VisualStudio 6.0 (Ent Ed) plus PowerBasic, Delphi and several other compilers and interpreters at home.

There will probably be times when I'm not able to do a review right away ... but I'm willing to give it a try.

LB

Please Log in or Create an account to join the conversation.

Time to create page: 0.296 seconds
Powered by Kunena Forum