|
[Sponsors] |
December 24, 2018, 00:19 |
Uds boundary conditions
|
#1 |
New Member
Join Date: Dec 2018
Posts: 1
Rep Power: 0 |
Hello guys, I am attempting to do a simulation about gas diffusion using UDS and have a problem with the boundary conditions.
The simulation is simple—CH4 flows through a pipe. The problem is that CH4 can penetrate the wall, and its concentration on the wall is Linear with the concentration gradient normal to the wall. Could someone help me. Any help is much appreciated! #include "udf.h" DEFINE_PROFILE(myprofile,thread,i) { real factor; real NV_VEC(A); cell_t c0; Thread *t0; face_t f; factor=1.26e-4; begin_f_loop(f,thread) { c0=F_C0(f,thread); t0=THREAD_T0(thread); F_AREA(A,f,thread); F_PROFILE(f,thread,i)=factor*NV_DOT(C_UDSI_G(c0,t0 ,0),A)/NV_MAG(A); } end_f_loop(f,thread) } Last edited by big worm; December 26, 2018 at 22:25. |
|
Tags |
boundary condition, udf, uds |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 14:55 |
CGNS Boundary conditions using SU2 | denzell | SU2 | 3 | July 9, 2018 06:58 |
How to define the UDS boundary conditions of electromagnetic of a plasma? | aestas | Fluent UDF and Scheme Programming | 2 | March 12, 2014 03:57 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |