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

Automation for mesh sensitivity study

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By voidcrow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2024, 12:38
Default Automation for mesh sensitivity study
  #1
New Member
 
Join Date: Mar 2024
Posts: 8
Rep Power: 2
voidcrow is on a distinguished road
I recorded a journal file in ANSYS Fluent to set up a simulation appropriately when loading a new mesh file (e.g., specify boundary conditions, load and hook UDFs in the appropriate zones, etc.). I am now faced with the following issue: after refining the mesh, ANSYS Mechanical renumbered practically all of the cell zones/walls (changed their IDs from what they were in the original coarse mesh), such that the journal file was rendered useless because it not only uses the names of the zones/walls but also their ID when accessing them from the UI.


Instead of having to manually reassign the IDs for all my zones/walls everywhere they appear in the journal file (which defeats the purpose of automating anything...), is there any way to change the numbering performed by ANSYS Mechanical (either in the software itself or programmatically after the .msh file is exported)?
Svetlana likes this.
voidcrow is offline   Reply With Quote

Old   June 20, 2024, 07:45
Default
  #2
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
Try like in the link below
https://howtooansys.blogspot.com/202...ical-from.html
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   June 21, 2024, 06:53
Default
  #3
New Member
 
Join Date: Mar 2024
Posts: 8
Rep Power: 2
voidcrow is on a distinguished road
Quote:
Originally Posted by Martin_Sz View Post

It would have been nice to get more specific instructions... I did not manage to find anything in the UDF manual about changing zone IDs.



Nevertheless, I managed to solve the issue by modifying the IDs in the original journal file using a Python script and some regex to find the relevant lines.
voidcrow 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
Small Particle Deposition Mesh Sensitivity Study MachZero Siemens 1 May 29, 2024 05:33
Small Particle Deposition Mesh Sensitivity Study MachZero Main CFD Forum 1 March 19, 2024 11:03
Grid Sensitivity Study related question kyo022 Main CFD Forum 2 March 6, 2018 01:03
[Other] Difference between Mesh independance study and Mesh Sensitivity Study kunvd ANSYS Meshing & Geometry 4 September 1, 2016 21:31
Exit Corrected Mass Flow Rate Mesh Sensitivity Study s__s__s CFX 4 July 20, 2016 11:46


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