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

OpenFOAM on non-English Ubuntu distribution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2010, 10:25
Smile OpenFOAM on non-English Ubuntu distribution
  #1
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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
fabian_roesler is offline   Reply With Quote

Old   January 10, 2010, 11:02
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 36
Rep Power: 16
stawrogin is on a distinguished road
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
stawrogin is offline   Reply With Quote

Old   January 11, 2010, 07:23
Default
  #3
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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
fabian_roesler is offline   Reply With Quote

Old   January 11, 2010, 08:16
Default
  #4
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 16
Wolle is on a distinguished road
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
Wolle is offline   Reply With Quote

Reply

Tags
decimal separator, install, installation, std::length_error


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
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


All times are GMT -4. The time now is 22:42.