CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Mass source term definition in UDF for an axisymmetric problem

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

LinkBack Thread Tools Display Modes
Old   February 19, 2015, 19:18
Default Mass source term definition in UDF for an axisymmetric problem
New Member
Join Date: May 2012
Posts: 18
Rep Power: 5
adnanakhtar is on a distinguished road

I am working on an axisymmetric domain and have to define a mass source on one of the boundaries. (It is a rectangular domain that I am using: cylinder in axisymmetric case)
The part of the UDF that computes the mass source term is as follows:

f = C_FACE(c,t,i);
tf = C_FACE_THREAD(c,t,i);

if(THREAD_ID(C_FACE_THREAD(c,t,i)) == inlet_mass_source)
area_face = A[2];
dS[eqn] = 0;

The current code results in no convergence of the x-velocity and y-velocity.
I wanted to know what area does the F_AREA calculate for an axisymmetric problem?
Also if anyone has worked on an axisymmetric problem with mass source defined, it would be of great help if they can share their procedure for defining the mass source?
adnanakhtar is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 8 March 24, 2014 21:06
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40

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