|
[Sponsors] |
June 18, 2015, 10:27 |
Mean vorticity field
|
#1 |
Member
Martin
Join Date: May 2015
Posts: 30
Rep Power: 11 |
Hello,
I am new to UDF scripts and I have tried to make a script using UDF manual, and FLUENT does not complain when I interpret but I don't know if the script is correct. I have a LES simulation and want to make a contour plot of mean vorticity and I don't have any velocity fields from time steps. So I have to make a UDF script in order to get mean vorticity field of velocity fields. The script is as follows #include "udf.h" enum{ VORT }; DEFINE_ON_DEMAND(vorticity_on_demand) { Thread*t; cell_t c; face_t f; Domain *domain; domain = Get_Domain(1); thread_loop_c(t,domain) { begin_c_loop(c,t) { C_UDSI(c,t,VORT) = (C_DWDY(c,t)-C_DVDY(c,t)) + (C_DWDX(c,t)-C_DUDZ(c,t)) + (C_DVDX(c,t)-C_DWDY(c,t)); } end_c_loop(c,t) } } When I interpret, I can't see the vorticity in the contour list and don't know how to make it. Last edited by Martin1; June 18, 2015 at 14:54. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
write a UDF to give a velocity boundary condition at an interior face | Tharanga | Fluent UDF and Scheme Programming | 19 | August 5, 2018 04:29 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 07:26 |
fluent udf problem: write specific data for every iteration in a file. | nnvoro | Fluent UDF and Scheme Programming | 1 | May 27, 2013 15:26 |
How to write UDF to achieve phase chang | dunga82 | Fluent UDF and Scheme Programming | 0 | May 6, 2013 08:50 |
how to write a 3D linear temperature of UDF | venus | FLUENT | 1 | October 28, 2008 02:46 |