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

Error whille initializing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 05:47
Default Error whille initializing
  #1
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
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.
SAM S is offline   Reply With Quote

Old   March 23, 2016, 05:48
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
What is the UDF code you're compiling?
`e` is offline   Reply With Quote

Old   March 23, 2016, 05:53
Default
  #3
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
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);
}
SAM S is offline   Reply With Quote

Old   March 23, 2016, 06:08
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
What are you trying to do here:
Code:
C_R(cell,liq) = 0.0;
C_R(cell,gas) = 0.0;
Is this an attempt to set the density to zero? This is not the correct way to do this.

Fluent (probably) does not allow you to overwrite the stored densities, only to read the values.
pakk is offline   Reply With Quote

Old   March 23, 2016, 06:09
Default
  #5
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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)
From copying and pasting your code, there appears to be a space in the 'from_index' variable. Instead, this statement should be on one line of code:

Code:
DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,from_index,from_species_index,to_index, to_species_index)
If you're still getting the errors, then eliminate lines of code until you find the problem line.
`e` is offline   Reply With Quote

Old   March 23, 2016, 06:23
Default
  #6
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
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.
SAM S is offline   Reply With Quote

Old   March 23, 2016, 06:26
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
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?)
pakk is offline   Reply With Quote

Old   March 23, 2016, 07:49
Default
  #8
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
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
SAM S is offline   Reply With Quote

Reply


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
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Initializing or patching cell zones kozalp FLUENT 0 December 30, 2013 16:00
VOF error when initializing Simone Siemens 11 February 11, 2009 11:26
Problem in Initializing Blocking for 2d geometry nitin Dewangan CFX 6 October 24, 2008 01:03
query regarding role of initializing in a solving Kishore FLUENT 2 July 4, 2007 23:23


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