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

How to use Scheme command to perform activating Zones or deactivating zones

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2020, 11:17
Default How to use Scheme command to perform activating Zones or deactivating zones
  #1
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
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!
ustbdynamic is offline   Reply With Quote

Old   April 9, 2020, 11:25
Default Activating and Deactivating Zones
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 9, 2020, 11:30
Talking
  #3
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
Thank you very much, I will have a try.



Quote:
Originally Posted by vinerm View Post
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 is offline   Reply With Quote

Old   April 9, 2020, 11:37
Default
  #4
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
Excellent! Your method works well. thank you again.

Quote:
Originally Posted by vinerm View Post
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 is offline   Reply With Quote

Old   April 9, 2020, 12:44
Default about the patch
  #5
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   April 9, 2020, 12:54
Default Patching
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 9, 2020, 13:08
Default
  #7
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
Thank you very much!!!

Quote:
Originally Posted by vinerm View Post
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 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



All times are GMT -4. The time now is 15:18.