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

Error when initializing the simulation using UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 27, 2016, 08:00
Default Error when initializing the simulation using UDF
  #1
New Member
 
AVINASH
Join Date: Sep 2016
Posts: 2
Rep Power: 0
avi_sonu is on a distinguished road
Hi everyone,

Fluent show an error when I initialize the simulation.

"Error: received a fatal signal (Segmentation fault)."
"Error Object: #f"

I am using UDF for temperature dependent property of water. Can anyone tell me how to remove this error.

The UDF I am using for temperature dependent density is as follow:

#include "udf.h"

DEFINE_PROPERTY(water_density, cell, thread)
{
real den;
real t = C_T(cell,thread);
den=1000*(1-(((t+15.9414)*pow(t-276.9863,2)) / (508929.2*(t-204.87037))));
return den;
}

Thank you
avi_sonu is offline   Reply With Quote

Old   January 3, 2017, 05:24
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,072
Rep Power: 14
pakk will become famous soon enough
The UDF wants to read temperature, but that is not calculated yet, because you are initializing.

The solution that requires no programming: first initialize, then load the UDF.
pakk is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with unsteady calculation with source/sink UDF RobV Fluent UDF and Scheme Programming 3 March 10, 2016 04:45
Bubble column simulation with Lift coefficient UDF raju.vadlakonda Fluent UDF and Scheme Programming 7 July 11, 2013 09:19
Workbench/Fluent: Automatically Initializing Transient Simulation from Steady-State axip ANSYS 1 June 28, 2013 05:16
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Hooking UDF for membrane simulation ehkhor FLUENT 0 April 28, 2010 04:49


All times are GMT -4. The time now is 14:45.