CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   twoPhaseEulerFoam + fvOptions limitTemperature (https://www.cfd-online.com/Forums/openfoam-solving/171178-twophaseeulerfoam-fvoptions-limittemperature.html)

hanness May 4, 2016 03:18

twoPhaseEulerFoam + fvOptions limitTemperature
 
Hi all,

is there a way to use limitTemperature with twoPhaseEulerFoam in OF301?
my constant/fvoptions looks as following:
Code:

valueLimitation
{
        type            limitTemperature;
        active          true;


                limitTemperatureCoeffs
                {
                        selectionMode  all;
                        Tmin    50;
                        Tmax    150;
                }

}

but the simulation won't start with the following error report:
Code:

Selecting finite volume options model type limitTemperature
    Source: valueLimitation
    - selecting all cells
    - selected 46875 cell(s) with volume 0.0225


--> FOAM FATAL ERROR:

    request for basicThermo thermophysicalProperties from objectRegistry region0 failed
    available objects of type basicThermo are

2
(
thermophysicalProperties.air
thermophysicalProperties.water
)


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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::basicThermo const& Foam::objectRegistry::lookupObject<Foam::basicThermo>(Foam::word const&) const at ??:?
#3  Foam::fv::limitTemperature::limitTemperature(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#4  Foam::fv::option::adddictionaryConstructorToTable<Foam::fv::limitTemperature>::New(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#5  Foam::fv::option::New(Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#6  Foam::fv::optionList::reset(Foam::dictionary const&) at ??:?
#7  Foam::fv::optionList::optionList(Foam::fvMesh const&, Foam::dictionary const&) at ??:?
#8  Foam::fv::IOoptionList::IOoptionList(Foam::fvMesh const&) at ??:?
#9  ? at ??:?
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? at ??:?
Aborted (core dumped)

I can't find a way to restrict the fvOptions file to just one phase nor can I find a hint in the source code, that it is actually usable with multiphase solvers. Does anybody have any idea?

Thanks a lot
Hannes

nero235 July 1, 2016 10:34

Quote:

Originally Posted by hanness (Post 598574)
Hi all,

is there a way to use limitTemperature with twoPhaseEulerFoam in OF301?
my constant/fvoptions looks as following:
Code:

valueLimitation
{
        type            limitTemperature;
        active          true;


                limitTemperatureCoeffs
                {
                        selectionMode  all;
                        Tmin    50;
                        Tmax    150;
                }

}

but the simulation won't start with the following error report:
Code:

Selecting finite volume options model type limitTemperature
    Source: valueLimitation
    - selecting all cells
    - selected 46875 cell(s) with volume 0.0225


--> FOAM FATAL ERROR:

    request for basicThermo thermophysicalProperties from objectRegistry region0 failed
    available objects of type basicThermo are

2
(
thermophysicalProperties.air
thermophysicalProperties.water
)


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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::basicThermo const& Foam::objectRegistry::lookupObject<Foam::basicThermo>(Foam::word const&) const at ??:?
#3  Foam::fv::limitTemperature::limitTemperature(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#4  Foam::fv::option::adddictionaryConstructorToTable<Foam::fv::limitTemperature>::New(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#5  Foam::fv::option::New(Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#6  Foam::fv::optionList::reset(Foam::dictionary const&) at ??:?
#7  Foam::fv::optionList::optionList(Foam::fvMesh const&, Foam::dictionary const&) at ??:?
#8  Foam::fv::IOoptionList::IOoptionList(Foam::fvMesh const&) at ??:?
#9  ? at ??:?
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? at ??:?
Aborted (core dumped)

I can't find a way to restrict the fvOptions file to just one phase nor can I find a hint in the source code, that it is actually usable with multiphase solvers. Does anybody have any idea?

Thanks a lot
Hannes

Hey there,

I have a similar problem running twoPhaseEulerFoam coupled with a source in the fvOptions file. Have you found a solution to the problem?

Regards, Sebastian

katete July 26, 2016 08:44

Hey,

for OF 2.4.0 this definition worked for me:
Code:

temperature_constraints
{
    type            temperatureLimitsConstraint;
    selectionMode  all;
    active          true;
   
        temperatureLimitsConstraintCoeffs
        {
            Tmin    299;
            Tmax    300;
        }
       
}

So maybe you have to define the selection mode as well: selectionMode all;

Hope this helps.
Best regards
Katharina

kishpishar August 18, 2016 02:53

Hi Sebastian,

Have you found out a way to use the limitTemperature in twoPhaseEulerFoam in OF-3.0.1? I have the same problem.

As Katharina said, the equivalent temperatureLimitsConstraint works perfectly for me in OF-2.3.1

Thanks
Kumar

FlyFox February 27, 2018 05:01

Quote:

Originally Posted by hanness (Post 598574)
Hi all,

is there a way to use limitTemperature with twoPhaseEulerFoam in OF301?
my constant/fvoptions looks as following:
Code:

valueLimitation
{
        type            limitTemperature;
        active          true;


                limitTemperatureCoeffs
                {
                        selectionMode  all;
                        Tmin    50;
                        Tmax    150;
                }

}

but the simulation won't start with the following error report:
Code:

Selecting finite volume options model type limitTemperature
    Source: valueLimitation
    - selecting all cells
    - selected 46875 cell(s) with volume 0.0225


--> FOAM FATAL ERROR:

    request for basicThermo thermophysicalProperties from objectRegistry region0 failed
    available objects of type basicThermo are

2
(
thermophysicalProperties.air
thermophysicalProperties.water
)


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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::basicThermo const& Foam::objectRegistry::lookupObject<Foam::basicThermo>(Foam::word const&) const at ??:?
#3  Foam::fv::limitTemperature::limitTemperature(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#4  Foam::fv::option::adddictionaryConstructorToTable<Foam::fv::limitTemperature>::New(Foam::word const&, Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#5  Foam::fv::option::New(Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#6  Foam::fv::optionList::reset(Foam::dictionary const&) at ??:?
#7  Foam::fv::optionList::optionList(Foam::fvMesh const&, Foam::dictionary const&) at ??:?
#8  Foam::fv::IOoptionList::IOoptionList(Foam::fvMesh const&) at ??:?
#9  ? at ??:?
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? at ??:?
Aborted (core dumped)

I can't find a way to restrict the fvOptions file to just one phase nor can I find a hint in the source code, that it is actually usable with multiphase solvers. Does anybody have any idea?

Thanks a lot
Hannes

Hello,
Did you finally solve this issue?

Robin.Kamenicky July 19, 2018 08:53

Hi Foamers,

Despite the old thread, I would like to mention an update.

Thanks to OF developers there is a new option in the new version OpenFAOM-6 to define phase for which the limiTemperature is applied. This solution seems to work well.

Code:

limitT
    {
        type            limitTemperature;
        active          yes;
 
        selectionMode  all;
        min            200;
        max            500;
        phase          gas; // optional
    }

I have tested that at reactingTwoPhaseEulerFoam.

Cheers,
Robin


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