|
[Sponsors] |
August 7, 2014, 02:54 |
Automation - Ensight command
|
#1 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
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 |
|
August 7, 2014, 12:51 |
|
#2 |
Senior Member
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17 |
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 |
|
August 8, 2014, 02:48 |
|
#3 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
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 |
|
August 8, 2014, 09:25 |
|
#4 |
Senior Member
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17 |
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 |
|
August 8, 2014, 09:31 |
|
#5 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
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 |
|
August 8, 2014, 09:43 |
|
#6 |
Senior Member
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17 |
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 |
|
|
|
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 |