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

Lift from Adjusted Pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2020, 12:55
Default Lift from Adjusted Pressure
  #1
Member
 
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7
PierceH is on a distinguished road
I write a UDF to generate a different pressure than created from Fluent's static pressure. I want to calculate the lift and drag that this produces. My first thought was to use a define adjust where C_P(c,t)=C_UDS(c,t,i), however, that does not change values on the surface that I need in order to calculated lift and drag. Any thoughts?

Thank You


This has been solved, for anyone reading in future: In order to solve the Force a UDS creates acting on a body -1) create a custom field function: x-face-area * UDS/p_substitute , then 2) perform a surface integral summation, this will give you the drag force.

Last edited by PierceH; January 15, 2020 at 14:23. Reason: SOLVED
PierceH is offline   Reply With Quote

Old   January 14, 2020, 22:45
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
C_UDS(c,t,i) is wrong macro
at least it should be C_UDSI(c,t,i)

to define values on surfaces you may use F_UDSI(c,t,i)
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 15, 2020, 10:44
Default
  #3
Member
 
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7
PierceH is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
C_UDS(c,t,i) is wrong macro
at least it should be C_UDSI(c,t,i)

to define values on surfaces you may use F_UDSI(c,t,i)

Alexander, apologies for the typo, I did have it in as UDSI. I also tried using F_P(c,t)=F_UDSI(c,t,i), however it does not resolve my issue, where the pressure is not recalculating around the airfoil boundary, the pictures may explain better. For reference, the UDSI(c,t,i)=0 as a test case here.

My second option to calculate the lift and drag force from the UDS would be to obtain the boundary normal vector around the airfoil and use that to calculate the total drag force, i.e. (UDS*normal vector*direction vector) then use the integral report for this but unsure how to go about calculating.
Attached Images
File Type: jpg airfoil1.JPG (20.9 KB, 4 views)
File Type: jpg airfoilzoom.JPG (13.2 KB, 4 views)
PierceH is offline   Reply With Quote

Old   January 16, 2020, 05:50
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
I believe the problem with your second picture is visualization only, switch of node values in contour options
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 16, 2020, 12:00
Default
  #5
Member
 
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7
PierceH is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
I believe the problem with your second picture is visualization only, switch of node values in contour options
Alexander, are you sure that this is simply a visualisation error? to me it's suggesting that face values are accurately obtained but nodal values are not on near the boundaries, thoughts?
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
Pressure Inlet Boundary Conditions Mr.Goodcat FLUENT 5 June 20, 2019 02:47
CFX Solver stopped with error when requested for backup during solver running Mfaizan CFX 40 May 13, 2016 07:50
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 18:16
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
pressure. lift and drag coefficients waqar mahboob Main CFD Forum 0 July 25, 1998 04:34


All times are GMT -4. The time now is 20:58.