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

DEFINE_PROFILE F_CENTRIOD problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2017, 06:21
Question DEFINE_PROFILE F_CENTRIOD problem
  #1
New Member
 
John T Koshy
Join Date: Oct 2017
Posts: 2
Rep Power: 0
johntk100 is on a distinguished road
Code:
begin_f_loop(f,t)
{
time=RP_Get_Real("flow-time");
F_CENTROID(z,f,t);
zz=z[2];
Message0("z= %f\n",zz);
The value of z shown in TUI are only negative values, why it is not giving positive values.
My domain ranges from -4 to 2m in z direction.
Please help...

Thank You
JOHN
johntk100 is offline   Reply With Quote

Old   December 15, 2017, 01:16
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by johntk100 View Post
Code:
begin_f_loop(f,t)
{
time=RP_Get_Real("flow-time");
F_CENTROID(z,f,t);
zz=z[2];
Message0("z= %f\n",zz);
The value of z shown in TUI are only negative values, why it is not giving positive values.
My domain ranges from -4 to 2m in z direction.
Please help...

Thank You
JOHN
Do you use parallel version? Maybe the parition of node zero is in negative z zone. You can use Message("z= %f\n",zz) so that each partition's z coordinate can be printed.
gearboy is offline   Reply With Quote

Old   December 17, 2017, 11:59
Default
  #3
New Member
 
John T Koshy
Join Date: Oct 2017
Posts: 2
Rep Power: 0
johntk100 is on a distinguished road
Quote:
Originally Posted by gearboy View Post
Do you use parallel version? Maybe the parition of node zero is in negative z zone. You can use Message("z= %f\n",zz) so that each partition's z coordinate can be printed.
Thank you for the reply Sir. I have used parallel version.
johntk100 is offline   Reply With Quote

Reply

Tags
define profile, f_centroid, udf code


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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 09:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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