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

where is the origin of a boundary face for udf

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2006, 08:32
Default where is the origin of a boundary face for udf
  #1
ma jie
Guest
 
Posts: n/a
Dera sir/madam:

I am a fluent user from China. And I have a very simple question to ask for you. When I was writing a udf file for a prssure inlet boundary to set the static pressure which is changing with z cordination,I don't know where the origin of the boundary face is ,so the results are always wrong. I would very appreciate if you have time to tell me the right answer.Thank you for your reply. Sincerely yours,

Ma jie

06.8.14 My udf file are as follows:

#include "udf.h" DEFINE_PROFILE(pressure_inlet_static,thread,index) { real x[ND_ND]; real z; face_t f; begin_f_loop(f,thread) {

F_CENTROID(x,f,thread);

z=x[2];

F_PROFILE(f,thread,index)=9800*(13.6-z); }

end_f_loop(f,thread) }

  Reply With Quote

Old   August 14, 2006, 15:21
Default Re: where is the origin of a boundary face for udf
  #2
karolw
Guest
 
Posts: n/a
You should not worry about the origin, the z coordinate is the absolute location regarding the origin of your mesh. The following line looks suspicious:

F_PROFILE(f,thread,index)=9800*(13.6-z);

Is your model actually this big? Remember that the length units are meters.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 01:54


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