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

moitoring plane to UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2007, 05:16
Default moitoring plane to UDF
  #1
James
Guest
 
Posts: n/a
Hi All,

We are trying to loop over a plane at every time step to determine the maximum pressure in the plane. This maximum pressure will then be used as an input into our UDF. Is it possible to use the monitor plane capability in Fluent to do this? Our trouble is how to transfer the data written my monitor at every time step to the UDF. Any assistance or suggestion will be highly appreciated.

Thanks.

James

  Reply With Quote

Old   January 29, 2013, 14:41
Default p on a plane
  #2
Member
 
Nick Cleveland
Join Date: Mar 2012
Posts: 35
Rep Power: 14
NCle is on a distinguished road
I am trying to do the same thing. I need the average pressure at an interior plane I specified. The problem is it seems like I have to give the UDF the structure name of the data on the plane for it to understand it.

It may be going against nature of Fluent, but is there a way to get average pressure on an internal plane? I need ave pressure to use in the UDF to adjust velocity inlet speed.

#include"udf.h"
DEFINE_PROFILE(unsteady_velocity, thread, position) /*line 9*/
{
Thread *t;
face_t f;
real pave;
real A;
real time;
real pfac;
real time_step;
time = CURRENT_TIME;
/*compute average pressure at inlet*/
pave = 0.0;
begin_f_loop(f,t)
/* line 21 has structure/union error: doesn't refer to strucure or union*/
{

pave += F_P(f,time)/F_NNODES(plane 14,f,t);
/* line 25 gets average pressure in plane, but struc/union error here too*/

}
end_f_loop(f,time)
NCle 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
Using a Plane id in Fluent UDF cdf_user Fluent UDF and Scheme Programming 13 October 17, 2023 00:06
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
calculation average pressure in a plane with UDF Vitalij FLUENT 1 April 10, 2007 03:39


All times are GMT -4. The time now is 09:28.