|
[Sponsors] |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
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.
|
|
![]() |
![]() |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
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. |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 17:25 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 01:22 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 05:18 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |