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

GCC Critical Error.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2009, 14:23
Default
  #21
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Yeah, this in not a QT problem, but a problem with the Foam reader plugin. If step 7 in the readme does not work, a remedy is to convert the results with foamToVTK and use paraview instead.
akidess is offline   Reply With Quote

Old   June 22, 2009, 11:32
Default problem with parafoam (detailled below)
  #22
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
Hello Akidess,

I did what is written in the step 7 but in doesn't work :
alexandre@alexandre-laptop:~/OpenFOAM/alexandre-1.5/run/tutorials/icoFoam/cavity$ paraFoam
/home/alexandre/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: 103: paraview: not found

So, I decided to look at this file and here is the "bin/paraFoam". I added numbers of lines otherwise I would be a little be difficult for you to have marks. Can you compare it to yours and tell me whether the error comes from this file?

Moreover, could you indicate me how to convert the results with foamToVTK?

Kind regards

Riderman



33/Script=${0##*/}

35/usage() {
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
cat<<USAGE

usage: $Script [-case dir]
40/
* start paraview $ParaView_VERSION with the OpenFOAM libraries

USAGE
exit 1
45/}

# parse options
if [ "$#" -gt 0 ]; then
case "$1" in
50/ -h | -help)
usage
;;
-case)
shift
55/ caseDir=$1
[ "$#" -ge 1 ] || usage "'-case' option requires an argument"
cd "$caseDir" 2>/dev/null || usage "directory does not exist: '$caseDir'"
;;
*)
60/ usage "unknown option/argument: '$*'"
;;
esac
fi

65/# get a sensible caseName
caseName=${PWD##*/}

# parent directory for normal or parallel results
case "$caseName" in
70/ processor*) parentDir=".." ;;
*) parentDir="." ;;
esac

# check existence of essential files
75/for check in system/controlDict system/fvSchemes system/fvSolution
do
[ -s "$parentDir/$check" ] || usage "file does not exist: '$parentDir/$check'"
done

80/#caseFile="$caseName.foam"
caseFile="$caseName.OpenFOAM"

case "$ParaView_VERSION" in
2*)
85/ # Clean up on termination and on Ctrl-C
trap "rm -f paraFoam.pvs $caseFile 2>/dev/null; exit 0" EXIT TERM INT
touch $caseFile

# since we are now in the cwd, %CASE% is '$PWD/$caseFile'
90/ sed -e s@%CASE%@$PWD/$caseFile@g \
$WM_PROJECT_DIR/bin/paraFoam.pvs > paraFoam.pvs

paraview paraFoam.pvs
;;
95/
*)
# Clean up on termination and on Ctrl-C
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
touch $caseFile
100/ paraview --data=$caseFile
;;

103/esac
#--------------------
riderman is offline   Reply With Quote

Old   June 22, 2009, 14:17
Default
  #23
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
My paraFoam file is not altered, it is the standard script that comes with OpenFOAM. I use ubuntu 8.10 and paraFoam worked out of the box, so I did not have to recompile and cannot give you further advice. Did paraview compile without any errors? Looks like you are missing the binary file.

To view your files in VTK format, run a simulation, then execute the script foamToVTK in your case directory. This will create a new subdirectory "VTK". Now you can run paraview (not paraFoam) and open the VTK files.

-Anton

Last edited by akidess; June 22, 2009 at 14:19. Reason: adding hint to possible compilation error
akidess 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 21:25.