CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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 Community New Posts Updated Threads Search

Reply
 
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
  #1
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

DEFINE_SOURCE(ymom_source,c,t)
{
real y[ND_ND];
real con, source;

C_CENTROID(y,c,t);
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

Reply

Tags
axisymmetric 2d fluent, cylindrical coordinates, udf source


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 19:08.