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

Implementing coupled transport equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2022, 12:40
Default Implementing coupled transport equation
  #1
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 6
Swirl is on a distinguished road
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.
Swirl is offline   Reply With Quote

Old   March 16, 2022, 16:00
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
mAlletto is offline   Reply With Quote

Old   March 18, 2022, 11:52
Default
  #3
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
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"
i.e. it solves the velocity momentum predictor, then solves the energy equation (thereby updating the T field, based on the old p field) and then calculates the new p field, and uses that to correct the velocity field. But of course, p and T are coupled through the equation of state, and so some approximation was necessary with this segregated approach (i.e. p and T are out of sync slightly). In a truly coupled solver, p & T would be solved simultaneously ... but as Michael explains, OF does not contain such a solver (as far as I am aware).

You can draw a direct analogy to your problem, from the above, Hope that helps.
Tobermory is offline   Reply With Quote

Old   March 18, 2022, 11:57
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
Tobermory likes this.
mAlletto is offline   Reply With Quote

Old   March 20, 2022, 21:39
Default
  #5
New Member
 
Dylan
Join Date: Mar 2022
Posts: 1
Rep Power: 0
dylanmadison is on a distinguished road
OpenFOAM uses segregated solution algorithms.
ultra pixel survive
dylanmadison is offline   Reply With Quote

Old   March 21, 2022, 04:49
Default
  #6
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 6
Swirl is on a distinguished road
Thanks for the explanations, everyone! That helps a lot.
Swirl is offline   Reply With Quote

Reply

Tags
scalar transport, solvecoupled, solver development


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
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


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