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

Error when initializing the simulation using UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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,965
Rep Power: 27
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


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
Bubble column simulation with Lift coefficient UDF raju.vadlakonda Fluent UDF and Scheme Programming 8 June 19, 2023 09:36
Help with unsteady calculation with source/sink UDF RobV Fluent UDF and Scheme Programming 3 March 10, 2016 04:45
Workbench/Fluent: Automatically Initializing Transient Simulation from Steady-State axip ANSYS 1 June 28, 2013 06: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 05:49


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