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

Simulating Vortices Velocity( using burnhan-hallock model)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2016, 17:34
Default Simulating Vortices Velocity( using burnhan-hallock model)
  #1
New Member
 
Parth Shah
Join Date: Sep 2016
Posts: 1
Rep Power: 0
parth_shah91 is on a distinguished road
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
Attached Images
File Type: png Untitled.png (125.2 KB, 1 views)
parth_shah91 is offline   Reply With Quote

Reply

Tags
fluent, udf, vortices


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
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 20:42
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Simulating Goertler vortices in cfx bingo10 CFX 1 December 11, 2012 18:14
Initial pressure and transverse velocity fields to initialize turbulence model nickvinn Main CFD Forum 0 February 29, 2012 11:11
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 02:45.