|
[Sponsors] |
January 14, 2020, 12:55 |
Lift from Adjusted Pressure
|
#1 |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
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 |
|
January 14, 2020, 22:45 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
January 15, 2020, 10:44 |
|
#3 | |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
Quote:
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. |
||
January 16, 2020, 05:50 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
January 16, 2020, 12:00 |
|
#5 |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
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?
|
|
|
|
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 |