|
[Sponsors] |
June 11, 2018, 23:01 |
Setting Mass source in interFoam
|
#1 |
New Member
Join Date: Jun 2016
Posts: 4
Rep Power: 11 |
Hello all,
I am using interFoam to simulate falling liquid droplets onto a solid surface. I am wondering if there is a possibility to add a mass source at some times, in the form of injected spherical liquid droplets, with specific diameter and velocity at a specific location. I have tried with the attached fvOptions. It worked for the momentum but not for alpha. I am using of5 and of1712. I got the following warning while running the case From function virtual void Foam::fvption::checkApplied() const in file cfdTools/general/fvOptions/fvOption.C at line 125 Source scalarSource defined for field alpha1 but never used Any hint is highly appreciated. |
|
October 24, 2018, 10:14 |
|
#2 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
fvOptions if not defined in the alpha equation. Hence you are unable to use it.
|
|
May 28, 2019, 13:38 |
define fvOptions in interFoam
|
#3 |
New Member
Ludo Masci
Join Date: Oct 2018
Posts: 8
Rep Power: 8 |
||
May 28, 2019, 14:03 |
|
#4 | |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Quote:
Well, you can't. fvOptions has not been initialized at all in the alphaEquation. This means that, even if you define a fvOptionsDict for volScalarField alpha, it will not work. You have two options in my opinion (I might be wrong, since my knowledge about this kind of source term is rather limited) - 1. Program a source term into the solver for the alpha equation or 2. Add the source term to the MULES solver. Note: I don't think either of these will be trivial tbh. |
||
May 29, 2019, 04:02 |
|
#5 |
New Member
Ludo Masci
Join Date: Oct 2018
Posts: 8
Rep Power: 8 |
Thanks for the reply. I am indeed trying to program a source term into the solver. Not an easy task.
|
|
Tags |
fvoptions, injection, interfoam, mass source |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
Mass source, Momentum source theory. | diffo | FLUENT | 4 | August 21, 2009 11:26 |
Problem with Mass source, Momentum source theory | diffo | Fluent UDF and Scheme Programming | 0 | August 20, 2009 07:10 |