ISAAR.MSolve.Logging/TotalDisplacementsPerIterationLog.cs
/// <summary>
/// Stores the total displacements = u_converged + du, for a new iteration.
/// </summary>
/// <param name="totalDisplacements">The total displacements for each subdomain.</param>
Stores the total displacements = u_converged + du, for a new iteration.
Stores the total displacements = u_converged + du for a new iteration .
public void StoreDisplacements(Dictionary<int, IVector> totalDisplacements)
        {
            var currentIterDisplacements = new Dictionary<int, Dictionary<int, double>>();
            foreach (var subdomainDofsPair in watchDofs)
            {
                int subdomainID = subdomainDofsPair.Key;
                var subdomainDisplacements = new Dictionary<int, double>();
                foreach (int dof in subdomainDofsPair.Value)
                {
                    subdomainDisplacements[dof] = totalDisplacements[subdomainID][dof];
                }
                currentIterDisplacements[subdomainID] = subdomainDisplacements;
            }
            dofDisplacementsPerIter.Add(currentIterDisplacements);
        }
public void StoreDisplacements ( Dictionary < int , IVector > totalDisplacements ) { var currentIterDisplacements = new Dictionary < int , Dictionary < int , double > > ( ) ; foreach ( var subdomainDofsPair in watchDofs ) { int subdomainID = subdomainDofsPair . Key ; var subdomainDisplacements = new Dictionary < int , double > ( ) ; foreach ( int dof in subdomainDofsPair . Value ) { subdomainDisplacements [ dof ] = totalDisplacements [ subdomainID ] [ dof ] ; } currentIterDisplacements [ subdomainID ] = subdomainDisplacements ; } dofDisplacementsPerIter . Add ( currentIterDisplacements ) ; }
Stores the total displacements = u_converged + du, for a new iteration.
Stores the total displacements = u_converged + du for a new iteration .
totalDisplacements
Dictionary<int, IVector>
The total displacements for each subdomain.
The total displacements for each subdomain .