|
[Sponsors] |
January 17, 2018, 12:16 |
How to run a journal file from matlab
|
#1 |
New Member
Justin S Lee
Join Date: Jan 2018
Posts: 2
Rep Power: 0 |
Hi all,
I am trying to couple fluent and matlab to be able to automate simulations in fluent using matlab. I am using the matlab aas toolbox to do the cosimulation and I understand you can use it to run single commands. But my question is whether or not it is possible to use it to run a whole journal file. I want to get a journal file, change it a little bit in matlab and then run the journal file in matlab to perform the simulation in Ansys. Thanks |
|
January 17, 2018, 13:36 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66 |
A journal file is nothing but a a text file which contains a bunch of TUI commands which Fluent reads/interprets and executes. If you can run any TUI commands from matlab, then you are all set. You don't "run a journal file" per se, because it's not a program.
|
|
January 17, 2018, 14:25 |
|
#3 |
New Member
Justin S Lee
Join Date: Jan 2018
Posts: 2
Rep Power: 0 |
Hi lucky,
Thank you for the quick reply. I understand that a fluent journal file is just a bunch of commands. The thing that confuses me is that because the aas toolbox allows matlab to send one command at a time, can it not send more than one command at a time? |
|
January 18, 2018, 14:49 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66 |
Sorry, I guess I took this statement too literally. I guess you meant to say that you will use aas rather than you currently are using it.
The AAS toolbox launches an interaction session of ANSYS. Practically, this lets you do virtually anything from matlab. If you have AAS working... it should be readily apparent. |
|
February 16, 2018, 07:51 |
Were you able to use aas toolbox successfully?
|
#5 |
New Member
YK
Join Date: Jul 2017
Posts: 8
Rep Power: 9 |
Hello,
There's an error. I have initialized the model as required. It works right without AAS mode enabled. But when I set FLUENT for AAS, same error pops up as shown in images with both "FLUENT solution update" or "iCoFluentUnit.calculate() command call on MATLAB". Can you please clarify on this? I tried resolving this with exception management but no luck. Thank you, YK |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 18:25 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |