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); } }
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); } }