|
[Sponsors] |
Difference in Source term of UDF for cylindrical coordinates compare to cartesian |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 2, 2020, 05:10 |
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: 7 |
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. |
|
Tags |
axisymmetric 2d fluent, cylindrical coordinates, udf source |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source term for EVAPORATION in Energy Equ. - technical difficulty ? | Kummi | OpenFOAM | 1 | September 9, 2019 10:32 |
using value of surface integral in source term UDF | morihangi | Fluent UDF and Scheme Programming | 0 | March 23, 2019 04:59 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
UDF source term | jerome_ | FLUENT | 2 | July 11, 2011 12:55 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |