|
[Sponsors] |
Error on initialisation simulation after implemening UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 10, 2014, 06:21 |
Error on initialisation simulation after implemening UDF
|
#1 |
New Member
Aileen Magee
Join Date: Sep 2013
Posts: 24
Rep Power: 13 |
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! |
|
|
|
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 |