GAMBIT Batch Mode - MATLAB
I am trying to exectue GAMBIT through MATALB with !gambit, however i am then required to physically click on "run" to open the program. Is there a way to bypass or automate this within MATLAB?
|
Re: GAMBIT Batch Mode - MATLAB
Try :
>>system('gambit -inp journalfilename') from Matlab. infact >>! gambit -inp journalfilename still works for me without system command. |
Hi,
I'm working on the batch mode process too. Though the command works fine, gambit doesnt open a new window when it is creating a new design. Because of this, it is creating overlapping geometries and hence I'm getting a lot of errors like "walls already exist, zones already exist" etc.. What do I do to overcome this ? Thanks |
Hello,
I am trying to link Gambit with Matlab, but I am getting the following error in Matlab. I am using !gambit.exe -inp c1.jou Can anyone explain why? 'gambit.exe' is not recognized as an internal or external command, operable program or batch file. |
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
I did this and set environment variable but there is a new problem,when in my matlab m-file i write "!gambit.exe -inp test.jou", gambit begins to start just for a moment but suddenly it jumps out and nothing happens then,but when i write in my matlab m-file this :"!gambit.exe" without -inp ,exceed and gambit begin to start and then comes this window (attached picture) that wants me to push the "run" button and when i push it gambit runs correctly but of course without opening my journal file. the point is i am doing an optimization work and i need gambit run in an automated way,i don't want to push the run button every time and i need gambit to run my journal file automatically without my interference. do you have any idea what is wrong with what i do? thanks in advance [IMG]file:///I:/DOCUME%7E1/a/LOCALS%7E1/Temp/moz-screenshot-2.png[/IMG] |
You need to check the gambit command line parameters (you can set up the home directory, the graphic server etc ...), this will get rid of the graphical window. Try in a command window something like:
gambit -h gambit --h gambit -help gambit --help Hopefully one of the above should work. Do |
1 Attachment(s)
Quote:
|
I've successfully automated Gambit in MATLAB using batch processing for the purposes of optimization like you said, so yes it can be done. And like the above posts say, all you do is clear any previous "default" files which contain geometry and use gambit. I use linux, so my code is:
!rm default* myTurbine.msh* !gambit -inp makeTurbine.jou If you're having problems then you are probably right that the issue is with Exceed. Can you start up Exceed prior to going into MATLAB? I remember doing that when I used Gambit/Fluent/MATLAB on Windows; I'd have Exceed up and it did not shut down when each batch run completed. |
Hi,
I've done it with windows. Exceed must be opened before starting. My matlab file is able to produce a file ".txt" used as a journal for gambit and later open and run gambit automatically. Use this and use attention for your file path: ! C:\Users\Administrator\Desktop\gambit\Fluent.Inc\n tbin\ntx86\gambit.exe -inp gambit.txt |
Batch mode
Quote:
I encountered with the same problem (starting Gambit in batch mode). When I start Gambit using command prompt or matlab, startup window vanishes immediately after appearing. Could you manage to resolve this problem?! if so, would you let me know how you overcame this? tnx |
using matlab to gambit run
Hello everyone
Due to the use of Gambit to produce mesh, this command can be used on matlab m_file : system(' "gambit source working directory" -inputfile " gambit_journal working directory"') for example: system('"C:\Fluent.Inc\ntbin\ntx86\gambit.exe" -inputfile "C:\matpg\pmesh.jou"') Therefore by using this code on matlab, gambit automate runs and acts accordingly journal file. Good luck:) |
All times are GMT -4. The time now is 09:41. |