Script to export each domain separately
Hello,
I need to export each domain in my mesh as a PLOT3D file separately. With many domains this can be a really cumbersome task. Is there a script I could run for this? |
you can create your own script.
As a guide, export one or two domains by hand with journaling. Script, Begin Journaling... Export one or two domains to Plot3D by hand. Script, End Journaling Using this journal as a guide, you can write a script that will grab all domains in model and then export them one by one. See Glyph docs here. Example Glyph scripts here. See also pw::Grid getAll -type pw::DomainStructured to capture structured domains. |
Thank you. I have consulted those sources and created a script based on the journal. Is there a for loop or something similar so that I can loop through all structured domains instead of changing the domain name every time? Also, is there a way to set a variable so that I can save a file based on the domain name?
|
1 Attachment(s)
I have attached a skeleton script that you can edit. It loops over all the structured domains in a grid.
I also added a few personal "best practices" to the script for your consideration. Good luck. Code:
# Load the Pointwise Glyph library |
All times are GMT -4. The time now is 08:28. |