|
[Sponsors] |
August 9, 2023, 06:05 |
Fluent Scheme file - how to avoid warning
|
#1 |
Member
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14 |
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 "()") 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...] Any ideas? |
|
August 9, 2023, 08:12 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
() 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? |
|
August 10, 2023, 08:00 |
|
#3 | |
Member
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14 |
Thanks for the suggestions.
Quote:
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. |
||
August 10, 2023, 08:59 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
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. |
|
August 11, 2023, 01:22 |
|
#5 | ||
Member
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14 |
Quote:
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:
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...] |
|||
August 11, 2023, 02:07 |
|
#6 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
may be you may try to modifiy append request
Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () ()") Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () OK") Code:
(ti-menu-load-string "/mesh/modify-zones/append-mesh fluent.cas.h5 () \n ")
__________________
best regards ****************************** press LIKE if this message was helpful |
|
August 11, 2023, 05:53 |
|
#7 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
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. |
|
|
|
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 |