|
[Sponsors] |
May 6, 2021, 00:01 |
implementation of rk4 for species transport
|
#1 |
New Member
sanjeev adhikari
Join Date: May 2018
Posts: 13
Rep Power: 8 |
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. |
|
May 8, 2021, 23:43 |
|
#3 | |
New Member
sanjeev adhikari
Join Date: May 2018
Posts: 13
Rep Power: 8 |
Quote:
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. |
||
Tags |
combustion, compressible flows, rk4 method, runge-kutta, time accurate |
|
|
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 |