/// <summary> /// Solves the instance assuming linear behavior (both geometric and material) for specified configuration. /// </summary> /// <param name="config">The configuration.</param> public void Solve(SolverConfiguration config) { //new version lastResult = new StaticLinearAnalysisResult(); lastResult.Parent = this; lastResult.SolverGenerator = config.SolverGenerator; foreach (var loadCase in config.LoadCases) { lastResult.AddAnalysisResultIfNotExists(loadCase); } }
/// <summary> /// Solves the instance assuming linear behavior (both geometric and material) for specified configuration. /// </summary> /// <param name="config">The configuration.</param> public void Solve(SolverConfiguration config) { //new version lastResult = new StaticLinearAnalysisResult { Parent = this, SolverFactory = config.SolverFactory }; ReIndexNodes(); foreach (var loadCase in config.LoadCases) { lastResult.AddAnalysisResultIfNotExists(loadCase); } }
/// <summary> /// Solves the instance assuming linear behavior (both geometric and material) for specified configuration. /// </summary> /// <param name="config">The configuration.</param> public void Solve(SolverConfiguration config) { //new version lastResult = new StaticLinearAnalysisResult(); lastResult.Parent = this; lastResult.SolverFactory = config.SolverFactory; ReIndexNodes(); if (this.mpcElements.Count > 0) { throw new InvalidOperationException("Invalid solve for MPC element");// Model with MPC element should call Model.Solve_MPC() } foreach (var loadCase in config.LoadCases) { lastResult.AddAnalysisResultIfNotExists(loadCase); } }