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

first time posting: UDF problem for solving a tank

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2016, 09:18
Question first time posting: UDF problem for solving a tank
  #1
New Member
 
louis
Join Date: Aug 2016
Posts: 3
Rep Power: 9
weirdsda is on a distinguished road
Hi everyone,

this is my first time here in CFD, I am working on a thixotropic UDF for my stirring tank model in Fluent. Here is my code:
Code:
#include "udf.h"

DEFINE_PROPERTY(mu_yahourt,c,tc)
{
real g_dot=C_STRAIN_RATE_MAG(c,tc);
real t;
real mu=1000.;

if ((g_dot>1.)||(C_UDSI(c,tc,0)>1e-1))
{
 t=MIN(CURRENT_TIME,C_UDSI(c,tc,0));
 mu=MIN(1000.,2313./30.*pow(g_dot,-1.5)*pow(MAX(t,1e-2),(-0.95*pow(g_dot,-0.31))));
}

return mu;

}
However, I cannot run this UDF in Fluent, the error message is:

999999: mpt_read: error: read failed trying to read 8 bytes: No such file or directory The fl process could not be started.

some times it says 8 bytes and some times 4 bytes.

I am really stuck here, So I hope anyone could help me!

Best,

Louis
weirdsda is offline   Reply With Quote

Old   August 23, 2016, 10:59
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Try 3 things:
1) Ensure your user defined scalar has been initialized before you call it
2) Try to run this UDF in serial mode to see if it works
3) If yes to 1 & 2, try compiling the UDF instead of interpreting -- this will solve issues with UDF's in parallel execution mode.

ComputerGuy
ComputerGuy is offline   Reply With Quote

Old   August 24, 2016, 08:09
Default
  #3
New Member
 
louis
Join Date: Aug 2016
Posts: 3
Rep Power: 9
weirdsda is on a distinguished road
Thank you so much ComputerGuy, I tried 2 and 3, but I have no idea how to do 1.

could you tell me more about how to initialize the user defined scalar ?

Thank you sooo much!!!!!
weirdsda 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
a problem with convergence in buoyantSimpleFoam skuznet OpenFOAM Running, Solving & CFD 6 November 15, 2017 12:12
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 10:54
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09


All times are GMT -4. The time now is 05:51.