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

using uds(mass flow rate) data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2018, 11:49
Default uds
  #1
New Member
 
hamid
Join Date: Mar 2012
Posts: 4
Rep Power: 14
abdihamid is on a distinguished road
Hi i am writing a udf code to define a mixture density that related to uds but when i want to initialize the solution this error appears: received a fatal signal (Segmentation fault).
here is my code:
#include "udf.h"
DEFINE_PROPERTY(cell_density,cell,thread)
{
Thread *t;
cell_t c;
real c_h2,c_n2,rh2,rn2,rmix=1,c_mix ;
c_h2 = C_UDSI(c,t,0);
c_n2=40.46-c_h2;
rh2=c_h2*2;
rn2=c_n2*28;
rmix=rh2+rn2;
return rmix/1000;
}
how can i solve the problem help me please

Last edited by abdihamid; June 11, 2018 at 20:16.
abdihamid is offline   Reply With Quote

Old   June 11, 2018, 20:17
Default
  #2
New Member
 
hamid
Join Date: Mar 2012
Posts: 4
Rep Power: 14
abdihamid is on a distinguished road
Can any one help me please?
abdihamid 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
Specify mass flow rate for periodic boundary conditions in channel flow lion1990 OpenFOAM Running, Solving & CFD 1 July 9, 2018 17:46
setting OUTLET flow rate equal to INLET flow rate spitchers OpenFOAM Programming & Development 0 March 22, 2018 06:33
Mass flow rate boundary condition with negative values hebe2u. CFX 1 December 27, 2016 03:53
Iteration number - flow rate relation helvas CFX 6 May 30, 2016 02:57
Flow rate restriction simulation set-up siw CFX 4 February 16, 2016 12:15


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