CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Adding a time-varying momentum source term to pimpleDyMFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pruthvi1991

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2015, 13:41
Question Adding a time-varying momentum source term to pimpleDyMFoam
  #1
Member
 
Pruthvi
Join Date: Feb 2014
Posts: 41
Rep Power: 12
pruthvi1991 is on a distinguished road
Hello everybody.

I'm trying to simulate a flapping airfoil with plunge amplitudes as high as 2 chords. Mesh deformation seems to be infeasible for this purpose. Therefore I want to implement the method used by Kinsey and Dumas (2008). They have added a time-varying momentum source term to the Ueqn and also time-varying velocity inlets to the top,bottom and inlet patches. The body force term is independent of space. This is basically a solver in a non-inertial frame of reference. The pitching motion is taken care of by a rotating AMI.

I want to validate the pimpleFoam solver in the non-inertial frame before I proceed to pimpleDyMFoam. I modified the solver as follows by following some previous posts in the forum.

I added an explicit source term to the right hand side of Ueqn as follows

Code:
solve(UEqn() == -g -fvc::grad(p));
g is the time varying body force defined as follows

Code:
 g=gunits*Foam::cos(runTime.value()*freQ)*vector(0,1,0);
I ran a simulation using the modified solver which is available here. The flow field seems to be reasonable but the value of forceCoeffs is much smaller than the actual value and also very erratic. Check out the forceCoeff plots below.

Cy_non_inertial.png // Non-inertial plot

forceCoeffs_flatplate.jpg // Dynamic Mesh plot

I want to know if there is any mistake in this implementation.

Here is a flow field of the same case using a dynamic mesh.

Do I need to add the body force term to the fvSchemes file? I didn't because 'g' is just a known constant.

Did anybody implement this before? I will be glad to hear your suggestions.

The case file is available here.

Thanks,
Pruthvi.
utkunun likes this.

Last edited by pruthvi1991; April 15, 2015 at 13:48. Reason: renamed attachments
pruthvi1991 is offline   Reply With Quote

Old   April 15, 2015, 17:05
Default
  #2
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
I dont know if what im saying makes sense or not but since you want any suggestion

When changing the momentum equation, shouldn't the pressure correction and flux correction be changed as well?
kebsiali is offline   Reply With Quote

Old   April 16, 2015, 14:03
Default
  #3
Member
 
Pruthvi
Join Date: Feb 2014
Posts: 41
Rep Power: 12
pruthvi1991 is on a distinguished road
Hi Ali,

I don't know if I should or shouldn't. Can you explain why I should?
pruthvi1991 is offline   Reply With Quote

Old   September 11, 2018, 15:04
Default
  #4
JSR
New Member
 
Jaijeet
Join Date: Feb 2017
Posts: 6
Rep Power: 9
JSR is on a distinguished road
Do you solve that issue? I am also working on the same type of problem.
JSR is offline   Reply With Quote

Old   June 21, 2021, 12:02
Default
  #5
New Member
 
Shuo Mi
Join Date: Nov 2020
Location: London
Posts: 19
Rep Power: 6
Msure is on a distinguished road
Quote:
Originally Posted by JSR View Post
Do you solve that issue? I am also working on the same type of problem.
Hello,

Have you solved the problem?
Thanks.
Msure is offline   Reply With Quote

Reply

Tags
kinsey and dumas, modified solver, pimpledymfoam, source term, validation


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
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
How does fluent handles the momentum source term? QBeast FLUENT 0 April 22, 2013 15:12


All times are GMT -4. The time now is 12:50.