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

chemistry: ODE solver...

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By pattim
  • 3 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2020, 11:50
Default chemistry: ODE solver...
  #1
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
Hello Everyone: In chemistry cases (reactingFoam) the Arrhenius equations are solved by an ODE solver - I'm wondering how these outputs are coupled to the flow equations? The interest is this: it might be useful to be able to partition CPUs in chemistry-space somehow, since chemistry often dominates over flow, which is a grid phenomenon, and CPUs can currently only be partitioned over grid-space.

In order to improve my understanding, is there a write-up on the ODE-PDE coupling in OF?

Thank You!
Patricia
dlahaye likes this.
pattim is offline   Reply With Quote

Old   August 26, 2020, 12:44
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Papers by Cuoci, Contino, Parrente and others. Should do proper homework in order to give a better answer. Sorry ...
dlahaye is offline   Reply With Quote

Old   August 26, 2020, 13:06
Default
  #3
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Papers by Cuoci, Contino, Parrente and others. Should do proper homework in order to give a better answer. Sorry ...
Thanks for the references. CFD is a big field, and chemistry in CFD is not that popular. In particular, solver structure (SIMPLE vs. PISO) is even less-discussed as related to ODE source-term coupling of interphase transport of chemical species (sources/sinks).
pattim is offline   Reply With Quote

Old   August 27, 2020, 06:39
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Please allow me to try to answer two posts.

Chemically reacting flows and combustions are huge fields of research. I collected some papers on the simulation of chemically reacting flow simulations in OF in a Dropbox folder that I am happy to share. I am happy to support a write-up on PDE-ODE coupling to help clarify these matters.

I can image that deflagration/detonation simulations are hard to make converge. I do agree that non-reactive flows might not be the ideal starting guess for the simulations. Possible one can include more intermediate step by freezing alternatively the flow and the chemistry or by simplifying the chemistry.
pattim, ugata88 and wsp like this.
dlahaye is offline   Reply With Quote

Old   May 14, 2022, 10:06
Default
  #5
New Member
 
Join Date: Apr 2015
Posts: 15
Rep Power: 11
Numericer is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Please allow me to try to answer two posts.

Chemically reacting flows and combustions are huge fields of research. I collected some papers on the simulation of chemically reacting flow simulations in OF in a Dropbox folder that I am happy to share. I am happy to support a write-up on PDE-ODE coupling to help clarify these matters.

I can image that deflagration/detonation simulations are hard to make converge. I do agree that non-reactive flows might not be the ideal starting guess for the simulations. Possible one can include more intermediate step by freezing alternatively the flow and the chemistry or by simplifying the chemistry.
Dear Domenico,



Can you please share the link to the Dropbox folder?



I want to understand how ODE solution is tied to the conservation equations.



Are the ODE for species concentrations solved at every grid point in the domain, stored in the source term and then supplied to the PDE's?
Numericer is offline   Reply With Quote

Old   May 16, 2022, 07:06
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Greetings,

I copied the papers to the drive

https://mega.nz/folder/nUsSxQjB#r9XIuDz_6mKHma820wI1CQ

There are at least two ways to solve for the species mass fraction.

The first is not to worry about the ODE solvers at all. In this approach, the outer PIMPLE iteration takes care of the time advancement. Example is reactingFoam.

The second approach is to implement a splitting method in which transport and chemistry receive separate treatment. In this approach, the chemistry is solved by an ODE. See papers by Cuoci among others.
dlahaye is offline   Reply With Quote

Old   May 16, 2022, 18:23
Default
  #7
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
Hmmm... chemistry is usually "stiff" - so an good ODE solver is usually needed. I wonder if the outer Pimple loop is good enough to converge the chemistry? (converging the flows is relatively easy.) It must be good enough because the reactingFoam examples usually converge for arbitrarily complex Arrhenius reaction sets and temperatures/pressures, although I've never tried converging through shocks or strong gradients, and I don't think there's any example cases of that.
pattim is offline   Reply With Quote

Old   May 17, 2022, 07:37
Default
  #8
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Dear Pattim,

Thank you for raising your thoughtful comments.

I agree that chemistry can be stiff. No doubts here.

I, however, do not see any ODE-solver reactingFoam being called from reactingFoam.

I do instead see the various mass fraction field Y_i being solved within the PIMPLE loop.

Do deal with complex problems, more complex solvers have been developed. The work by Cuoci and co-authors is a good example.

Does this help?
dlahaye is offline   Reply With Quote

Old   May 17, 2022, 11:17
Default
  #9
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
Yes, you're right - it all depends on the solver. A very good non-ODE solver can deal with stiff chemistry terms. Solvers have come a long way in the last couple of decades. I'm looking over those papers. Thank you very much for uploading them!!

I've been using reactingFoam for quite complex hydrocarbon combustion (DANDIA CHEMKIN-style) - it's basic research on yields of PAH under fuel-rich conditions. It might be useful if I could include evaporation of fuel droplets, but I don't think the solvers care good enough (yet) to do that well.
pattim is offline   Reply With Quote

Old   May 17, 2022, 15:18
Default
  #10
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
The repository still lacks reference on the implementation on the TDAC reduction algorithm, the soot modeling, the flamelet modeling and the ignition. I will be happy to add in case any one sends suggestions.

Cheers, Domenico.
dlahaye is offline   Reply With Quote

Old   June 6, 2022, 20:06
Default
  #11
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
The repository still lacks reference on the implementation on the TDAC reduction algorithm, the soot modeling, the flamelet modeling and the ignition. I will be happy to add in case any one sends suggestions.

Cheers, Domenico.
Thank you for your kind comment. I thought there were one or two names given as references for TDAC? Maybe I'm wrong. I've simply used chemkin-style detailed chemistry - and was successful, although I haven't tried high-speed or compressible flows. If by "soot-modeling" you mean detailed Arrhenius chemistry - I don't think that's known science of high-temperature gas-phase macromolecules (i.e., detailed Arrhenius model) as of now. I think current Arrhenius models only go up to, maybe C15 aromatic molecules? (And that's thousands of reactions.)

I think ignition is only really a problem with this approach (detailed Arrhenius) at high MACH numbers. There are some (expensive) fully-coupled PDE/ODE detailed Arrhenius models available that can do high MACH numbers chemical reactions and combustion. The regular suite of aerospace flow solvers can't tackle that with sufficient reality, however.

It would be very instructive and useful to have a compressible version (relatively low MACH numbers... 1-3?) of the TDAC examples. (TDAC+choked nozzle? It would be worth testing how high in MACH number the solver will continue to converge.) Fuel droplet evaporation with gas-phase Arrhenius chemistry would be another useful model to explore (below MACH1). I'm told these sorts of things can be difficult to code for a fully-coupled solvers, but if the existing OF solvers used here (PISO?) are as good as they appear to be for combustion, it may be doable?

Last edited by pattim; June 7, 2022 at 12:25.
pattim is offline   Reply With Quote

Reply


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
OpenFOAM chemistry solver alicharchi OpenFOAM Programming & Development 1 September 2, 2019 03:44
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
reactingFoam: ODE Solver KRR4 "Too many integration steps" pajofego OpenFOAM 3 May 18, 2013 15:15
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
ODE solver extension to RKtime integration for CFD luca_g OpenFOAM Running, Solving & CFD 4 September 26, 2007 06:44


All times are GMT -4. The time now is 10:26.