|
[Sponsors] |
March 11, 2022, 12:40 |
Implementing coupled transport equation
|
#1 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
Hello everyone,
I am currently trying to implement two additional, coupled transport equations to the reactingFoam solver. I know how to add and solve for equations generally, though I am not sure how to correctly implement the coupled nature of those equations. The first equation is a regular scalar transport equation with a instationary, convective and diffusion tem for the scalar "f". This part is straight forward. The second transport equation for the scalar "m" also has those regular terms, but also a diffusive term as well as a source term that involve "f". I have read about fvm:: being implicit and fvc:: being an explicit function. Would it be correct to first solve the equation for "f" and use the calculated field in the equation for "m" using fvc:: ? Or is there a way to more accurately take the coupling into account? I hope this explanation is understandable. Would appreciate if anyone could give some input. |
|
March 16, 2022, 16:00 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
OpenFOAM uses segregated solution algorithms. So one equation for each variable is solved after the other. So you have to solve for f and insert the as solution of go from the previous time step
|
|
March 18, 2022, 11:52 |
|
#3 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14 |
Just to add to Michael's answer, can I suggest that you take a look at a compressible solver like rhoSimpleFoam. The heart of this solver is
Code:
#include "UEqn.H" #include "EEqn.H" #include "pEqn.H" You can draw a direct analogy to your problem, from the above, Hope that helps. |
|
March 18, 2022, 11:57 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
Foam extend has block coupled solver which allows to solve for multiple variables at once. The com and org versions do not have coupled solvers
|
|
March 20, 2022, 21:39 |
|
#5 |
New Member
Dylan
Join Date: Mar 2022
Posts: 1
Rep Power: 0 |
OpenFOAM uses segregated solution algorithms.
ultra pixel survive |
|
March 21, 2022, 04:49 |
|
#6 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
Thanks for the explanations, everyone! That helps a lot.
|
|
Tags |
scalar transport, solvecoupled, solver development |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can temperature e treated as a passive scalar be used in transport equation? | granzer | OpenFOAM Running, Solving & CFD | 3 | June 6, 2021 17:35 |
Applying correction to the k-e transport equation | Tibo99 | OpenFOAM Programming & Development | 0 | November 26, 2020 13:42 |
Adding a scalar transport equation to buoyantPimpleFoam | Pavithra | OpenFOAM Programming & Development | 6 | July 22, 2019 23:20 |
turbulent diffusion term in transport equation for additional variables | Raijin Thunderkeg | CFX | 2 | May 17, 2014 23:53 |
Is it possible to use divergence in the source term of an scalar transport equation? | jannnesss | CFX | 0 | January 8, 2010 20:53 |