Error on initialisation simulation after implemening UDF
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! :) |
All times are GMT -4. The time now is 18:00. |