コード例 #1
0
        private void GenerateBoundarySegments(int LElements, int HElements)
        {
            boundarySegments.Clear();

            foreach(Edge edge in _rectangle.Edges)
            {
                List<FiniteElementNode> nodes = GetNodesOnEdge(edge);
                int segmentsCount = nodes.Count - 1;
                for (int i = 0; i < segmentsCount; i++)
                {
                    FiniteElementRectangleEdge FiniteElementRectangleEdge = new FiniteElementRectangleEdge(nodes[i], nodes[i + 1]);
                    AddBoundarySegment(FiniteElementRectangleEdge, edge);
                }
            }
        }
コード例 #2
0
 protected void AddBoundarySegment(FiniteElementRectangleEdge FiniteElementRectangleEdge, Edge edge)
 {
     boundarySegments.Add(new KeyValuePair<FiniteElementRectangleEdge, Edge>(FiniteElementRectangleEdge, edge));
 }