CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > EnSight

Automation - Ensight command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2014, 02:54
Default Automation - Ensight command
  #1
Member
 
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16
Akshay is on a distinguished road
Hey guys

I'm trying to run a post-processing Ensight command script for multiple cases. I load the script through a bash script(linux / probably use 'ensight -p x.cmd' to fire the ensight commands) and once the Ensight GUI exits , I load the script for the second case and so on...
Now my problem is... how do I close the ensight GUI once the ensight command finishes so that the seconds case can load in a new GUI?
Or is there any better way to go about this?

Thanks
Akshay
Akshay is offline   Reply With Quote

Old   August 7, 2014, 12:51
Default
  #2
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
Akshay,

If you are attempting to run EnSight in this manner, you might want to add the "-batch" flag to your command line argument. It looks like you are trying to run in batch mode anyway. This has the side effect of quiting EnSight when it gets to the end of the command file. This "-batch" will essentially run EnSight without a GUI, and exit when it comes to the end of the command file.

-Kevin
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Old   August 8, 2014, 02:48
Default
  #3
Member
 
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16
Akshay is on a distinguished road
Hi Kevin

Thanks for the quick reply. I tried the -batch option and it did load the script and run it. But in my script I'm dumping data into files and I do this using this
"menu_extra_info": "'/testdump/xfrate.csv'" ... I'm assuming this operation is done using the GUI. Now how do I handle this situation?

Thanks
Akshay
Akshay is offline   Reply With Quote

Old   August 8, 2014, 09:25
Default
  #4
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
There should be a text command line version of the operation, so that you can do it via batch (without the GUI). Which version of EnSight are you using? I don't recoginize that particular syntax of commands. Are you trying to export out a query (Save Query), or geometry with variable (ie via the File -- > Export -- > Geometric Entities -- > FlatFile)?

-kevin

(kevin@ceisoftware.com)
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn is offline   Reply With Quote

Old   August 8, 2014, 09:31
Default
  #5
Member
 
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16
Akshay is on a distinguished road
Hey Kevin

Sorry about that. I'm trying to extract data out of a query. I just did a 'Save to csv'.
From the command perspective,
I did try to play with the 'query_interact: save <filename>' but I was not very successful. Assuming I have a query already present (by the way I'm loading Flow3D data) and it lists it in the query/plots. Now all i have to do is locate it and save it. Could you help me on this?

Thanks
Akshay
Akshay is offline   Reply With Quote

Old   August 8, 2014, 09:43
Default
  #6
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
Okay, there are a few options.

The "Save to CSV" doesn't have a particularly "clean" command language equivalent, but it will work:
ext: menu.query.csv_to_file BeginMenuCmd
ext: menu.query.csv_to_file {"menu_version": 2.0, "mousepos": [0.30000001192092896, 0.811779797077179], "widget": "graphics", "target": [["ENS_QUERY", [1]], ["ENS_PLOTTER", [0]]], "curve": 15, "pos": [0.0, 0.0, 0.0], "item": 0, "menu_extra_info": "'C:/Users/kevin/Documents/export_csv_file.csv'", "part_selection": [["ENS_PART", [12]]], "pick": 23}
ext: menu.query.csv_to_file EndMenuCmd

However, "Save to Formatted File" actually has a cleaner syntax (I prefer this one):
curve: select_begin
0
curve: select_end
curve: save formatted C:/Users/kevin/Documents/formatted_file.txt_VMAG_vs._Distance_for_part_12_t s_0.dat

The "Save to XY file" is a clean syntax too, but does write some additional information which may not be awkward to remove (depending upon the intended subsequent operation):
curve: select_begin
0
curve: select_end
curve: save xy_data C:/Users/kevin/Documents/xy_file.txt_VMAG_vs._Distance_for_part_12_ts_0.xy

-Kevin
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ensight.com
kevincolburn 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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


All times are GMT -4. The time now is 19:08.