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

tutorial heatduct with air instead of water

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2021, 04:56
Default tutorial heatduct with air instead of water
  #1
New Member
 
Join Date: Jan 2021
Posts: 4
Rep Power: 5
_Revolution_ is on a distinguished road
Hello together,

I would like to change the fluid from water to air in the "heatduct" tutorial from OpenFoam V9, however the simulation breaks when I make the following changes to the thermophysicalProperties:

Water:
Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState rhoConst;
    specie          specie;
    energy          sensibleEnthalpy;
}

mixture
{
    // Water

    specie
    {
        molWeight       18;
    }
    equationOfState
    {
        rho             1000;
    }
    thermodynamics
    {
        Cp              4181;
        Hf              0;
    }
    transport
    {
        mu              959e-6;
        Pr              6.62;
    }
}
Air:
Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleEnthalpy;
}

mixture
{
    specie
    {
        nMoles      1;
        molWeight   28.9;       // [g/mol]
    }
    thermodynamics
    {
        Cp          1005;       // [J/kg/K]
        Hf          0;
    }
    transport
    {
        mu          1.8e-05;    // [kg/m/s]
        Pr          0.7;
    }
 }
Do any other changes need to be made here for the tutorial to work with the fluid air?



I get the following error message if I change the thermalphysicalProperties:


Code:
[3] #0  Foam::error::printStack(Foam::Ostream&)[0] #0  Foam::error::printStack(Foam::Ostream&)[1] #0  Foam::error::printStack(Foam::Ostream&)[2] #0  Foam::error::printStack(Foam::Ostream&) at ??:?
 at ??:?
 at ??:?
 at ??:?
[0] #1  Foam::sigFpe::sigHandler(int)[2] #1  [3] #Foam::sigFpe::sigHandler(int)1  Foam::sigFpe::sigHandler(int)[1] #1  Foam::sigFpe::sigHandler(int) at ??:?
[2] #2  ? at ??:?
 at ??:?
[3] #2[0] #2    ?? at ??:?
[1] #2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
 in "/lib/x86_64-linux-gnu/libc.so.6"
 in "/lib/x86_64-linux-gnu/libc.so.6"
 in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&)[3] #3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&)[0] #3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&)[1] #3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
 at ??:?
 at ??:?
 at ??:?
[1] #4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&)[2] #4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&)[0] #4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&)[3] #4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
[2] #5   at ??:?
[1] #5   at ??:?
[0] #5   at ??:?
[3] #5  ???? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[1] #6   in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[2] #6   in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[3] #6   in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[0] #6  ???? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[2] #7  __libc_start_main in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[3] #7  __libc_start_main in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[0] #7   in "/opt/openfoam9/p__libc_start_mainlatforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[1] #7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #8   in "/lib/x86_64-linux-gnu/libc.so.6"
[3] #8   in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #8   in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #8  ???? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[7560:11981] *** Process received signal ***
[7560:11981] Signal: Floating point exception (8)
[7560:11981] Signal code:  (-6)
[7560:11981] Failing at address: 0x3e800002ecd
[7560:11981] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7fc307c2a210]
[7560:11981] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fc307c2a18b]
[7560:11981] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7fc307c2a210]
[7560:11981] [ 3]  in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[7560:11982] *** Process received signal ***
[7560:11982] Signal: Floating point exception (8)
[7560:11982] Signal code:  (-6)
[7560:11982] Failing at address: 0x3e800002ece
[7560:11982] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f74cdb96210]
[7560:11982] [ 1]  in "/opt/openfoam9/platfor/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f74cdb9618b]
[7560:11982] [ 2] ms/linux64GccDPInt32Opt/bin/chtMultiRegi/lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f74cdb96210]
[7560:11982] [ 3] onFoam"
[7560:11979] *** Process received signal ***
[7560:11979] Signal: Floating point exception (8)
[7560:11979] Signal code:  (-6)
[7560:11979] Failing at address: 0x3e800002ecb
[7560:11979] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f2854653210]
[7560:11979] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f285465318b]
[7560:11979] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f2854653210]
[7560:11979] [ 3] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x5b)[0x7fc308826dab]
[7560:11981] [ 4] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x5b)[0x7f74ce792dab]
[7560:11982] [ 4] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4FoamdvERKNS_5UListIdEES3_+0x59)[0x7fc3088288b9]
[7560:11981] [ 5] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x5b)[0x7f285524fdab]
[7560:11979] [ 4] chtMultiRegionFoam(+0x4c834)[0x560aa2885834]
[7560:11981] [ 6] chtMultiRegionFoam(+0x41e96)[0x560aa287ae96]
[7560:11981] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fc307c0b0b3]
[7560:11981] [ 8] chtMultiRegionFoam(+0x4b96e)[0x560aa288496e]
[7560:11981] *** End of error message ***
 in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
[7560:11980] *** Process received signal ***
[7560:11980] Signal: Floating point exception (8)
[7560:11980] Signal code:  (-6)
[7560:11980] Failing at address: 0x3e800002ecc
[7560:11980] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7ff6b2191210]
[7560:11980] [ 1] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4FoamdvERKNS_5UListIdEES3_+0x59)[0x7f74ce7948b9]
[7560:11982] [ 5] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7ff6b219118b]
[7560:11980] [ 2] chtMultiRegionFoam(+0x4c834)[0x560a69a27834]
[7560:11982] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7ff6b2191210]
[7560:11980] [ 3] chtMultiRegionFoam(+0x41e96)[0x560a69a1ce96]
[7560:11982] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f74cdb770b3]
[7560:11982] [ 8] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4FoamdvERKNS_5UListIdEES3_+0x59)[0x7f28552518b9]
[7560:11979] [ 5] chtMultiRegionFoam(+0x4b96e)[0x560a69a2696e]
[7560:11982] *** End of error message ***
chtMultiRegionFoam(+0x4c834)[0x556817f09834]
[7560:11979] [ 6] chtMultiRegionFoam(+0x41e96)[0x556817efee96]
[7560:11979] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f28546340b3]
[7560:11979] [ 8] chtMultiRegionFoam(+0x4b96e)[0x556817f0896e]
[7560:11979] *** End of error message ***
/opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x5b)[0x7ff6b2d8ddab]
[7560:11980] [ 4] /opt/openfoam9/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4FoamdvERKNS_5UListIdEES3_+0x59)[0x7ff6b2d8f8b9]
[7560:11980] [ 5] chtMultiRegionFoam(+0x4c834)[0x5590e5d31834]
[7560:11980] [ 6] chtMultiRegionFoam(+0x41e96)[0x5590e5d26e96]
[7560:11980] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7ff6b21720b3]
[7560:11980] [ 8] chtMultiRegionFoam(+0x4b96e)[0x5590e5d3096e]
[7560:11980] *** End of error message ***
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 0 on node 7560 exited on signal 8 (Floating point exception).
--------------------------------------------------------------------------
Greetings
_Revolution_
_Revolution_ is offline   Reply With Quote

Old   December 25, 2021, 09:10
Default
  #2
Member
 
Al Csc
Join Date: Jul 2018
Posts: 30
Rep Power: 7
al.csc is on a distinguished road
You need to change from fluid to gas.
constant/regionProperties: fluid (fluid) -> fluid (gas)
and then all the other keywords.
al.csc 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
Water diffusion into air MGabr CFX 19 September 3, 2023 19:06
compressibleInterFoam case – a flat wall air cavity filling up with water Zeppo OpenFOAM Running, Solving & CFD 0 October 3, 2015 10:01
3D multiphase micro model: mixing effect of air and water at the T junction ehsanfareed FLUENT 2 March 22, 2015 22:29
VOF-compression of air with rising water yavuz FLUENT 0 November 26, 2005 09:00
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 07:10


All times are GMT -4. The time now is 14:29.