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

Uds boundary conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2018, 23:19
Default Uds boundary conditions
  #1
New Member
 
Join Date: Dec 2018
Posts: 1
Rep Power: 0
big worm is on a distinguished road
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)
}
Attached Images
File Type: png $WKVP15VU6%Q4M)P_6I6A~U.png (2.1 KB, 3 views)

Last edited by big worm; December 26, 2018 at 21:25.
big worm is offline   Reply With Quote

Reply

Tags
boundary condition, udf, uds

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
CGNS Boundary conditions using SU2 denzell SU2 3 July 9, 2018 05:58
How to define the UDS boundary conditions of electromagnetic of a plasma? aestas Fluent UDF and Scheme Programming 2 March 12, 2014 02:57
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00


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