|
[Sponsors] |
September 6, 2012, 10:19 |
Fatal error while initialize pressure inlet
|
#1 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
Hi,
I use this exemple code to define the density of a liquid : /************************************************** ****************** 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" Release 12.0 c ANSYS, Inc. January 26, 2009 2-93 DEFINE Macros #define BMODULUS 2.2e9 #define rho_ref 1000.0 #define p_ref 101325 DEFINE_PROPERTY(superfluid_density, c, t) { real rho; real p, dp; real p_operating; p_operating = RP_Get_Real ("operating-pressure"); p = C_P(c,t) + p_operating; dp = p-p_ref; rho = rho_ref/(1.0-dp/BMODULUS); return rho; } DEFINE_PROPERTY(sound_speed, c,t) { real a; real p, dp,p_operating; p_operating = RP_Get_Real ("operating-pressure"); p = C_P(c,t) + p_operating; dp = p-p_ref; a = (1.-dp/BMODULUS)*sqrt(BMODULUS/rho_ref); return a; } I have a pressure inlet and when I try to initialize with the pressure inlet I receive this error message : *************************************** 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. Error Object: #f ***************************************** Do you have any idea about what can cause this error? Thanks |
|
September 6, 2012, 10:44 |
|
#2 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
oubivousley I did not put those 3 lines
Release 12.0 c ANSYS, Inc. January 26, 2009 2-93 DEFINE Macros they are in my previous post just because I did a cut and past of the example in the udf fluent manual but this is not from my udf, in my udf I take off those line that are for the pagination of the manual. But this is not the cause of the fatal error |
|
September 6, 2012, 11:30 |
|
#3 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Hi, I had a similar problem using this udf to define speed of sound and density; the access violation error happens because fluent tries to access something that doesn't exist..
Try to initialize by manually set the values, don't "compute from"; same error should exist if you "compute from" in the reference values panel. So initialize your domain without "compute from" and then set reference values. Hope this works.. Daniele |
|
September 6, 2012, 11:54 |
|
#4 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
Hi,
I try to initialize without compute from. Just to make a test I let all the value to 0. When I start the simulation I get divergence in amg solver quite fast. But this may be because of my grid. I will try a better grid. |
|
September 6, 2012, 15:46 |
|
#5 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
Finally it did not work
|
|
September 7, 2012, 14:00 |
|
#6 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
Finally I get my result, I just set correct limit and it work fine.
|
|
October 9, 2012, 01:16 |
|
#7 |
New Member
Join Date: Oct 2012
Posts: 1
Rep Power: 0 |
Hi,
I seem to have similar problem when trying to define the density of water vapour using UDF for ideal gas as follows; ________________________________________ #include <udf.h> DEFINE_PROPERTY (igl_density,c,t) { real Ftemp; real rho; real i,p,dp; dp=C_P(c,t); Ftemp=C_T(c,t); rho=(dp*18)/(8.314*Ftemp)/1000; return rho; } DEFINE_PROPERTY (sound_speed,c,t) { real a; real p,dp; real density; dp=C_P(c,t); density=C_R(c,t); a=pow((dp/density),0.5); return a; } _____________________________________ Any advice on this? Really appreciate it |
|
October 9, 2012, 09:04 |
|
#8 |
New Member
Mario Tremblay
Join Date: Sep 2012
Posts: 9
Rep Power: 14 |
I solve the problem by adding a pressure a pressure in the ititial gauge pressure in pressure inlet. So the gauge total pressure was my 250psi, and the initial gauge pressure was 14,7psi.
I hope this will help you. |
|
October 10, 2012, 06:46 |
|
#9 |
Member
Tamil Nadu
Join Date: Oct 2012
Posts: 44
Rep Power: 14 |
Hello All,
I want to do analysis of heat transfer from water flowing through pipes submerged inside concrete. I am modelling in GAMBIT and wish to analyse it on Ansys FLUENT. Can anybody help me out, how to model and simulate? Does any tutorials exist? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D Hypersonic Inlet in FLUENT - Convergence Issues | Fraisdegout | FLUENT | 6 | December 15, 2016 03:07 |
Pressure Inlet Boundary Condition | Prasad | FLUENT | 6 | April 9, 2013 22:32 |
UDF to set velocity and pressure in inlet | GerardX89 | Fluent UDF and Scheme Programming | 0 | July 16, 2012 11:15 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |