|
[Sponsors] |
March 23, 2016, 06:47 |
Error whille initializing
|
#1 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 11 |
I had compiled and hooked my mass transfer udf into fluent but while initializing am getting the error
Node 0: Process 3636: Received signal SIGSEGV. Node 1: Process 2608: Received signal SIGSEGV. Node 2: Process 3328: Received signal SIGSEGV. Node 3: Process 3600: Received signal SIGSEGV. MPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started. I learnt that it is a memory error but how to rectify it. Can anyone help me. Thank you. |
|
March 23, 2016, 06:48 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
What is the UDF code you're compiling?
|
|
March 23, 2016, 06:53 |
|
#3 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 11 |
Please find the mass transfer source udf
#include "udf.h" DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,fr om_index,from_species_index,to_index, to_species_index) { real m_lg; real T_SAT = 373.15; real vof_cutoff = 0.05; C_R(cell,liq) = 0.0; C_R(cell,gas) = 0.0; Thread *liq = THREAD_SUB_THREAD(thread, from_index); Thread *gas = THREAD_SUB_THREAD(thread, to_index); m_lg = 0.0; if ( (C_VOF(cell,thread) > vof_cutoff ) && (C_VOF(cell,thread) < (1 - vof_cutoff) )) { if ((m_lg == 0.0) && (C_T(cell,liq) >= T_SAT)) { m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)*fabs(C_T(cell,li q)-T_SAT)/T_SAT; } if (C_T(cell, gas) <= T_SAT) { m_lg = 0.1*C_VOF(cell,gas)*C_R(cell,gas)*fabs(T_SAT-C_T(cell,gas))/T_SAT; } } return (m_lg); } |
|
March 23, 2016, 07:08 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
What are you trying to do here:
Code:
C_R(cell,liq) = 0.0; C_R(cell,gas) = 0.0; Fluent (probably) does not allow you to overwrite the stored densities, only to read the values. |
|
March 23, 2016, 07:09 |
|
#5 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
First, check that your DEFINE_MASS_TRANSFER statement is not broken into two lines:
Code:
DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,fr om_index,from_species_index,to_index, to_species_index) Code:
DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,from_index,from_species_index,to_index, to_species_index) |
|
March 23, 2016, 07:23 |
|
#6 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 11 |
Thank you for your replies. As you suggested initializing density to zero gave me errors while compiling. So removed those two lines. DEFINE statement is in a single line. I dont have any compilation error but while initializing I am getting the above mentioned error.
|
|
March 23, 2016, 07:26 |
|
#7 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
So the code that you showed here was not exactly the code that you were using... That makes it difficult for us to find mistakes in your code!
To check something else: do you get warnings when you don't use the udf? (And did you restart Fluent after getting this error?) |
|
March 23, 2016, 08:49 |
|
#8 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 11 |
Sorry for not providing the exact code earlier. Then without udf there is no problem in initializing or running (though simulation wont converge). Yes I tried restarting but same error appears everytime
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
Initializing or patching cell zones | kozalp | FLUENT | 0 | December 30, 2013 17:00 |
VOF error when initializing | Simone | Siemens | 11 | February 11, 2009 12:26 |
Problem in Initializing Blocking for 2d geometry | nitin Dewangan | CFX | 6 | October 24, 2008 02:03 |
query regarding role of initializing in a solving | Kishore | FLUENT | 2 | July 5, 2007 00:23 |