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

Inlet-BC for epsilon in twoPhaseEulerFoam with k-epsilon-model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hester

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2015, 13:24
Default Inlet-BC for epsilon in twoPhaseEulerFoam with k-epsilon-model
  #1
Member
 
Join Date: May 2014
Location: Germany
Posts: 32
Rep Power: 12
hester is on a distinguished road
Hello,

I'm simulating a bubble column after Denn [1]. My simulation setup is similar to this:
http://http://www.cfd-online.com/For...le-column.html.
I'm using OpenFoam 2.3.0.

I want to use turbulentMixingLengthDissipationRateInlet as the inlet BC instead of fixedValue for epsilon. It works fine for epsilon.air but for epsilon.water it gives me the following error message when the solver tries to solve for epsilon.water:

Quote:
--> FOAM FATAL ERROR:

request for volScalarField k from objectRegistry region0 failed
available objects of type volScalarField are

47
(
div(phi.water)
k.water
K.air_0
e.air_0
yWall
kEpsilon:G
T.air
thermo:psi.water
K.air_0_0
dragModelCoeff
dpdt
thermo:psi.air
thermo:rho.water_0
p
K.air
p_0
thermo:mu.water
e.air
p_0_0
thermo:mu.air
dgdt
nut.water
thermo:alpha.air
epsilon.water
alpha.air_0
alpha.water_0
thermo:alpha.water
e.water_0
alpha.water_0_0
alpha.water
rho
T.water
e.air_0_0
thermo:rho.air_0_0
e.water_0_0
thermo:rho.air
thermo:rho.water
K.water
alpha.air
K.water_0
thermo:rho.water_0_0
alpha.air_0_0
thermo:rho.air_0
e.water
rAU.air
rAU.water
K.water_0_0
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ??:?
#3 Foam::turbulentMixingLengthDissipationRateInletFvP atchScalarField::updateCoeffs() at ??:?
#4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoef fs() at ??:?
#5 Foam::RASModels::kEpsilon<Foam::PhaseIncompressibl eTurbulenceModel<Foam::phaseModel> >::correct() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
I'm not sure what this error message is saying. When I use fixedValue instead of turbulentMixingLengthDissipationRateInlet I get no error message and the simulation works fine. k at the inlet is calculated using turbulentIntensityKineticEnergyInlet for both phases.

Am I even supposed to used turbulentMixingLengthDissipationRateInlet for both phases? I used k-epsilon-model only for my continuous phase (water). My bubbles (air) are modeled as laminar. Might that be the problem?


hester


[1] N. G. Deen, T. Solberg, and B. H. Hjertager. Large eddy simulation of the gas-liquid flow in a square cross-sectioned bubble column. Chemical Engineering Science, 56:6341–6349, 2001.
hester is offline   Reply With Quote

Old   February 5, 2015, 05:24
Default Update
  #2
Member
 
Join Date: May 2014
Location: Germany
Posts: 32
Rep Power: 12
hester is on a distinguished road
I figured it out myself. I just needed to specify the k field.
Code:
        type          turbulentMixingLengthDissipationRateInlet;
        mixingLength  1e-3;
        k             k.water;
        value         uniform 0;
Normally it is not required to specify k. The default value is just k but I needed k.water instead.
cutter likes this.
hester is offline   Reply With Quote

Old   February 26, 2015, 05:54
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
This behaviour is a consequence of the naming scheme. The BC expects a field k to be present. However, in the two-phase case, you have k.air and k.water but no k. Hence, OpenFOAM issued the error message you posted in your first post.
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
k-epsilon model, twophaseeulerfoam


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
how to model inlet which is also an outlet Elyse FLUENT 0 May 9, 2013 06:42
Pressure inlet of a multiphase model athonyburk FLUENT 5 May 3, 2013 23:51
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Help regarding K Epsilon model go2saqi Main CFD Forum 2 January 23, 2012 12:59
inlet boundary condition in k-e model Abhijit Tilak Main CFD Forum 1 June 2, 2000 10:42


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