示例#1
0
文件: Model.cs 项目: jvleta/BFE.Net
        public void Solve_MPC(SolverConfiguration config)
        {
            //new version
            lastResult        = new StaticLinearAnalysisResult();
            lastResult.Parent = this;

            lastResult.SolverFactory = config.SolverFactory;

            ReIndexNodes();

            foreach (var loadCase in config.LoadCases)
            {
                lastResult.AddAnalysisResultIfNotExists_MPC(loadCase);
            }
        }
示例#2
0
        public void Solve_MPC(SolverConfiguration config)
        {
            //new version
            lastResult        = new StaticLinearAnalysisResult();
            lastResult.Parent = this;

            lastResult.SolverFactory = config.SolverFactory;

            //if(elements.Any(i=>i is RigidElement))
            //    throw new Exception("Invalid solve for MPC element");// Model with RigidElement element should call Model.Solve()

            ReIndexNodes();

            foreach (var loadCase in config.LoadCases)
            {
                lastResult.AddAnalysisResultIfNotExists_MPC(loadCase);
            }
        }