CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to use Scheme command to perform activating Zones or deactivating zones (https://www.cfd-online.com/Forums/fluent/225834-how-use-scheme-command-perform-activating-zones-deactivating-zones.html)

ustbdynamic April 9, 2020 11:17

How to use Scheme command to perform activating Zones or deactivating zones
 
Dear friends,
I want to use Scheme command to perform activating Zones or deactivating zones. But I have not found corresponding command through the Scheme command. If anyone can help me out. Thank you very much!

vinerm April 9, 2020 11:25

Activating and Deactivating Zones
 
Dedicated Scheme commands do not exist for each function. However, you can embed journal commands to activate and deactivate zones within a scheme wrapper, such as,

(ti-menu-load-string "me mz deact zone-id1 zone-id2 ()")

Replace zone-id1 with either the name or ID of cell zones you wish to deactivate.

ustbdynamic April 9, 2020 11:30

Thank you very much, I will have a try.



Quote:

Originally Posted by vinerm (Post 764895)
Dedicated Scheme commands do not exist for each function. However, you can embed journal commands to activate and deactivate zones within a scheme wrapper, such as,

(ti-menu-load-string "me mz deact zone-id1 zone-id2 ()")

Replace zone-id1 with either the name or ID of cell zones you wish to deactivate.


ustbdynamic April 9, 2020 11:37

Excellent! Your method works well. thank you again.

Quote:

Originally Posted by vinerm (Post 764895)
Dedicated Scheme commands do not exist for each function. However, you can embed journal commands to activate and deactivate zones within a scheme wrapper, such as,

(ti-menu-load-string "me mz deact zone-id1 zone-id2 ()")

Replace zone-id1 with either the name or ID of cell zones you wish to deactivate.


ustbdynamic April 9, 2020 12:44

about the patch
 
Dear vinerm, would you like to help me again. I can not find methods to patch the velocity through Scheme commands.

Thank you again.

Quote:

Originally Posted by vinerm (Post 764895)
Dedicated Scheme commands do not exist for each function. However, you can embed journal commands to activate and deactivate zones within a scheme wrapper, such as,

(ti-menu-load-string "me mz deact zone-id1 zone-id2 ()")

Replace zone-id1 with either the name or ID of cell zones you wish to deactivate.


vinerm April 9, 2020 12:54

Patching
 
As mentioned earlier, there are no scheme commands for this. You can press Enter in the Fluent's text user interface and it will show all top level commands, e.g., file, mesh, etc. You can type one of these and press enter twice. This will show second level commands and so on. This way, you can find all the relevant commands. These are all TUI commands, also called journal commands. You can wrap all of these in the scheme wrapper I used earlier, i.e., ti-menu-load-string but you don't need to. You can directly execute the commands.

For patching x-velocity with a value of 10 m/s, you can use the following

solve patch <cell_zone_name or id> () <register name> () x-velocity yes 10

Replace all red colored portions as per your case and requirement. <register name> is optional. Last one is the value for x-velocity.

ustbdynamic April 9, 2020 13:08

Thank you very much!!!

Quote:

Originally Posted by vinerm (Post 764916)
As mentioned earlier, there are no scheme commands for this. You can press Enter in the Fluent's text user interface and it will show all top level commands, e.g., file, mesh, etc. You can type one of these and press enter twice. This will show second level commands and so on. This way, you can find all the relevant commands. These are all TUI commands, also called journal commands. You can wrap all of these in the scheme wrapper I used earlier, i.e., ti-menu-load-string but you don't need to. You can directly execute the commands.

For patching x-velocity with a value of 10 m/s, you can use the following

solve patch <cell_zone_name or id> () <register name> () x-velocity yes 10

Replace all red colored portions as per your case and requirement. <register name> is optional. Last one is the value for x-velocity.



All times are GMT -4. The time now is 17:32.