June 5, 2023, 09:07
|
Script to automate interface creation in CFX-Pre
|
#1
|
New Member
samsoum01
Join Date: Jun 2023
Posts: 1
Rep Power: 0
|
Hello,
I am trying to write a script to automatically generate new interfaces. I am using a .msh file to import the mesh, so 3D regions and respective 2D region names are imported into CFX-Pre. Due to contact detection in ANSYS Meshing, I get the matching contact surfaces names with src and trg at the end.
I recorded a session to obtain the script needed to generate an interface through the CFX-Pre command editor. My idea is to make the names of the domains and faces variables in that CCL script. Then, using PERL power syntax, I can run for loops that check if the names of each face match another face under a different region and then create an interface if they do. Is that possible/realistic?
I am just started. Currently, I am struggling to store the names of 3D regions and respective 2D regions in an array. I have found @composites3D=getResolvedCompositesInModel(3) to work to store the names of 3D regions. I am struggling to generate an array for the 2D regions. I can't find resources for built-in available functions / subroutines in CFX-Pre that may be useful to me, so please share any. Also, kindly let me know of any short comings or limitations in my approach and any alternatives. I am still getting familiar to using PERL, for example i am not sure why using a simple !print sometimes fails in the command window. Please feel free to PM to further discuss.
Thanks in advance
|
|
|