|
[Sponsors] | |||||
|
|
|
#61 | |
|
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 10 ![]() |
Quote:
arse error." The udf are as follows:/************************************************** ********************* udfexample.c UDF for specifying volume profile boundary condition ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(inlet_volume, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; h = -0.0009; /* inlet height in m */ begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = x[1]; if (y<h) { F_PROFILE(f, thread, position) =1; } else { F_PROFILE(f, thread, position) =0; } end_f_loop(f, thread) } |
||
|
|
|
||
|
|
|
#62 |
|
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,018
Rep Power: 146 ![]() ![]() ![]() ![]() |
Try the fluent forum.
|
|
|
|
|
|
![]() |
| Tags |
| cfx, interface, periodic, translational |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
| Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
| Confused about periodic interface | Jeff | STAR-CCM+ | 3 | August 15, 2012 23:30 |
| CFX Solver Memory Error | mike | CFX | 1 | March 19, 2008 08:22 |
| Periodic Interface | Magnoli | CFX | 0 | November 7, 2007 08:51 |