aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2007-07-22 02:21:10 +0000
committerAdam Frisby2007-07-22 02:21:10 +0000
commitf64570585182ec1ac41ec3e9472f9d1d53bea488 (patch)
treebe8416d9f35d4532d5ab0f47f55314a187a7f10b /OpenSim
parent* Ported Jos Stam's Navier Stokes algorithm from his GDC2003 Paper to C# and ... (diff)
downloadopensim-SC-f64570585182ec1ac41ec3e9472f9d1d53bea488.zip
opensim-SC-f64570585182ec1ac41ec3e9472f9d1d53bea488.tar.gz
opensim-SC-f64570585182ec1ac41ec3e9472f9d1d53bea488.tar.bz2
opensim-SC-f64570585182ec1ac41ec3e9472f9d1d53bea488.tar.xz
* More navier-stokes fun. Will finish it later.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/NavierStokes.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/NavierStokes.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/NavierStokes.cs
index 3eae46b..df42487 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/NavierStokes.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/NavierStokes.cs
@@ -206,7 +206,21 @@ namespace libTerrain
206 nsProject(N, ref u, ref v, ref u0, ref v0); 206 nsProject(N, ref u, ref v, ref u0, ref v0);
207 } 207 }
208 208
209 public void navierSimulate() 209 private void nsBufferToDoubles(ref double[] dens, int N, ref double[,] doubles)
210 {
211 int i;
212 int j;
213
214 for (i = 0; i <= N; i++)
215 {
216 for (j = 0; j <= N; j++)
217 {
218 doubles[i, j] = dens[nsIX(i, j, N)];
219 }
220 }
221 }
222
223 private void nsSimulate(int N, int rounds, double dt, double diff, double visc, double force, double source)
210 { 224 {
211 225
212 } 226 }