|
[Sponsors] |
January 10, 2010, 10:25 |
OpenFOAM on non-English Ubuntu distribution
|
#1 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
Hi Foamers
I installed OpenFOAM 1.6.x recently on my German Ubuntu 9.04 distribution. Everything went well until I tried to view my simulation results in ParaView. The following error occured: terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create /home/fr/OpenFOAM/OpenFOAM-1.6.x/bin/paraFoam: line 83: 13772 Aborted paraview --data=$caseFile This error is due to the decimal separators in Ubuntu. Everybody using comma instead of points will run into this message. The way to overcome this error is to switch to point decimal separator. Add the following line to the .bashrc what will tell Ubuntu to use the American number format: export LC_NUMERIC=en_US.utf8 Afterwards you have to relog and recompile the PV3FoamReader by doing the following: cd ~/OpenFOAM/OpenFOAM-xyz/applications/utilities/postProcessing/graphics/PV3FoamReader ./Allwclean cd ~OpenFOAM/OpenFOAM-xyz ./Allwmake xyz stands for the OpenFOAM version you use. Now ParaView should run on non-English Ubuntu distributions. Regards Fabian |
|
January 10, 2010, 11:02 |
|
#2 |
Member
Join Date: Nov 2009
Posts: 36
Rep Power: 17 |
Hi Fabian
did you try with: write "export LC_ALL=C" at the beginning of your paraFoam Startskript (which paraFoam) please see: http://www.cfd-online.com/Forums/ope...-paraview.html stawrogin |
|
January 11, 2010, 07:23 |
|
#3 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
hi stawrogin
No, I did not try that. But export LC_ALL=C changes the whole language set. LC_NUMERIC only changes number-related stuff. Anyway, both things work fine. Regards Fabian |
|
January 11, 2010, 08:16 |
|
#4 |
Member
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 17 |
Hi Fabian,
yes and no. Adding the LC_ALL command in the parafoam script changes the complete locales settings - but only for the shell the script runs in! Your .bashrc hack changes your settings permanently for all you applications... that might cause other conflicts! Cheers Wolle |
|
Tags |
decimal separator, install, installation, std::length_error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
OpenFOAM Distribution by Virtual Machine | will | OpenFOAM Installation | 5 | June 20, 2008 09:11 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |