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

Problem with multicomponentmixture initialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2014, 10:43
Default Problem with multicomponentmixture initialization
  #1
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Dear forumers,

I am currently trying to simulate the injection of different gases into air.
So far, I had no problem simulating the injection of gas1 at inlet1. No problem either when I try to inject gas2 at inlet2 of my problem.

I can also inject 50% of each gas at both inlets. So inlet1 is injecting 50% of gas1 and 50% of gas2. The same at inlet 2.

It is actually working fine for any proportion of gas1/gas2 EXCEPT 100% / 0% for one of the two gases. So I can't inject 100% gas1 at inlet1 and at the same time 100% of gas2 at inlet2.
For all these cases, I don't inject any air at the inlets (so fixedValue BC at 0.0 for specie air).

When I say that it does not work, it is that I get an fpe when the code is building the thermoPhysicalModel.
Even more strange, the behaviour is changing depending on the order of declaration of species in the thermophysicalDict file!

Here are some informations on the settings:
- thermophysicalProperties:
Code:
thermoType
{
    type            hePsiThermo;
    mixture         multiComponentMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

species
(
    air
    gas1
    gas2
);
 
inertSpecie air;

air
{
    specie
    {
        nMoles      1;
        molWeight   28.97;
    }
    thermodynamics
    {
        Cp          1005;
        Hf          0;
    }
    transport
    {
        mu          1.78e-05;
        Pr          0.7;
    }
}

gas1
{
    specie
    {
        nMoles      1;
        molWeight   29.56;
    }
    thermodynamics
    {
        Cp          2445;
        Hf          0;
    }
    transport
    {
        mu          9e-05;
        Pr          0.7;
    }
}

gas2
{
    specie
    {
        nMoles      1;
        molWeight   16.55;
    }
    thermodynamics
    {
        Cp          2894.53;
        Hf          0;
    }
    transport
    {
        mu          9e-05;
        Pr          0.7;
    }
}
- gas1
Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0.0;

boundaryField
{
    "inlet1"
    {
        type            fixedValue;
        value           uniform 1.0;
    }
    "inlet2"
    {
        type            fixedValue;
        value           uniform 0.0;
    }
....
}
- gas2
Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0.0;

boundaryField
{
    "inlet1"
    {
        type            fixedValue;
        value           uniform 0.0;
    }
    "inlet2"
    {
        type            fixedValue;
        value           uniform 1.0;
    }
....
}
- air
Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 1.0;

boundaryField
{
    "inlet1"
    {
        type            fixedValue;
        value           uniform 0.0;
    }

    "inlet2"
    {
        type            fixedValue;
        value           uniform 0.0;
    }
....
}
- Crash
Code:
Reading thermophysical properties

Selecting thermodynamics package 
{
    type            hePsiThermo;
    mixture         multiComponentMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

#0  Foam::error::printStack(Foam::Ostream&) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigFpe::sigHandler(int) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > >::patchFaceMixture(int, int) const in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#4  Foam::heThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > > >::he(Foam::Field<double> const&, Foam::Field<double> const&, int) const in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#5  Foam::heThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > > >::init() in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#6  Foam::heThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > > >::heThermo(Foam::fvMesh const&, Foam::word const&) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#7  Foam::psiReactionThermo::addfvMeshConstructorToTable<Foam::hePsiThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > > > >::New(Foam::fvMesh const&, Foam::word const&) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#8  Foam::autoPtr<Foam::psiReactionThermo> Foam::basicThermo::New<Foam::psiReactionThermo>(Foam::fvMesh const&, Foam::word const&) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
#9  Foam::psiReactionThermo::New(Foam::fvMesh const&, Foam::word const&) in "/CFDBB/vincent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so"
I guess that the problem is really coming from some 0 value at one of the boundary conditions but I don't see any reason why.
Does someone has an idea on what's going on?
vinz is offline   Reply With Quote

Old   January 6, 2015, 09:45
Default
  #2
New Member
 
Yu-sen Niu
Join Date: Nov 2014
Posts: 16
Rep Power: 12
shenzhou1987 is on a distinguished road
Hi, I have meet the similar problem. Can U email me your case, so that I can learn how to deal with boundary condition and initial conditon. In addition, my case includes 4 cellZones, and I want to patch different values for different cellZone as initial condition. Can U tell me how to do this?
Thank U very much!
shenzhou1987 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
initialization problem in fluent morteza08 Main CFD Forum 0 January 17, 2011 13:04
Initialization problem when using Axisymmetry BC Eduardo FLUENT 0 August 4, 2008 10:23
coal combustion initialization problem Chetan Prahsant CFX 1 May 1, 2007 06:41
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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