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

Defining Boundary Flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2022, 19:12
Default Defining Boundary Flux
  #1
Member
 
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7
PierceH is on a distinguished road
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.
PierceH is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 22:48.