static void Main(string[] args) { NumericalParameters nPar = new NumericalParameters(0.01, 0.02, 0.02, 0.01, 40, 40, 50, 40, 150, 0.78, 1.4); FluidCurrentSolver solver = new FluidCurrentSolver(nPar); //DataSetFactory.Register(typeof(NetCDFDataSet)); solver.SolveAll("temp.nc"); Console.WriteLine("Done!"); }
public static void Main(string[] args) { var port = ProxyDataSet.Create("msds:nc?file=../../../temp.nc"); NumericalParameters nPar = new NumericalParameters(0.01, 0.02, 0.02, 0.01, 40, 40, 50, 40, 150, 0.78, 1.4); solver = new FluidCurrentSolver(nPar); //DataSetFactory.Register(typeof(NetCDFDataSet)); solver.SolveAll("msds:nc?file=../../../temp.nc"); Console.WriteLine("Done!"); }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { DataSetFactory.RegisterAssembly(typeof(MemoryDataSet).Assembly); solver = new FluidCurrentSolver(parameters); solver.Init("msds:memory"); dataSource = new DataSetSource3D(solver.DataSet); dynamicStreamLine.DataSource = dataSource; timer.Tick += new EventHandler(timer_Tick); timer.Start(); convolutionChart1.AddHandler(BackgroundRenderer.RenderingFinished, new RoutedEventHandler(OnRenderingFinished)); convolutionChart2.AddHandler(BackgroundRenderer.RenderingFinished, new RoutedEventHandler(OnRenderingFinished)); convolutionChart3.AddHandler(BackgroundRenderer.RenderingFinished, new RoutedEventHandler(OnRenderingFinished)); //Iteration(); }