CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

interFoam with transport: add a transport equation to only one phase

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By Blumenkind

LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2017, 05:35
Default interFoam with transport: add a transport equation to only one phase
New Member
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 7
HectorLee is on a distinguished road
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:
Info<< "solve CEqn" << endl;
    surfaceScalarField Cf = fvc::interpolate(C);
    fvScalarMatrix CEqn
      + fvm::div(phi, C)
      - fvm::laplacian(DT, C)
      == -fvc::laplacian(DT*Cf, alpha1)
However, the solute still propagates through the interface somehow during the simulation as the attached figure shows.
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!
Attached Images
File Type: jpg TransportInterface.jpg (20.5 KB, 69 views)
HectorLee is offline   Reply With Quote

Old   July 27, 2018, 12:46
Join Date: Apr 2014
Posts: 55
Rep Power: 9
Z.Q. Niu is on a distinguished road
Hi Li,
Have you solved this problem? Thanks!
Z.Q. Niu is offline   Reply With Quote

Old   March 6, 2019, 08:42
New Member
Marius BŁnker
Join Date: Oct 2017
Posts: 13
Rep Power: 5
Blumenkind is on a distinguished road
This problem has been solved.

It is implemented in OpenFOAM v1612
(see at the bottom of the page)

and in OpenFOAM-dev (for three weeks now)
rasool_soofi and randolph like this.

Last edited by Blumenkind; March 8, 2019 at 04:45.
Blumenkind is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 2 September 3, 2014 21:24
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

All times are GMT -4. The time now is 21:25.