Esempio n. 1
0
        private void THICKNESS_TUBBIN_C3_COM(object sender, EventArgs e)
        {
            List <Layer>   layers   = CreateTestTubbinessLayers();
            Class3Boundary boundary = new Class3Boundary(10, 0.8, 25 + 273.15, TemperatureCalculate.OutsideArea(layers));

            Model.TemperatureCalculate cal    = new Model.TemperatureCalculate(1600 + 273.15, boundary, layers);
            SolverControlParameter     par    = new SolverControlParameter(SolverControlParameter.ConvergenceCriterionType.RESIDUAL_OR_MAXSTEP, 0.001, 50, 0);
            ThicknessCalculate         tcal   = new ThicknessCalculate(cal, 2, 394.94, par, par);
            ThicknessSolver            solver = ThicknessSolverFactory.CreateSolver(tcal);

            solver.TemperatureSolver.UpdateTemperatureEndEvent += new UpdateTemperatureEndEventHandler(OnTemperatureSolverUpdate);
            solver.SolveStartEvent  += new ThicknessSolverStartEventHandler(OnThicknessSolveStart);
            solver.SolveUpdateEvent += new ThicknessSolverUpdateEventHandler(OnThicknessSolveUpdate);
            solver.SolveStopEvent   += new ThicknessSolverStopEventHandler(OnThicknessSolveStop);
            double lim = solver.LimitValue();

            solver.Solve();
        }
Esempio n. 2
0
        private void THICKNESS_PLATE_C2(object sender, EventArgs e)
        {
            List <Layer>   layers   = CreateTestLayers();
            Class2Boundary boundary = new Class2Boundary(1038.09, 1);

            Model.TemperatureCalculate cal  = new Model.TemperatureCalculate(1600 + 273.15, boundary, layers);
            SolverControlParameter     par  = new SolverControlParameter(SolverControlParameter.ConvergenceCriterionType.RESIDUAL_OR_MAXSTEP, 0.001, 50, 0);
            ThicknessCalculate         tcal = new ThicknessCalculate(cal, 2, 273.15 + 100, par, par);
            //ThicknessCalculate tcal = new ThicknessCalculate(cal, 2, 273.15 + 900, par, par);
            ThicknessSolver solver = ThicknessSolverFactory.CreateSolver(tcal);

            solver.TemperatureSolver.UpdateTemperatureEndEvent += new UpdateTemperatureEndEventHandler(OnTemperatureSolverUpdate);
            solver.SolveStartEvent  += new ThicknessSolverStartEventHandler(OnThicknessSolveStart);
            solver.SolveUpdateEvent += new ThicknessSolverUpdateEventHandler(OnThicknessSolveUpdate);
            solver.SolveStopEvent   += new ThicknessSolverStopEventHandler(OnThicknessSolveStop);
            double lim = solver.LimitValue();

            solver.Solve();
        }