예제 #1
0
        public XCluster2D CreateSubdomains()
        {
            XCluster2D cluster = initialDecomposer.CreateSubdomains();

            initialDecomposer = null; // no longer needed and it might take up significant memory for large meshes.
            return(cluster);
        }
예제 #2
0
        private IDomainDecomposer initialDecomposer; //TODO: this should be discarded once used.

        public TipAdaptiveDecomposer(BidirectionalMesh2D <XNode, XContinuumElement2D> mesh, IReadOnlyList <IRegion2D> regions,
                                     ICrackDescription crack, IDomainDecomposer initialDecomposer)
        {
            this.mesh              = mesh;
            this.regions           = regions;
            this.crack             = crack;
            this.initialDecomposer = initialDecomposer;
        }