CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   chtMultiFoam sigFpe (http://www.cfd-online.com/Forums/openfoam/68913-chtmultifoam-sigfpe.html)

HendrikR October 6, 2009 06:03

chtMultiFoam sigFpe
 
Hi,

I tried to run the Tutorial multiRegionHeater for the solver chtMultiRegionFoam
If I try ./Allrun, there is the error:
./Allrun: 19: Syntax error: Bad fd number

and running the case with chtMultiRegionFoam I get:
Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.6.x                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 1.6.x-ba8d951a9bfa
Exec  : chtMultiRegionFoam
Date  : Oct 06 2009
Time  : 12:00:03
Host  : ***
PID    : 9696
Case  : ***/run/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create fluid mesh for region bottomAir for time = 0.001

Create fluid mesh for region topAir for time = 0.001

Create solid mesh for region heater for time = 0.001

Create solid mesh for region leftSolid for time = 0.001

Create solid mesh for region rightSolid for time = 0.001

*** Reading fluid mesh thermophysical properties for region bottomAir

    Adding to thermoFluid

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
#0  Foam::error::printStack(Foam::Ostream&) in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#1  Foam::sigFpe::sigFpeHandler(int) in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#2  Uninterpreted:
#3  Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::calculate() in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#4  Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::hPsiThermo(Foam::fvMesh const&) in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#5  Foam::basicPsiThermo::addfvMeshConstructorToTable<Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > > >::New(Foam::fvMesh const&) in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#6  Foam::basicPsiThermo::New(Foam::fvMesh const&) in "***/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#7  main in "***/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/chtMultiRegionFoam"
#8  __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#9  _start at /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Floating point exception

Same error with 1.6 and 1.6.x
Have someone an idea whats goning on?

Thanks a lot,
Hendrik

HendrikR October 9, 2009 07:17

I think it's a bad style to distribute a version and the tutorials aren't working.
No person who could help me and fix the problem?

Hendrik

LarsPT October 9, 2009 11:41

Hi Hendrik,

I had the same problem with my own CHT case. Usually SIGFPE indicates a division by zero. Check the boundary and initial conditions for values of zero. Often the k-epsilon values are set to 0 because of laminar flow. Actually they might be set to any value if the turbulence model is set to laminar.

Good luck!

Best Regards
Lars

Pierpaolo October 9, 2009 12:15

The script Allrun takes care of doing several things before actually running the solver. If you have a look at it you will see that apart from deleting some old files and sourcing the RunFunctions tool file, needed for running the runApplication and runParallel scripts, it first runs the blockMesh utility.
Have you tried to run each of the commands listed in the Allrun script and see what happens?
It looks to me that there is something wrong with the Allrun script as you report an error at line 19. How does that line read in your Allrun file?
Hope this help

andersking November 30, 2009 06:51

Old post, but anyway - the >& is a bashism (ie. bash shell specific), on ubuntu (which is what I assume you are using from the error) the default shell is dash, which doesn't like >&. The easiest way to fix this is by changing the first line from

#!/bin/sh

to

#!/bin/bash

then the tutorial should run.

Cheers
Andrew

Javed April 2, 2010 02:59

chtMultiRegionFoam tut not working
 
where to change the following lines..


Quote:

Originally Posted by andersking (Post 238161)
Old post, but anyway - the >& is a bashism (ie. bash shell specific), on ubuntu (which is what I assume you are using from the error) the default shell is dash, which doesn't like >&. The easiest way to fix this is by changing the first line from

#!/bin/sh

to

#!/bin/bash

then the tutorial should run.

Cheers
Andrew


wyldckat April 2, 2010 10:40

Greetings Javed,

It's the first line of the file Allrun, which is inside the tutorial case.

Best regards,
Bruno


All times are GMT -4. The time now is 23:17.