CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Setting Mass source in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2018, 23:01
Default Setting Mass source in interFoam
  #1
New Member
 
Join Date: Jun 2016
Posts: 4
Rep Power: 11
AhmadZ is on a distinguished road
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.
Attached Files
File Type: gz fvOptions.gz (537 Bytes, 34 views)
AhmadZ is offline   Reply With Quote

Old   October 24, 2018, 10:14
Default
  #2
Member
 
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11
ashish.vinayak is on a distinguished road
fvOptions if not defined in the alpha equation. Hence you are unable to use it.
ashish.vinayak is offline   Reply With Quote

Old   May 28, 2019, 13:38
Cool define fvOptions in interFoam
  #3
New Member
 
Ludo Masci
Join Date: Oct 2018
Posts: 8
Rep Power: 8
lumasci is on a distinguished road
Quote:
Originally Posted by ashish.vinayak View Post
fvOptions if not defined in the alpha equation. Hence you are unable to use it.

OK, then can you tell how to define fvOptions in the alpha equation?
lumasci is offline   Reply With Quote

Old   May 28, 2019, 14:03
Default
  #4
Member
 
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11
ashish.vinayak is on a distinguished road
Quote:
Originally Posted by lumasci View Post
OK, then can you tell how to define fvOptions in the alpha equation?
Hi Lumasci,

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.
ashish.vinayak is offline   Reply With Quote

Old   May 29, 2019, 04:02
Default
  #5
New Member
 
Ludo Masci
Join Date: Oct 2018
Posts: 8
Rep Power: 8
lumasci is on a distinguished road
Thanks for the reply. I am indeed trying to program a source term into the solver. Not an easy task.
lumasci is offline   Reply With Quote

Reply

Tags
fvoptions, injection, interfoam, mass source


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


All times are GMT -4. The time now is 16:46.