|
[Sponsors] |
Node 0: Process 20804: Received signal SIGSEGV. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 16, 2022, 21:16 |
Node 0: Process 20804: Received signal SIGSEGV.
|
#1 |
New Member
Khoa
Join Date: Dec 2021
Posts: 1
Rep Power: 0 |
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); } |
|
Tags |
fluent, sigsegv, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
parallel run in foam extend | CRI_CFD | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 5 | March 28, 2024 09:36 |
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 |