CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to run a journal file from matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2018, 12:16
Default How to run a journal file from matlab
  #1
New Member
 
Justin S Lee
Join Date: Jan 2018
Posts: 2
Rep Power: 0
justin30 is on a distinguished road
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
justin30 is offline   Reply With Quote

Old   January 17, 2018, 13:36
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is offline   Reply With Quote

Old   January 17, 2018, 14:25
Default
  #3
New Member
 
Justin S Lee
Join Date: Jan 2018
Posts: 2
Rep Power: 0
justin30 is on a distinguished road
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?
justin30 is offline   Reply With Quote

Old   January 18, 2018, 14:49
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by justin30 View Post
I am using the matlab aas toolbox
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.
LuckyTran is offline   Reply With Quote

Old   February 16, 2018, 07:51
Default Were you able to use aas toolbox successfully?
  #5
New Member
 
YK
Join Date: Jul 2017
Posts: 8
Rep Power: 9
yk2359 is on a distinguished road
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
Attached Images
File Type: jpg 1.jpg (72.5 KB, 26 views)
File Type: jpg 2.jpg (77.3 KB, 12 views)
yk2359 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
[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


All times are GMT -4. The time now is 22:11.