public JsonResult DomainSetupSave(VDomainSetup m)
        {
            var sd = GetSolverData();
            sd.BlockMeshDict.vertices[1].X = m.Width;
            sd.BlockMeshDict.vertices[2].X = m.Width;
            sd.BlockMeshDict.vertices[5].X = m.Width;
            sd.BlockMeshDict.vertices[6].X = m.Width;

            sd.BlockMeshDict.vertices[2].Y = m.Length;
            sd.BlockMeshDict.vertices[3].Y = m.Length;
            sd.BlockMeshDict.vertices[6].Y = m.Length;
            sd.BlockMeshDict.vertices[7].Y = m.Length;

            sd.BlockMeshDict.vertices[4].Z = m.Height;
            sd.BlockMeshDict.vertices[5].Z = m.Height;
            sd.BlockMeshDict.vertices[6].Z = m.Height;
            sd.BlockMeshDict.vertices[7].Z = m.Height;

            sd.BlockMeshDict.MeshBlocks.numberOfCells[0] = m.GridX;
            sd.BlockMeshDict.MeshBlocks.numberOfCells[1] = m.GridY;
            sd.BlockMeshDict.MeshBlocks.numberOfCells[2] = m.GridZ;

            SetSolverData(sd);
            return Json("OK");
        }
        public ActionResult DomainSetup()
        {
            Title = "Domain Setup";
            ShortTitle = "Domain Setup";

            var m = new VDomainSetup();
            var sd = GetSolverData();
            m.Width = sd.BlockMeshDict.vertices[1].X;
            m.Length = sd.BlockMeshDict.vertices[2].Y;
            m.Height = sd.BlockMeshDict.vertices[4].Z;

            m.GridX = sd.BlockMeshDict.MeshBlocks.numberOfCells[0];
            m.GridY = sd.BlockMeshDict.MeshBlocks.numberOfCells[1];
            m.GridZ = sd.BlockMeshDict.MeshBlocks.numberOfCells[2];

            return View(m);
        }