Originally posted by dio82:
I just (OK it became a monster post) want to add this to _et_'s post:
In physical simulations you usually try to solve problems using the Finite Elements Analysis method. Here one "chops" up the domain for which one tries to find a solution (e.g. earth atmosphere for weather) into several hundred thousand to million nodes (actually control volumes).
For each node one then setups the mathematical dependancies which describe the relationships of the variables with each other. One should note that these dependancies only purely describe what crosses the boundaries of the node in which quantities.
The actual condition inside the node is partially a byproduct of the calculations and partially must be interpolated from the calculated information of what crosses the boundaries (This step is usually done in post processing and is calculated in realtime depending on what you want to visualize).
One usually has something like 12-40 simultaneous partial differential equations per node (at least in CFD which is my specialization) which depend upon the information which is given to them from the surrounding nodes (4-12 usually), which depend themselves each on 12-40 simultaneous partial differential equations, which depend upon the information of 4-12 different nodes....
I think you get the idea
It then all boils down to an extremely complex web of several tens of millions of partial differential equations which have to be solved _simultaneously_.
To make things more complicated, the structure of the nodes adapts itself during runtime to the situation in order to build a finer mesh in critical areas, or to reduce the number of nodes in non critical areas...
The problems with parallel processing are quite evident now. In order to do parallel processing the "bonding" that connects the equations has to be broken up. This is the real crunch point!
As you all should know from your maths lessons in school, if you have eg. 5 equations and 5 unknowns, you cannot simply take 2 equations and calculate from these 2 the actual solution of unknown 1 and unknown 2 alone.
BUT this has to be exactly done in order to do parallel processing!!!
This should give one a dimension of what mathematical "deep magic" actually the people do with natural sciences DC projects.