|
[Sponsors] |
interFoam with transport: add a transport equation to only one phase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2017, 06:35 |
interFoam with transport: add a transport equation to only one phase
|
#1 |
New Member
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 11 |
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! |
|
July 27, 2018, 13:46 |
|
#2 |
Member
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12 |
Hi Li,
Have you solved this problem? Thanks! |
|
March 6, 2019, 09:42 |
|
#3 |
New Member
Marius Bünker
Join Date: Oct 2017
Posts: 13
Rep Power: 9 |
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 05:45. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term due to evaporation in energy transport equation | styleworker | OpenFOAM Programming & Development | 3 | September 7, 2022 04:09 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
udf and uds for transport equation | m003020002 | Fluent UDF and Scheme Programming | 1 | September 15, 2015 02:02 |
One transport equation, two user-defined scalar, can it be solved? | sharonyue | FLUENT | 0 | April 1, 2014 23:18 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |