CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
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
  #1
New Member
 
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10
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:
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);
    
}
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, 121 views)
HectorLee is offline   Reply With Quote

Old   July 27, 2018, 12:46
Default
  #2
Member
 
Niu
Join Date: Apr 2014
Posts: 55
Rep Power: 12
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
Default
  #3
New Member
 
Marius Bünker
Join Date: Oct 2017
Posts: 13
Rep Power: 8
Blumenkind is on a distinguished road
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
rasool_soofi and randolph like this.

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

Reply

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


All times are GMT -4. The time now is 02:50.