|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 9 ![]() |
Hello everybody
I want to add a mass source/sink term to the simpleFoam solver, but I fear that it will need more modifications than I would expect. In summary, what I want to code is the following system: ![]() ![]() Given the fact that ![]() My question is, is there any way of adding that source term into simpleFoam, without going into deep modification of additional functions like devDivReff or others? I was looking and I found that using fvOption could be an option to add a source term without modifying the solver, but it will add a source term to the momentum equation, not to the continuity equation. Last edited by palarcon; March 14, 2019 at 02:58. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 13 ![]() |
Hi Pablo,
Have u got it? Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 ![]() |
in the solver firefoam there is mass source term included. it has to be added in the pressure equation.
you can have a look https://openfoamwiki.net/index.php/FireFoam where the principle is explained a bit. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 9 ![]() |
Hi.
Yes, I did, but not in a "simple way" like I was looking for. I developed all the equations by hand starting from the transport equations and then I add the necessary terms to the mass equation and the momentum equation. After that, I just wrote on the code the resultant equations. |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 9 ![]() |
Quote:
Pablo |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
[PyFoam] and paraview | eelcovv | OpenFOAM Community Contributions | 28 | May 30, 2016 09:23 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 00:00 |
mass does not conserve in Openfoam | conceptone | OpenFOAM | 5 | February 8, 2013 03:35 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |