CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Script to automate interface creation in CFX-Pre

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2023, 08:07
Question Script to automate interface creation in CFX-Pre
  #1
New Member
 
samsoum01
Join Date: Jun 2023
Posts: 1
Rep Power: 0
samsoum01 is on a distinguished road
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
samsoum01 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 20:59.