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

MaxwellStefanFourier in multiphaseEulerFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2021, 08:08
Default MaxwellStefanFourier in multiphaseEulerFoam?
  #1
Member
 
Oliver Borm
Join Date: Mar 2009
Posts: 60
Rep Power: 17
deepblue17 is on a distinguished road
Hi,
I try to setup a simple case using the new MaxwellStefanFourier ThermophysicalTransportModel in multiphaseEulerFoam.


My first step in using the MaxwellStefanFourier model was to use chtMultiRegionFoam. Therefore I added in the thermophysicalTransport file the binary and thermal diffusion coefficients. That worked flawlessly in
chtMultiRegionFoam, and should do also the job in reactingFoam.

My next step was to use the MaxwellStefanFourier model with multiphaseEulerFoam and the bubbleColumnEvaporatingReacting tutorial. But multiphaseEulerFoam doesn't recognise it out of the box. So I figured out, that the models are included in
Code:
fluidReactionThermophysicalTransportModels.C
but are missing in:

Code:
phaseFluidReactionThermophysicalTransportModels.C


So I added the following lines of code to the latter and recompiled the libso:
Code:
#include "FickianFourier.H"
makeLaminarThermophysicalTransportModel(FickianFourier);

#include "MaxwellStefanFourier.H"
makeLaminarThermophysicalTransportModel(MaxwellStefanFourier);
Then at least multiphaseEulerFoam was recognising the MaxwellStefanFourier model, but kicked me out soon after, when it tried to solve for the first component in the gas phase with the following error:

Code:
 --> FOAM FATAL ERROR:  
CO.gas not found in table.  Valid entries:  
5 
( 
CO2 
AIR 
H2 
CO 
H2O 
) 


    From function const T& Foam::HashTable<T, Key, Hash>::operator[](const Key&) const [with T = int; Key 
= Foam::word; Hash = Foam::string::hash] 
    in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/OpenFOAM/lnInclude/HashTableI.H at line 126.
I understand that CO.gas is not a species, but contains only the CO field of the gas phase. So contrary to single phase reactions, the species are stored in CO.gas and CO.liquid files, if both are multicomponent fluids as e.g. multiComponentPhaseModel or reactingPhaseModel.

Any idea how to get the MaxwellStefanFourier also running in multiphases?
deepblue17 is offline   Reply With Quote

Old   September 20, 2021, 10:45
Default
  #2
New Member
 
Mathias Poulsen
Join Date: Feb 2018
Location: Denmark
Posts: 9
Rep Power: 8
SvenBent is on a distinguished road
Hi.

I have just had the same issue with the FickianFourier model and found the following workaround.

The problem is in the lookup of the species as you point out, and it can be traced to the composition.
Code:
composition.index(Yi)
here Yi has the phase group added to its name e.g. CO2.gas and the composition only has the specie name CO2. So basically all index calls has to be replaced.

To get the species name without the group the and then the index of the specie in the specieTable find the label as :
Code:
const label idx = composition.species()[Foam::IOobject::member(Yi.name())];
Before compiling its important to add the OpenFoam libaray to the Make/options file to be able to use IOobject.
Code:
LIB_LIBS = \
     -lOpenFOAM \
Best Regard
Mathias
SvenBent is offline   Reply With Quote

Old   October 14, 2021, 06:32
Default
  #3
New Member
 
Berk Kiymaz
Join Date: Aug 2019
Posts: 1
Rep Power: 0
bertigo is on a distinguished road
Greetings,

I would like to ask you something, since I could not found any information on user guide. Is it possible to use the multi-component transport tool with functions, not with scalar values? If there is any examples of that could you point it for me?

Thank you
bertigo is offline   Reply With Quote

Reply


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
volume fraction problem in multiphaseEulerFoam vishalgarg474 OpenFOAM Running, Solving & CFD 2 September 15, 2021 17:19
multiphaseEulerFoam: How to specify the continuous/dispersed phase nov.t OpenFOAM Running, Solving & CFD 20 March 19, 2021 07:58
multiphaseEulerFoam + kineticTheoryProperties vasava OpenFOAM Running, Solving & CFD 5 May 20, 2020 11:35
multiphaseInterFoam vs multiphaseEulerFoam rahulksoni OpenFOAM 0 August 11, 2017 03:14
Adding Boussinesq Approximation to multiphaseEulerFoam? dschmidt OpenFOAM Programming & Development 1 January 16, 2017 17:40


All times are GMT -4. The time now is 06:34.