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

Node 0: Process 20804: Received signal SIGSEGV.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2022, 21:16
Exclamation Node 0: Process 20804: Received signal SIGSEGV.
  #1
New Member
 
Khoa
Join Date: Dec 2021
Posts: 1
Rep Power: 0
luonghuynhdangkhoa1998 is on a distinguished road
Hello Everyone,
I'm a newbie in FLUENT with UDF.
My case is to run an initial Mesh for MobyDick Nozzle for the base research with our UDF function of our team's new Thermal Phase Change Model. I have try to run without the UDF, and everything is OK, as a result.
However, when trying to use UDF function, I got this error: "Node 0: Process 20804: Received signal SIGSEGV."
I have interpreted the UDF file successfully and set the number of User-Defined Memory Locations to 3 and the number of User-Defined Node Memory Locations as 0.
--------------
My UDF in detail:

/* UDF to define a simple mass transfer based on Saturation Temperature. The "from" phase is the liqid and the "to" phase is the gas phase */

#include "udf.h"
#define c_evap 0.02
#define c_con 0.
#define p_sat 462300 /*Pa*/
#define T_sat 422.05 /*K*/
#define cigma 0.048933 /*N.m-1*/
#define acc_COEFF 1.2 /*accommodation coefficient*/
#define M 18.0152 /*Molecular weight*/
#define R 8314.34 /*Universal gas constant R (J/kmol-1.K)*/
#define PI 3.1416
#define Nb 4e+8 /*Bubble Number Density*/

DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,fr om_index,from_species_index, to_index, to_species_index)
{
real m_lg;
real m_cav;
real m_boil;
real dp;
real Area_Den;
real p_vapor;
real dp_liq, dp_gas, dp0, source_evap, source_con;
Thread *liq = THREAD_SUB_THREAD(thread, from_index);
Thread *gas = THREAD_SUB_THREAD(thread, to_index);
m_lg = 0.0;
m_cav= 0.0;
m_boil= 0.0;
p_vapor = 0.0;
Area_Den=0.0;
dp = 0.0;
Area_Den = pow(6*C_VOF(cell,gas),2.0/3.0)*pow(PI*Nb,1.0/3.0);
p_vapor = p_sat + MIN(0.195*C_R(cell,thread)*C_K(cell,thread), 5.0*p_vapor);
dp = p_vapor - MAX(0.1,C_P(cell,thread));
dp0=MIN(0.195*C_R(cell,thread)*C_K(cell,thread), 5.0*p_vapor) + MIN(p_vapor-C_P(cell,gas),75.0);

if(dp > 0.0)
{
m_boil = acc_COEFF*Area_Den*sqrt(M/(2.0*PI*R*T_sat))*dp0;
}
m_lg=m_cav+m_boil;
return (m_lg);
}
luonghuynhdangkhoa1998 is offline   Reply With Quote

Reply

Tags
fluent, sigsegv, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
parallel run in foam extend CRI_CFD OpenFOAM CC Toolkits for Fluid-Structure Interaction 3 December 10, 2021 14:54
How do I change the serial udf to parallel? dhdh89 Fluent UDF and Scheme Programming 14 June 4, 2020 10:04
Process 10300: Received signal SIGSEGV metaliat93 FLUENT 2 January 28, 2020 01:53
Foam::error::printStack(Foam::Ostream&) with pimpleFoam of OF1612 on Cluster shang OpenFOAM Running, Solving & CFD 7 January 24, 2018 09:30
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41


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