|
[Sponsors] |
where is the origin of a boundary face for udf |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 14, 2006, 08:32 |
where is the origin of a boundary face for udf
|
#1 |
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) } |
|
August 14, 2006, 15:21 |
Re: where is the origin of a boundary face for udf
|
#2 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |