Computation of CL CD from history.csv and flow.vtu differ by a factor of 2. #2556
Unanswered
atharvaaalok
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am doing the following:
Given an airfoil shape using coordinates X (which is a (N, 2) matrix of x, y pairs) I first run it through SU2 to generate the different output files: history.csv, flow.vtu, surface_flow.csv.
Step 1: I first parse the history.csv file and read the last value of CL (that is the one obtained after convergence).
Step 2: Then I read the surface coordinate points from surface_flow.csv and use the other data rho_u, rho_v etc to compute the pressure coefficient cp. Another way to get cp is to simply read the pressure coefficient values from flow.vtu at the surface points.
Step 3: Compute CL and CD using CP distribution on the surface. I use the function described below.
Step 4: Compare the CL compute as in step 3 with the one read from history.csv in step 1.
Observation: The CL computed from Step 3 is for all shapes 2 times the CL reported in history.csv.
I have raised an issue for this before:
#2549
But the code links provided in the reply are very very hard to parse and I am not able to pin point what exactly the problem is.
Beta Was this translation helpful? Give feedback.
All reactions