|
[Sponsors] |
May 23, 2018, 10:09 |
HELP with FATAl error
|
#1 |
New Member
Mahdev Prasad Panda
Join Date: Dec 2017
Posts: 10
Rep Power: 9 |
Hy
I am using the following code to define density as a function of pressure and temperature but I am getting fatal error and when I am using parallel processing fluent could not even interpret it as the fluent window shuts down. Please help me with it. Thanks in advance. #include "udf.h" DEFINE_PROPERTY(superfluid_density, c, t) { double rho; double p, temp; p = C_P(c,t) ; temp = C_T(c,t); rho = (12.19)-(0.0398*temp)+(0.00003551*p); return rho; } |
|
May 23, 2018, 11:05 |
|
#2 |
Senior Member
Join Date: Sep 2017
Posts: 246
Rep Power: 12 |
Hi Mahadev,
The help files say: "In order to stabilize the pressure solution for compressible flows in ANSYS Fluent, an extra term related to the speed of sound is needed in the pressure correction equation. Consequently, when you want to define a custom density function for a compressible flow, your model must also include a speed of sound function." Also, you might want to look at the effect of the Operating Pressure. Depending on that, and what is going on in your model, your equation for density could easily go negative. That will not end well. It would be a good idea to get warmed up with only temperature dependence, not pressure dependence. If the model does not absolutely need pressure-dependent density, then it will save trouble to neglect it. Good luck! Ed |
|
May 23, 2018, 12:15 |
|
#3 |
New Member
Mahdev Prasad Panda
Join Date: Dec 2017
Posts: 10
Rep Power: 9 |
Thank you for replying me.
Do I have to include the speed of sound in the density function or it should be given separately in the speed of sound section??? |
|
May 23, 2018, 13:08 |
|
#4 |
Senior Member
Join Date: Sep 2017
Posts: 246
Rep Power: 12 |
Hi Mahadev,
Please consult the help files. Best regards, Ed |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] an error in Calculator's equation | immortality | ParaView | 12 | June 29, 2021 01:10 |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 21:30 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |