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

Mass source term definition in UDF for an axisymmetric problem

Register Blogs Community New Posts Updated Threads Search

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

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:

c_face_loop(c,t,i)
{
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)
{
F_AREA(A,f,tf);
area_face = A[2];
source=dens*velocity*(fabs(area_face))/C_VOLUME(c,t);
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

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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14: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 13:40


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