|
[Sponsors] |
August 5, 2021, 08:08 |
MaxwellStefanFourier in multiphaseEulerFoam?
|
#1 |
Member
Oliver Borm
Join Date: Mar 2009
Posts: 60
Rep Power: 17 |
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 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); 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. Any idea how to get the MaxwellStefanFourier also running in multiphases? |
|
September 20, 2021, 10:45 |
|
#2 |
New Member
Mathias Poulsen
Join Date: Feb 2018
Location: Denmark
Posts: 9
Rep Power: 8 |
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) 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())]; Code:
LIB_LIBS = \ -lOpenFOAM \ Mathias |
|
October 14, 2021, 06:32 |
|
#3 |
New Member
Berk Kiymaz
Join Date: Aug 2019
Posts: 1
Rep Power: 0 |
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 |
|
|
|
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 |