CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

implementation of rk4 for species transport

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2021, 00:01
Default implementation of rk4 for species transport
  #1
New Member
 
sanjeev adhikari
Join Date: May 2018
Posts: 13
Rep Power: 8
sanjeev_adhikari is on a distinguished road
Hello everyone,

I was facing the problem with time accuracy of the solution using first order Euler ddt. So, i thought of implementing rk4 third order time accuracy. Following represents the



equations:

rho = rhoOld + rkCoef[cycle] *runTime.deltaT()*(-fvc::div(Riemann.rhoFlux()))


momentum equations.
rhoU = rhoUOld + rkCoeff[cycle]*runTime.deltaT()*(-fvc::div(Riemann.rhoUFlux())+fvc::div(tauMC)+fvc:: laplacian(muEff, U));



species transport eqn:
fvScalarMatrix YiEqn
(
rhoYi - rhoYOldi
- rkCoeff[cycle]*runTime.deltaT()*(-fvc::div(Riemann.rhoScalarFlux(i))+
fvm::laplacian(turbulence->muEff(), Yi))
== rkCoeff[cycle]*runTime.deltaT()*reaction->R(Yi)
);


energy eqn


rhoE = rhoEOld + rkCoeff[cycle]*runTime.deltaT()*(
-enFl + fvc::div(sigmaDotU) + fvc::laplacian(turbulence->alphaEff(), h)
+fvc::laplacian(k,T)+reaction->Sh());



well the solver runs fine but temperature of the solution is less by half then it should be.
However other flow structure are also captured. I have doubt over implementation of the species transport equation. As low temperature might be because there was no combustion. As in H2O concentration contour there is not any sign of it.









ps. i am not calculating time step separately. right now just using setDeltaT from openFoam library.



Thank you all.
sanjeev_adhikari is offline   Reply With Quote

Old   May 6, 2021, 05:15
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Not an OF expert here but, just two cents:

1) Who's enFl ?

2) Did it work without species?
sbaffini is offline   Reply With Quote

Old   May 8, 2021, 23:43
Default
  #3
New Member
 
sanjeev adhikari
Join Date: May 2018
Posts: 13
Rep Power: 8
sanjeev_adhikari is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Not an OF expert here but, just two cents:

1) Who's enFl ?

2) Did it work without species?

Thank you for your reply:



enfl is fvc::div(Riemann.rhoEFlux())


i didn't check without species for my case. i started implementing rk4 for all these 4 equations. I think continuity, momentum and energy equations are working fine as the solution obtained captures shock structure as in experimental case. However, i cannot see combustion nor species concentration in those result..



However, i will implement without species and confirm separately too.
sanjeev_adhikari is offline   Reply With Quote

Reply

Tags
combustion, compressible flows, rk4 method, runge-kutta, time accurate


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
Issues in FGM combustion model implementation Lisandro Maders OpenFOAM Programming & Development 15 April 22, 2020 20:18
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 19:19
Evaporation due to Heat Transport using InterFoam (Correct Implementation?) ovie OpenFOAM 14 August 3, 2019 08:00
the A matlab implementation for motion of a steel sphere dropped in air using RK4 cenker2018 Main CFD Forum 0 October 26, 2018 19:51
Please explain the implementation of species transport Eqn in reactingFoam kallipygian OpenFOAM Running, Solving & CFD 0 October 13, 2008 08:29


All times are GMT -4. The time now is 04:08.