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

Running Fluent journal file from Wolrfam Mathematica

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2023, 11:40
Default Running Fluent journal file from Wolrfam Mathematica
  #1
New Member
 
Join Date: Jun 2023
Posts: 6
Rep Power: 3
dgnidovec is on a distinguished road
Hi, I am working on a multi - scale modelling, where I have a 0D model written in Mathematica and 2D analysis in Fluent . I want to create a program, which automatically executes mentioned analysis . My procedure is the following :
- run a steady-state simulation to get the inital state for transient iterating
- move forward for one time step and iterate till it converges
- move to another time step and iterate again ...

I wrote two jorunal files called Steady.jou and Transient.jou. I set steady case and transient case in fluent GUI, saved them and then read them in the journal file to execute. Steady case does not include UDF, while Transient case includes it (precisely 3 UDF' s) . I compiled my UDF's as compiled UDF's in the GUI and save the library and the case, so that libudf is loaded everytime with the case and (for now) there is no need to be changed for every iteration . After a while I managed to get everything working in such a way, that I run fluent from a command line (Windows 10) with comands
`fluent 2 ddp - hidden - tui - g - i Steady . jou > output . log `
and
`fluent 2 ddp - hidden - tui - g - i Transient . jou > output . log `
It works perfectly!

Then I moved to Mathematica and ran Steady.jou from there with the command :
`
source = "C:\\Users\\Domen Gnidovec\\Desktop\\FLUENTtest\";
SetDirectory[source];
command = "fluent 2ddp -hidden -tui -g -i Steady.jou > output.log";
Run[command]
`
It works exactly the same as I would run it from the terminal (as expected) . Then I tried to do the same for Transient.jou journal file, which includes reading a case with UDF and I got the following error (consider that this file is working totally fine from cmd) :
` Error at host : Error code : 126 `
` Error at node : Error code : 126 `

After exploring about that problem a lot and asking chatgpt I figured out that this is some kind of problem with loading udflib library. I checked for all the permissions and path ways as it was suggested, but I cant figure out how to fix this error. I assume there is some small fix it should be done, because it works totally fine from cmd, but not from Mathematica.
Any ideas how to solve it guys?
Best regards
dgnidovec is offline   Reply With Quote

Reply

Tags
error code 126, fluent, journa file, mathematica, udf


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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