|
[Sponsors] |
Simulating Vortices Velocity( using burnhan-hallock model) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Parth Shah
Join Date: Sep 2016
Posts: 1
Rep Power: 0 ![]() |
We are trying to simulate 2D vortices in Ansys fluent using UDF.
we have written the code but it is not giving the desired output as shown in the given paper written by researchers from china. I have written the following code in Define_init. Please let me know where I am wrong " #include "udf.h" DEFINE_INIT(my_init_func, domain) { cell_t c; Thread *t; real xc[ND_ND]; /* loop over all cell threads in the domain */ thread_loop_c (t,domain) { /* loop over all cells */ begin_c_loop_all (c,t) { C_CENTROID(xc,c,t); C_U(c,t) = (9.71*(sqrt(ND_SUM(pow(xc[0],2.),pow(xc[1],2.))) ))/ (ND_SUM(pow(xc[0] ,2.),pow(xc[1] ,2.))+0.36); } end_c_loop_all (c,t) } } " Please identify any errors in the code and suggest any changes. Any help will be greatly appreciated |
|
![]() |
![]() |
![]() |
Tags |
fluent, udf, vortices |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in Two phase (condensation) modeling | adilsyyed | CFX | 15 | June 24, 2015 19:42 |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 14:32 |
Simulating Goertler vortices in cfx | bingo10 | CFX | 1 | December 11, 2012 17:14 |
Initial pressure and transverse velocity fields to initialize turbulence model | nickvinn | Main CFD Forum | 0 | February 29, 2012 10:11 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 09:11 |