/// <summary> /// Puts the data into the results data structure. /// </summary> /// <param name="displacements">The calculated displacements. The index of the values in the vector matches the index of the displacement identifiers.</param> /// <param name="reactions">The calculated reactions. The index of the values in the vector matches the index of the reaction identifiers.</param> /// <returns>The results in a presentable data structure</returns> protected FiniteElementResults CreateResults(KeyedVector <NodalDegreeOfFreedom> displacements, KeyedVector <NodalDegreeOfFreedom> reactions) { Guard.AgainstNullArgument(displacements, "displacements"); Guard.AgainstNullArgument(reactions, "reactions"); FiniteElementResults results = new FiniteElementResults(this.model.ModelType); results.AddMultipleDisplacements(displacements); results.AddMultipleReactions(reactions); return(results); }
/// <summary> /// Puts the data into the results data structure. /// </summary> /// <param name="displacements">The calculated displacements. The index of the values in the vector matches the index of the displacement identifiers.</param> /// <param name="reactions">The calculated reactions. The index of the values in the vector matches the index of the reaction identifiers.</param> /// <returns>The results in a presentable data structure</returns> protected FiniteElementResults CreateResults(KeyedVector<NodalDegreeOfFreedom> displacements, KeyedVector<NodalDegreeOfFreedom> reactions) { Guard.AgainstNullArgument(displacements, "displacements"); Guard.AgainstNullArgument(reactions, "reactions"); FiniteElementResults results = new FiniteElementResults(this.model.ModelType); results.AddMultipleDisplacements(displacements); results.AddMultipleReactions(reactions); return results; }