|
[Sponsors] |
September 1, 2022, 19:12 |
Defining Boundary Flux
|
#1 |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
Hello,
I want to specify a certain flux for my user defined scalar. My idea is to create a profile that I can then implement as the flux condition on the given wall. In this example I am trying to set a boundary that would recover pressure. and So the pressure BC is nabla(P) dot n. My code as such would ideally read as follows, where F_UDSI(f,t,12) is dp/dx and 13 is dp/dy. DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; real y; real A[ND_ND]; face_t f; begin_f_loop(f,t) { F_AREA(A, f, t); F_PROFILE(f,t,i) = A[0]*F_UDSI(f,t,12)+A[1]*F_UDSI(f,t,13); end_f_loop(f,t) } } It appears to be working in the sense that it will hook but is not doing as desired, I'm unsure If this is incorrect from a computational standpoint or I am missing something here. Thanks for your help. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field | xiexing | CFX | 3 | March 29, 2017 11:00 |
Setting rotating frame of referece. | RPFigueiredo | CFX | 3 | October 28, 2014 05:59 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |