|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 14 ![]() |
I am working on reactive flow and I do not understand the way reactingFOAM solves the Yi equations.
To be more specific, the question is how the source terms (reaction->R(Yi)) are discretized? I am quite sure that the Ode solver is used to calculate that term in reaction->correct() member function while the temporal term (fvm::ddt(rho, Yi)) is discretized by Euler ddt scheme. I have noticed the R member function returns a pointer of type fvScalarMatrix. Can anyone give some insight into the procedure of discretizing the source term? Note that I am using OF 2.3.1. Thanks |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Karthik Thyagarjan
Join Date: Jul 2019
Posts: 4
Rep Power: 8 ![]() |
step 1 The reaction-> correct() actually solves the stiff chemical ode to get R[i]
(order of integration is 10e-9 integrated upto ~ deltaT) step 2 the species equation is solved based normal implicit scheme Since the implementation allows interchangeable use of fvScalarMatric and volScalarField( difference being the boundary)
|
|
|
|
|
|
![]() |
| Tags |
| chemistry model, ode solver, reactingfoam |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
| How to rewrite a standard OpenFOAM solver as a C++ class | cfbaptista | OpenFOAM Programming & Development | 7 | March 23, 2016 05:50 |
| Can't get data from OpenFoam to external solver using externalCoupled | perry | OpenFOAM Running, Solving & CFD | 4 | May 26, 2014 09:09 |
| Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
| CH4 gas-phase reaction and stiff chemistry solver | sonosun | FLUENT | 0 | April 15, 2010 22:01 |