Example #1
0
        public override VCase Initialize(VNewCase newProject)
        {
            var vCase = new VCase();

            vCase.Name    = newProject.CaseName;
            vCase.CaseDir = InitCaseDir(newProject);

            InitSowfaNormal(newProject, vCase);
            //InitAblPisoSolver(newProject, vCase);
            //InitWindPlant(newProject, vCase);
            InitMesoWind(newProject, vCase);
            InitWindWave(newProject, vCase);

            CaseHandler.Write(vCase);
            return(vCase);
        }
        public override VCase Initialize(VNewCase newProject)
        {
            var vCase = new VCase();

            vCase.Name    = newProject.CaseName;
            vCase.CaseDir = InitCaseDir(newProject);

            var pdir = InitProjectDir(newProject, newProject.ProjectDescriptor.Name);
            var proj = new VProject
            {
                DisplayName       = newProject.ProjectDescriptor.Name,
                ProjectDir        = pdir,
                ProjectDescriptor = newProject.ProjectDescriptor,
                ProjectModel      = newProject.ProjectDescriptor.CreateProjectModel()
            };

            proj.Initialize();
            vCase.Items.Add(proj);

            CaseHandler.Write(vCase);
            return(vCase);
        }