|
[Sponsors] |
June 11, 2018, 11:49 |
uds
|
#1 |
New Member
hamid
Join Date: Mar 2012
Posts: 4
Rep Power: 14 |
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. |
|
June 11, 2018, 20:17 |
|
#2 |
New Member
hamid
Join Date: Mar 2012
Posts: 4
Rep Power: 14 |
Can any one help me please?
|
|
|
|
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 |