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

Error on initialisation simulation after implemening UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2014, 06:21
Default Error on initialisation simulation after implemening UDF
  #1
New Member
 
Aileen Magee
Join Date: Sep 2013
Posts: 24
Rep Power: 13
0906536m is on a distinguished road
Hello there,
I have been trying to implement the Density and speed of sound UDFs for compressible liquid flows into my model. I use the example given within the UDF manual with my specific values:

/************************************************** ******************
Density and speed of sound UDFs for compressible liquid flows.
For use with pressure-based solver, for single phase, multiphase mixture
or cavitation models only.
Note that for density function, dp is the difference between a cell
absolute pressure and reference pressure.
************************************************** *******************/
#include "udf.h"

#define BMODULUS 24.32e9
#define rho_ref 2170
#define p_ref 101325

DEFINE_PROPERTY(brinesuperfluid_density, c, t)
{
real rho;
real p, dp;
real p_operating;

p_operating = 8.04e6;

p = C_P(c,t) + p_operating;
dp = p-p_ref;
rho = rho_ref/(1.0-dp/BMODULUS);
return rho;
}

DEFINE_PROPERTY(brinesound_speed, c,t)

{
real a;
real p, dp,p_operating;

p_operating = 8.04e6;

p = C_P(c,t) + p_operating;
dp = p-p_ref;
a = (1.-dp/BMODULUS)*sqrt(BMODULUS/rho_ref);

However, on initialising I get the error:

FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.

What is wrong in the UDF? Any help would be appreciated!
0906536m 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
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 07:12
Simulation with UDF for species mass fraction and velocity profile virgy Fluent UDF and Scheme Programming 8 February 7, 2012 05:30
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF initialisation of DPM model Lasse Rosendahl FLUENT 0 December 11, 2000 10:08


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