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

Flux of UDS

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By PierceH
  • 1 Post By vinerm
  • 1 Post By vinerm

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 23, 2020, 16:47
Default Flux of UDS
  #1
Member
 
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7
PierceH is on a distinguished road
I have created a UDS which runs nicely, however I want to specify the flux at the walls of the aircraft wing to be the same as pressure flux. I used the following code:


DEFINE_PROFILE(UDSP, t, i)
{
real x[ND_ND]; /* this will hold the position vector */
real y, h;
face_t f;
real A[ND_ND];

begin_f_loop(f,t)
{
F_CENTROID(x, f, t);
F_AREA(A,f,t);
F_PROFILE(f, t, i) = A[0]*C_P_G(f,t)[0]+A[1]*C_P_G(f,t)[1]+A[2]*C_P_G(f,t)[2];
}
end_f_loop(f, t)
}



however I keep getting an error. Any help would be appreciated
Chris2337 likes this.
PierceH is offline   Reply With Quote

 


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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
UDS Flux Function Choice Yang Chung FLUENT 1 November 17, 2015 02:14
setting UDS Flux Andrew Garrard FLUENT 9 February 10, 2015 14:26
UDS Flux Function Problem sunbird04 FLUENT 6 April 28, 2014 03:58
Help with UDS FLUX Andrew Garrard FLUENT 2 February 14, 2005 06:47


All times are GMT -4. The time now is 19:59.