Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
BumseokLee committed Oct 8, 2024
1 parent 3cc058a commit 5835b36
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 44 deletions.
14 changes: 4 additions & 10 deletions nalu-wind/2D_airfoils_Transition/1_NLF1-0416/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,17 @@ Validation and verification of the transition model were conducted for the NASA

## Simulation Conditions

- Test airfoil: NASA NLF(1)-0416 airfoil
- Test airfoil: NASA NLF(1)-0416 airfoil with a thickness of 16%
- Flow Condition: M=0.1, Re=4million, Tu=0.15%
- CFD meshes with six different resoltuions provided by AIAA CFD Transition Modeling DG[^1]
- 2-D strcutred C-type meshes: Tiny, Coarse, Medium, Fine, Extra, Ultra resolutions[^4]
- Turbulence / Transition model: SST-2003 with the 1-eq Gamma transition model with µt/µ=1
- Nalu-Wind version: [6155b17fa6b8914a819a492230c96f7990a97b78](https://github.com/Exawind/nalu-wind/commit/6155b17fa6b8914a819a492230c96f7990a97b78)
- A case with the "Fine" mesh took approximately 40 minutes to 10,000 iterations, using 4 Picard iterations per time step, on 26 cores of NREL's Kestrel HPC cluster
- The number of cores per case was not determined by Nalu-Wind’s scalability on Kestrel, but simply to accommodate 4 cases on a single node of Kestrel.

## Results: Grid Sensitivity Study

### Lift coefficient at AoA=5°
<img src="figs/aoa5/nlf0416_aoa5_cl.png" alt="Cf" width="400">

### Drag coefficient at AoA=5°
<img src="figs/aoa5/nlf0416_aoa5_cd.png" alt="Cf" width="400">
### Lift and drag coefficients at AoA=5°
<img src="figs/aoa5/nlf0416_cl_cd.png" alt="Cf" width="1000">

Two different options for the freestream conditions are tested here:
1) Local turbulence intensity with the sustaining terms (green line): same way as the OVERFLOW and FUN3D simulations
Expand All @@ -36,10 +31,9 @@ Option 2, which applies a constant turbulence intensity, improves grid convergen
### Comparison of the lift and drag coefficient
<img src="figs/clcd/nlf0416_clcd.png" alt="Cf" width="1000">


Based on the grid sensitivity results, a full sweep of angles of attack was performed using the Fine mesh level. The two figures above compare the lift and drag polar with the experimental measurements[^5]. For the lift, the transition simulation slightly over-predicts the lift coefficient in the linear range of the lift curve, a similar behavior also observed in transition predictions using other transition models and other flow solvers. For the drag polar, the transition simulation predicts lower drag across the range of angles of attack than the fully turbulent simulation, capturing the trend of the experimental data very well.

A case with the "Fine" mesh took approximately 40 minutes to 10,000 iterations, using 4 Picard iterations per time step, on 26 cores of NREL's Kestrel HPC cluster.The number of cores per case was not determined by Nalu-Wind’s scalability on Kestrel, but simply to accommodate 4 cases on a single node of Kestrel.
Each case with the "Fine" mesh took approximately 40 minutes to 10,000 iterations, using 4 Picard iterations per time step, on 26 cores of NREL's Kestrel HPC cluster. The number of cores per case was not determined by Nalu-Wind’s scalability on Kestrel, but simply to accommodate 4 cases on a single node of Kestrel.

## References
[^1]: https://transitionmodeling.larc.nasa.gov/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,59 +24,35 @@
exp_cl = exp['cl'][0]
exp_cd = exp['cd'][0]

fig = plt.figure(1)
plt.figure(figsize=(12,4.5))
plt.subplot(1, 2, 1)
#fig = plt.figure(1)
plt.plot(fun3d['h'],fun3d['cl'],'-o')
plt.plot(overf['h'],overf['cl'],'-o')
plt.plot(nalu3['h'],nalu3['cl'],'-o')
plt.plot(nalu1['h'],nalu1['cl'],'-o')
#plt.axhline(y = exp_cl, color = 'k', linestyle = '--')
plt.xlim([0, 0.01])
plt.ylim([0.96, 1.08])
plt.ylim([0.95, 1.1])
plt.xlabel('h')
plt.ylabel('Lift coefficient, $C_{l}$')
plt.legend(['SST-$\gamma$: FUN3D','SST-$\gamma$: OVERFLOW','SST-$\gamma$: Nalu-Wind','SST-$\gamma$: Nalu-Wind w/ Const Tu'])
plt.tight_layout()
plt.savefig("nlf0416_aoa5_cl.png",dpi=300)

fig = plt.figure(2)
plt.subplot(1, 2, 2)
#fig = plt.figure(2)
plt.plot(fun3d['h'],fun3d['cd'],'-o')
plt.plot(overf['h'],overf['cd'],'-o')
plt.plot(nalu3['h'],nalu3['cd'],'-o')
plt.plot(nalu1['h'],nalu1['cd'],'-o')
#plt.axhline(y = exp_cd, color = 'k', linestyle = '--')
plt.xlim([0, 0.01])
plt.ylim([0.006, 0.02])
plt.ylim([0.005, 0.02])
plt.xlabel('h')
plt.ylabel('Drag coefficient, $C_{d}$')
plt.legend(['SST-$\gamma$: FUN3D','SST-$\gamma$: OVERFLOW','SST-$\gamma$: Nalu-Wind','SST-$\gamma$: Nalu-Wind w/ Const Tu'])
plt.tight_layout()
plt.savefig("nlf0416_aoa5_cd.png",dpi=300)

print("=======Nalu: Sust ==========")
nmesh=len(nalu3)
cl_t = nalu3['cl'][nmesh-1]
cd_t = nalu3['cd'][nmesh-1]
for i in range (nmesh):
cl = nalu3['cl'][i]
cd = nalu3['cd'][i]

cl_err = (cl-cl_t)/cl_t*100
cd_err = (cd-cd_t)/cd_t*100

print("%d %3.2f %3.2f"%(i+1,cl_err,cd_err))

print("=======Nalu: Const Tu==========")
nmesh=len(nalu1)
cl_t = nalu1['cl'][nmesh-1]
cd_t = nalu1['cd'][nmesh-1]
for i in range (nmesh):
cl = nalu1['cl'][i]
cd = nalu1['cd'][i]

cl_err = (cl-cl_t)/cl_t*100
cd_err = (cd-cd_t)/cd_t*100

print("%d %3.2f %3.2f"%(i+1,cl_err,cd_err))
plt.savefig("nlf0416_cl_cd.png",dpi=300)

plt.show()

Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions nalu-wind/2D_airfoils_Transition/2_DU00-W-212/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Validation of the transition model is conducted for the DU00-W-212 airfoil using
- 2-D structred O-type mesh, with a resolution equivalent to the "Fine" resolution of the AIAA mesh
- Turbulence / Transition model: SST-2003 with the 1-eq Gamma transition model with µt/µ=1
- Nalu-Wind version: [6155b17fa6b8914a819a492230c96f7990a97b78](https://github.com/Exawind/nalu-wind/commit/6155b17fa6b8914a819a492230c96f7990a97b78)
- Each case took approximately 40 minutes to 10,000 iterations, using 4 Picard iterations per time step, on 26 cores of NREL's Kestrel HPC cluster
- The number of cores per case was not determined by Nalu-Wind’s scalability on Kestrel, but simply to accommodate 4 cases on a single node of Kestrel.

## Results: Angle of Attack Sweep

Expand All @@ -30,5 +28,7 @@ Regarding the pitching moment, the transition simulations show better correlatio

In summary, the transition model primarily improves drag prediction at low angles of attack before flow separation occurs.

Each case took approximately 40 minutes to 10,000 iterations, using 4 Picard iterations per time step, on 26 cores of NREL's Kestrel HPC cluster. The number of cores per case was not determined by Nalu-Wind’s scalability on Kestrel, but simply to accommodate 4 cases on a single node of Kestrel.

## References
[^1]: https://zenodo.org/records/439827

0 comments on commit 5835b36

Please sign in to comment.