public GlobalFreeDofOrderingGeneral(int numGlobalFreeDofs, DofTable globalFreeDofs, Dictionary <ISubdomain, ISubdomainFreeDofOrdering> subdomainDofOrderings) { this.NumGlobalFreeDofs = numGlobalFreeDofs; this.GlobalFreeDofs = globalFreeDofs; this.SubdomainDofOrderings = subdomainDofOrderings; subdomainToGlobalDofMaps = new Dictionary <ISubdomain, int[]>(subdomainDofOrderings.Count); foreach (var subdomainOrderingPair in subdomainDofOrderings) { var subdomainToGlobalDofs = new int[subdomainOrderingPair.Value.NumFreeDofs]; foreach ((INode node, IDofType dofType, int subdomainDofIdx) in subdomainOrderingPair.Value.FreeDofs) { subdomainToGlobalDofs[subdomainDofIdx] = globalFreeDofs[node, dofType]; } subdomainToGlobalDofMaps.Add(subdomainOrderingPair.Key, subdomainToGlobalDofs); } }
public SubdomainFreeDofOrderingGeneral(int numFreeDofs, DofTable subdomainFreeDofs) { this.NumFreeDofs = numFreeDofs; this.FreeDofs = subdomainFreeDofs; }
public SubdomainConstrainedDofOrderingGeneral(int numConstrainedDofs, DofTable subdomainConstrainedDofs) : base(numConstrainedDofs, subdomainConstrainedDofs) { }
public SubdomainConstrainedDofOrderingBase(int numConstrainedDofs, DofTable subdomainConstrainedDofs) { this.NumConstrainedDofs = numConstrainedDofs; this.ConstrainedDofs = subdomainConstrainedDofs; }