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

chtMultiFoam sigFpe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2009, 06:03
Default chtMultiFoam sigFpe
  #1
New Member
 
Join Date: Sep 2009
Posts: 7
Rep Power: 16
HendrikR is on a distinguished road
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 is offline   Reply With Quote

Old   October 9, 2009, 07:17
Default
  #2
New Member
 
Join Date: Sep 2009
Posts: 7
Rep Power: 16
HendrikR is on a distinguished road
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
HendrikR is offline   Reply With Quote

Old   October 9, 2009, 11:41
Default
  #3
Member
 
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 16
LarsPT is on a distinguished road
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
LarsPT is offline   Reply With Quote

Old   October 9, 2009, 12:15
Default
  #4
New Member
 
Join Date: Apr 2009
Posts: 10
Rep Power: 17
Pierpaolo is on a distinguished road
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
Pierpaolo is offline   Reply With Quote

Old   November 30, 2009, 05:51
Default
  #5
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
andersking is on a distinguished road
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
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   April 2, 2010, 02:59
Default chtMultiRegionFoam tut not working
  #6
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
where to change the following lines..


Quote:
Originally Posted by andersking View Post
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 is offline   Reply With Quote

Old   April 2, 2010, 10:40
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Javed,

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

Best regards,
Bruno
wyldckat 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
dieselEngineFoam OpenFOAM-1.6 SigFPE error arun OpenFOAM Running, Solving & CFD 0 September 24, 2009 04:32
Pow in lib64tlslibmso6 SigFpe when running coodles with SpalartAllmaras lillberg OpenFOAM Bugs 4 December 7, 2007 08:17
meshing error in Gambit: SIGFPE Ralf Schmidt FLUENT 0 November 2, 2005 15:28


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