Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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;
        }