|
[Sponsors] |
October 6, 2009, 07:03 |
chtMultiFoam sigFpe
|
#1 |
New Member
Join Date: Sep 2009
Posts: 7
Rep Power: 17 |
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 Have someone an idea whats goning on? Thanks a lot, Hendrik |
|
October 9, 2009, 08:17 |
|
#2 |
New Member
Join Date: Sep 2009
Posts: 7
Rep Power: 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 |
|
October 9, 2009, 12:41 |
|
#3 |
Member
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 17 |
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 |
|
October 9, 2009, 13:15 |
|
#4 |
New Member
Join Date: Apr 2009
Posts: 10
Rep Power: 17 |
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 |
|
November 30, 2009, 06:51 |
|
#5 |
Member
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17 |
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 |
|
April 2, 2010, 03:59 |
chtMultiRegionFoam tut not working
|
#6 | |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
where to change the following lines..
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dieselEngineFoam OpenFOAM-1.6 SigFPE error | arun | OpenFOAM Running, Solving & CFD | 0 | September 24, 2009 05:32 |
Pow in lib64tlslibmso6 SigFpe when running coodles with SpalartAllmaras | lillberg | OpenFOAM Bugs | 4 | December 7, 2007 09:17 |
meshing error in Gambit: SIGFPE | Ralf Schmidt | FLUENT | 0 | November 2, 2005 16:28 |