|
[Sponsors] |
[swak4Foam] Dynamically morphing airfoil using groovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 20, 2022, 04:35 |
Dynamically morphing airfoil using groovyBC
|
#1 |
Member
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14 |
Hello
I am trying to simulate 2D flow around a dynamically morphing airfoil using OpenFOAM-v2106. The airfoil surface near the trailing edge is supposed to morphed downwards with time. I believe this can be achieved using groovyBC. I set everything up and the mesh seems to move, but I am facing a weird issue. The original C-type mesh is created in ICEM CFD, and exported to OpenFOAM. I want to keep the first cell height near the wall as constant throughout the simulation in order to keep a constant y+. But as you can see from the screenshots, in the very first iteration something weird happens and the mesh moves in an abnormal way. In the first time step, the airfoil wall didn't move, but the mesh around it moved. This results in a deformed mesh where the wall distance become reduced on the top side but keeps as expected in the bottom side. Later from the next time-step on-wards, the mesh deforms in the same manner I expected, and from thereon the wall distance no longer changes. I cannot post the case file here, because the mesh size is large. A minimalistic cellDisplacementDict to reproduce this is given below. Code:
FoamFile { version 2.0; format ascii; class volVectorField; object cellDisplacement; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 0 0 0 0 0]; internalField uniform (0 0 0); boundaryField { TOP { type groovyBC; value uniform (0 0 0); valueExpression "vector(0,df,0)"; variables ( "df=-0.3*time();" ); } BOTTOM { type groovyBC; value uniform (0 0 0); valueExpression "vector(0,df,0)"; variables ( "df=-0.3*time();" ); } FIXEDWALLS { type fixedValue; value uniform (0 0 0); } INLET { type fixedValue; value uniform (0 0 0); } OUTLET { type fixedValue; value uniform (0 0 0); } frontAndBack { type empty; } } Code:
FoamFile { format ascii; class dictionary; location "system"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicMotionSolverFvMesh; motionSolverLibs ("libfvMotionSolvers.so"); motionSolver displacementLaplacian; diffusivity directional (20 0.1 0); |
|
May 20, 2022, 11:47 |
|
#2 |
Member
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14 |
Deleted.....
Last edited by toolpost; June 16, 2022 at 23:28. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with airfoil shape optimization | robyTKD | SU2 Shape Design | 7 | March 7, 2022 16:18 |
SU2 AOA optimization | 454514566@qq.com | SU2 | 9 | March 7, 2022 16:17 |
Ffd_control_point_2d | feiyi | SU2 | 4 | September 30, 2019 12:42 |
High drag for airfoil compared to XFOIL and wind tunnel data | Ry10 | SU2 | 15 | October 30, 2016 17:27 |
2D FFD Optimization | RLangtry | SU2 | 2 | August 5, 2014 09:48 |