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

Node 0: Process 15088: Received signal SIGSEGV.

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By CeesH
  • 2 Post By CeesH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2015, 14:15
Default Node 0: Process 15088: Received signal SIGSEGV.
  #1
New Member
 
Hasibul Alam
Join Date: Dec 2014
Location: USA
Posts: 6
Rep Power: 11
hasib61 is on a distinguished road
Hi,

I am trying to add extra mass source through UDF but getting this error message:

Node 0: Process 15088: Received signal SIGSEGV.
Node 1: Process 16164: Received signal SIGSEGV.
MPI Application rank 0 exited before MPI_Finalize() with status 2
The fl process could not be started.

The UDF code is as below:

DEFINE_SOURCE(mass_source, c, t, dS, eqn)
{
real source = 0.0;
real mass_source = 0.0;
real area_vec[ND_ND];
real area = 0.0;
int n;

real v=0.0;
real rho=0.0;

c_face_loop (c, t, n)
{
Thread *tf = C_FACE_THREAD (c, t, n);
real SURFACE_ID = 6;
if(SURFACE_ID == THREAD_ID(tf))
{
face_t f = C_FACE (c, t, n);
F_AREA(area_vec, f, tf);
area = NV_MAG(area_vec);
rho=C_R(c,t);
v=C_VOLUME(c,t);

mass_source = (-(C_YI_RG(c,t,0)[1]*C_DIFF_EFF(c,t,0))* ((1/C_YI(c,t,0) )-1))*rho*area/v;
source += mass_source;
}
}


C_UDMI(c, t, 0) = source;

dS[eqn] = 0.0;
return source;
}

Can you suggest anything on this?
hasib61 is offline   Reply With Quote

Old   February 11, 2015, 15:45
Default
  #2
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Simple question; did you specify the user defined memory?
CeesH is offline   Reply With Quote

Old   February 11, 2015, 18:12
Default
  #3
New Member
 
Hasibul Alam
Join Date: Dec 2014
Location: USA
Posts: 6
Rep Power: 11
hasib61 is on a distinguished road
No, I did not specify any location. This is basically my 1st udf code. Not very familiar with udf coding.
hasib61 is offline   Reply With Quote

Old   February 12, 2015, 03:15
Default
  #4
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Ok, so you have to specify your user defined memory under:
define > user-defined > memory, then increase "number of user defined memory locations" to the number you need (in this case, only one per cell).

Now, you are referring to this memory location in your code, so FLUENT will try to store something there, but since the location doesn't exist it will crash.
CeesH is offline   Reply With Quote

Old   February 12, 2015, 13:09
Default
  #5
New Member
 
Hasibul Alam
Join Date: Dec 2014
Location: USA
Posts: 6
Rep Power: 11
hasib61 is on a distinguished road
Thank you very much.... , it works.....can you help me on how to get the mass source value that i have put into through udf? I want to know if its giving the correct value.....again thanks a lot....
hasib61 is offline   Reply With Quote

Old   February 13, 2015, 04:08
Default
  #6
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
In this case, the mass source is stored in the UDM. This means you can take a look at a contour plot of the user-defined memory to get a qualitative grasp. If you want to quantify it, set up a solution export (calculation activities > automatic export in transient if you want to write every X timesteps, or just use export > solution data after a steady state run).

With this, you can output your data to text files for excel/matlab, or in the format of your favorite post-processing software. Other checks you can do are reports > volume integrals, where you can for example take the sum of all source terms over the whole domain; handy if you have integral data available from experiments.

Best,
Cees
hasib61 and wulme like this.
CeesH is offline   Reply With Quote

Old   February 18, 2015, 18:54
Default
  #7
New Member
 
Hasibul Alam
Join Date: Dec 2014
Location: USA
Posts: 6
Rep Power: 11
hasib61 is on a distinguished road
Hi,

I am having a small problem with the udf. "invalid command [(rpsetvar]"

I am using C_YI_RG in my udf to get the gradient, but this can only be used in density based solver and it takes a lot of time to converge.

Instead I am willing to use C_YI_G in pressure based solver. It requires the following "you will need to set the rpvar 'species/save-gradients? to #t". To do this I typed (rpsetvar 'species/save-gradients? #t) but its giving "invalid command [(rpsetvar]".

Do I have to initiate anything before typing rpsetvar?
hasib61 is offline   Reply With Quote

Old   September 4, 2022, 01:25
Default
  #8
New Member
 
Md Asif Equbal
Join Date: Aug 2022
Location: India
Posts: 14
Rep Power: 3
mep20108@tezu.ac.in is on a distinguished road
Thanks, CeesH
your method works for me.
mep20108@tezu.ac.in 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
Node 0: Process xxxx: Received signal SIGSEGV jmjohansen FLUENT 42 March 18, 2024 01:23
Free Surface Ship Flow timfranke OpenFOAM Running, Solving & CFD 322 March 3, 2021 09:04
VOF Transient Error rkanesan OpenFOAM Running, Solving & CFD 0 November 13, 2014 19:38
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56


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