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

Help with running Fluent using a journal file from command line

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2018, 03:01
Default 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
peter.greaves is on a distinguished road
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!
Attached Images
File Type: jpg Capture2.JPG (54.1 KB, 55 views)
File Type: jpg Capture.JPG (57.5 KB, 38 views)
peter.greaves is offline   Reply With Quote

Old   April 4, 2018, 04:36
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Old   April 4, 2018, 04:50
Default
  #3
New Member
 
Peter Greaves
Join Date: Apr 2018
Posts: 2
Rep Power: 0
peter.greaves is on a distinguished road
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.
peter.greaves is offline   Reply With Quote

Old   April 6, 2018, 14:38
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,665
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is offline   Reply With Quote

Reply

Tags
journal, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 16:10.