|
[Sponsors] |
June 18, 2015, 15:56 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[SOWFA] NREL SOWFA ABLTerrainSolver tutorial problem | cico0815 | OpenFOAM Community Contributions | 36 | February 3, 2022 12:54 |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
Using sample to Inlet velocity field | amanbearpig | OpenFOAM Running, Solving & CFD | 14 | November 16, 2015 06:47 |
Problems creating a volScalarField with expressionField function-object | zfaraday | OpenFOAM Running, Solving & CFD | 2 | January 12, 2015 08:49 |
How to get the velocity field from the pressure field | Hermano | Main CFD Forum | 2 | November 29, 2011 09:32 |