|
[Sponsors] |
first time posting: UDF problem for solving a tank |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 23, 2016, 09:18 |
first time posting: UDF problem for solving a tank
|
#1 |
New Member
louis
Join Date: Aug 2016
Posts: 3
Rep Power: 10 |
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; } 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 |
|
August 23, 2016, 10:59 |
|
#2 |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
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 |
|
August 24, 2016, 08:09 |
|
#3 |
New Member
louis
Join Date: Aug 2016
Posts: 3
Rep Power: 10 |
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!!!!! |
|
|
|
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 |