CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Difference in Source term of UDF for cylindrical coordinates compare to cartesian

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

LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2020, 04:10
Default Difference in Source term of UDF for cylindrical coordinates compare to cartesian
New Member
Vinay Chandrakar
Join Date: Jun 2019
Location: Mumbai
Posts: 10
Rep Power: 6
chinu007 is on a distinguished road
Hi Everyone,
I am trying to write a source term UDF for my 2D axisymmetric problem.

I already created source term UDF for square geometry (cartesian coordinates) which is mentioned below and working well.
#include "udf.h"

#define C2 -9.81

real y[ND_ND];
real con, source;

con = C2;

source = con*(0.06*C_T(c, t)-0.00416*C_T(c, t)*(C_T(c, t));

return source;
My question is if I want to do analysis of sphere instead of square (2D axisymmetric) do I have to change anything in this code?

And if it's required what is the way to modify it??

Thanks in advance.
chinu007 is offline   Reply With Quote


axisymmetric 2d fluent, cylindrical coordinates, udf source

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
Source term for EVAPORATION in Energy Equ. - technical difficulty ? Kummi OpenFOAM 1 September 9, 2019 09:32
using value of surface integral in source term UDF morihangi Fluent UDF and Scheme Programming 0 March 23, 2019 03:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
UDF source term jerome_ FLUENT 2 July 11, 2011 11:55
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24

All times are GMT -4. The time now is 18:20.