|
[Sponsors] |
Help with running Fluent using a journal file from command line |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 4, 2018, 04:01 |
Help with running Fluent using a journal file from command line
|
#1 |
New Member
Peter Greaves
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
I'm having some trouble running a journal file from Matlab using
system('"C:\Program Files\ANSYS Inc\v190\fluent\ntbin\win64\fluent.exe" -r19.0.0 2d -i OscillatingObject.jou'); I've recorded a journal file using the GUI, and if I play it back from a fresh restart of Fluent it works fine. However, if I run it at the command line in Matlab using the above command it fails because it can't either load the pre-compiled UDF or compile it (I've tried both). I've attached screen grabs of my Fluent launch screen. What command line options do I need to pass to recreate this? Any help will be much appreciated! |
|
April 4, 2018, 05:36 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
how do you run fluent from matlab, and what is the reason of such approach?
where file OscillatingObject.jou is located? what is location of your udf? best regards |
|
April 4, 2018, 05:50 |
|
#3 |
New Member
Peter Greaves
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
I'm saving a report of the forces on the moving object for a prescribed motion of the object, and I'm most familiar with Matlab so it seemed the easiest way to do it!
It's in the folder shown in the picture. I've actually solved the problem now by creating a profile file with Matlab instead of using a UDF. It now works but I'll leave the thread open in case it produces a result that is useful to someone else. |
|
April 6, 2018, 15:38 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Can you post the actual error message and the journal file?
Recording a "journal" in the GUI is rarely a good idea because it relies on mouse positions and mouse clicks. What you're doing is actually recording a macro, and not creating a .jou file the way it is meant to be. Then you go into a gui-less environment and now there are no more mouse clicks and it breaks. My recommendation, learn to make a .jou file. |
|
Tags |
journal, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |