OpenFOAM on non-English Ubuntu distribution
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'
/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:
Afterwards you have to relog and recompile the PV3FoamReader by doing the following:
xyz stands for the OpenFOAM version you use. Now ParaView should run on non-English Ubuntu distributions.
did you try with:
write "export LC_ALL=C" at the beginning of your paraFoam Startskript (which paraFoam)
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.
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!
|All times are GMT -4. The time now is 02:34.|