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

HELP with FATAl error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2018, 09:09
Default HELP with FATAl error
  #1
New Member
 
Mahdev Prasad Panda
Join Date: Dec 2017
Posts: 10
Rep Power: 8
Mahadev is on a distinguished road
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;
}
Mahadev is offline   Reply With Quote

Old   May 23, 2018, 10:05
Default
  #2
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 11
obscureed is on a distinguished road
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
obscureed is offline   Reply With Quote

Old   May 23, 2018, 11:15
Default
  #3
New Member
 
Mahdev Prasad Panda
Join Date: Dec 2017
Posts: 10
Rep Power: 8
Mahadev is on a distinguished road
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???
Mahadev is offline   Reply With Quote

Old   May 23, 2018, 12:08
Default
  #4
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 11
obscureed is on a distinguished road
Hi Mahadev,


Please consult the help files.


Best regards,
Ed
obscureed 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
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 00:10
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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