XFEM富集域的定義如何通過python代碼實現? 40
Data lines for TYPE=ENRICHMENT:
First line:
1、Element number or element set label.
2 、Relative position of the node forming the element connectivity.
3、Name of the enriched feature specified on the *ENRICHMENT option.
4、Value of first signed distance function.
5、Value of second signed distance function. Leave this entry blank if only the first signed distance function is needed.
Repeat this data line as often as necessary to define initial signed distance functions in various elements or element sets. The signed distance functions must be defined at all nodes within an element.
例:
Part-1-1.953, 1,Crack-1, 0.254286, -0.212766
Part-1-1.953, 2,Crack-1, 0.254286, 0.18617
Part-1-1.953, 3,Crack-1, -0.254286, 0.18617
Part-1-1.953, 4,Crack-1, -0.254286, -0.212766
Part-1-1.953, 5,Crack-1, 0.254286, -0.212766
Part-1-1.953, 6,Crack-1, 0.254286, 0.18617
Part-1-1.953, 7,Crack-1, -0.254286, 0.18617
Part-1-1.953, 8,Crack-1, -0.254286, -0.212766
Part-1-1.21318, 1,Crack-1, 0.254286, 0.18617
Part-1-1.21318, 2,Crack-1, 0.254286, 0.18617
Part-1-1.21318, 3,Crack-1, -0.254286, 0.18617
Part-1-1.21318, 4,Crack-1, -0.254286, 0.18617
Part-1-1.21318, 5,Crack-1, 0.254286, -0.212766
Part-1-1.21318, 6,Crack-1, 0.254286, -0.212766
Part-1-1.21318, 7,Crack-1, -0.254286, -0.212766
上面是幫助文檔里的定義,在inp文件中以上的定義會針對不同單元重復上百行,如何通過python實現快捷簡明的定義




















