|
[Sponsors] |
interFoam with transport: add a transport equation to only one phase |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10 ![]() |
Hello, everyone. Currently, I am simulating transport phenomena in multiphase flow and the solute only exists in one phase, which means that the solute cannot cross the interface between two phases (e.g., salt in the water-air system). With the help from this link:
InterFoam: Add an equation to only one phase I added the transport equation to the solver as below: Code:
Info<< "solve CEqn" << endl; { surfaceScalarField Cf = fvc::interpolate(C); fvScalarMatrix CEqn ( fvm::ddt(C) + fvm::div(phi, C) - fvm::laplacian(DT, C) == -fvc::laplacian(DT*Cf, alpha1) ); CEqn.relax(); fvOptions.constrain(CEqn); CEqn.solve(); fvOptions.correct(C); } To solve this problem, how should I modify the equation of the transport? Is there anyone who can enlighten me on this problem? Thanks a lot! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 ![]() |
Hi Li,
Have you solved this problem? Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Marius Bünker
Join Date: Oct 2017
Posts: 13
Rep Power: 8 ![]() |
This problem has been solved.
It is implemented in OpenFOAM v1612 https://www.openfoam.com/releases/op...nd-physics.php (see at the bottom of the page) and in OpenFOAM-dev (for three weeks now) https://twitter.com/CFDdirect/status...17062073167872 https://github.com/OpenFOAM/OpenFOAM...561205476f8b42 Last edited by Blumenkind; March 8, 2019 at 04:45. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term due to evaporation in energy transport equation | styleworker | OpenFOAM Programming & Development | 3 | September 7, 2022 03:09 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 05:21 |
udf and uds for transport equation | m003020002 | Fluent UDF and Scheme Programming | 1 | September 15, 2015 01:02 |
One transport equation, two user-defined scalar, can it be solved? | sharonyue | FLUENT | 0 | April 1, 2014 22:18 |
error message | cuteapathy | CFX | 14 | March 20, 2012 06:45 |