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

Fluent Scheme file - how to avoid warning

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2023, 06:05
Default Fluent Scheme file - how to avoid warning
  #1
Member
 
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14
toolpost is on a distinguished road
I am trying to manipulate a mesh in Fluent 2023R1 via a .scheme file.

The idea is to load a mesh, translate it to a distance, then load the same mesh again, define some interfaces and so on.


Code:
(ti-menu-load-string "/file/read-case/fluent.cas.h5 ")

(ti-menu-load-string "/mesh/modify-zones/zone-name int_zone-n int_zone-0 ()")
(ti-menu-load-string "/mesh/modify-zones/zone-name left-n left-0 ()")
(ti-menu-load-string "/mesh/modify-zones/zone-name right-n right-0 ()")
(ti-menu-load-string "/mesh/modify-zones/zone-name walls-n walls-0 ()")

(ti-menu-load-string "/mesh/translate -1 0 ()")
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 ()")

(ti-menu-load-string "()")
In the second step, while loading the same mesh again, Fluent throws up a warning as follows.


Code:
  Warning: 
 Some zone ids have changed. Check the case setup to 
 ensure the settings are correct before proceeding with
 the calculation.
 

 [Hit ENTER key to proceed...]
When running the scheme file, the process gets stuck in this line and waiting for a mouse click/enter key input. So I cannot automate this process. I tried putting () in the previous line, but no joy.



Any ideas?
toolpost is offline   Reply With Quote

Old   August 9, 2023, 08:12
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
() is for the end of a list. Have you tried an empty string "" or a new line string "\n" or a possibly even the carriage return "\r"?


Aside, is it really needed to do this in a scheme command and not a journal? You have all the TUI commands already. What is the purpose of wrapping everything in a bunch of ti-menu-load scheme macros?
LuckyTran is offline   Reply With Quote

Old   August 10, 2023, 08:00
Default
  #3
Member
 
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14
toolpost is on a distinguished road
Thanks for the suggestions.

Quote:
Aside, is it really needed to do this in a scheme command and not a journal? You have all the TUI commands already. What is the purpose of wrapping everything in a bunch of ti-menu-load scheme macros?

My plan is to put this in a do loop and run it 100 times to make a single long grid divided in to 100 zones. I am aiming to conduct a quasi-static kinda study on it with zones activated successively in time. I wanted an automated system to make such a grid with zones and boundaries named in a chronological manner.



I tried both "\n" and "\r". No difference. Ended up at the same [Hit ENTER key to proceed...].



Any other workarounds? Thanks a lot for your time.
toolpost is offline   Reply With Quote

Old   August 10, 2023, 08:59
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I've done this procedure before for a 64 pitch pipe. All I did was run the same script x times to get the desired length. You can spend days automating the entire thing or just the key parts.


You could also just append the mesh first and then come back and rename the zones later since you are doing do loops in a scheme file anyway.
LuckyTran is offline   Reply With Quote

Old   August 11, 2023, 01:22
Default
  #5
Member
 
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14
toolpost is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I've done this procedure before for a 64 pitch pipe. All I did was run the same script x times to get the desired length. You can spend days automating the entire thing or just the key parts.
But what difference it make? I already tried it. In journal also the same line is being executed and ends up at the same problem.
I couldn't follow what you said. You mean running the script x times manually? I cannot do that because I am planning to extend the study by varying the number of zones. I am too lazy to do it manually.



Quote:
You could also just append the mesh first and then come back and rename the zones later since you are doing do loops in a scheme file anyway.
I tried it already. But no difference.


Code:
Warning: 
 Some zone ids have changed. Check the case setup to 
 ensure the settings are correct before proceeding with
the calculation.
  
 [Hit ENTER key to proceed...]
The case file contains 6 zones. I changed names of all the six zones before appending the case file again. I guess I have to change the zone-id as well. That's what the warning is implying. right?
toolpost is offline   Reply With Quote

Old   August 11, 2023, 02:07
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
may be you may try to modifiy append request
Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () ()")
or
Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () OK")
or
Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () \n ")
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   August 11, 2023, 05:53
Default
  #7
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Append it, fix the zone names manually, save it. Read the appended case and append it to itself, save it again. It grows by powers of 2 this way so you only need to run it 7 times. I am lazy and that is why I do this instead of waiting for days on the internet to come up with a solution.

The warning is because you have zones in the new and old case with different names.


Alternatively if all you do is append without renaming any zones then Fluent just adds .1 to the name of each zone each time and once you have all these zones added without warnings then you can do a loop to recursively remove all the .1's. So two loops doing it your scheme way.

Sorry I can only offer workarounds since I actually don't know how to send an enter key across a scheme file.
LuckyTran 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
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 11:05
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11


All times are GMT -4. The time now is 22:13.