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

Mean vorticity field!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2015, 14:56
Default Mean vorticity field!!
  #1
Member
 
Martin
Join Date: May 2015
Posts: 30
Rep Power: 10
Martin1 is on a distinguished road
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.
Martin1 is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 12:19.