View Single Post
Old 24-10-2012, 19:11   #1
socrates666
Junior Member
 
Iscritto dal: Oct 2008
Messaggi: 11
Problema installazione pyFoam per openFoam

Salve a tutti
Premetto che sono alle primissime armi con linux/ubuntu.
sono riuscito a installare anch'io openFoam, ma non riesco invece a installare pyFoam seguendo questa guida.
In sostanza l'installazione è avvenuta anche ma la questione è che non riesco a lanciare l'utility Plotwatcher.
Eseguo le operazioni in questo modo:
Da terminale entro nella directory dove è impostato il mio problema e lancio il calcolo col comando foamJob -screen buoyantBoussinesqSimpleFoam. Di conseguenza vorrei vedere in tempo reale l'andamento dei residui e inserisco il comando pyFoamPlotWatcher.py log ma mi questo da errore:
Traceback (most recent call last):
File "/usr/local/bin/pyFoamPlotWatcher.py", line 3, in <module>
from PyFoam.Applications.PlotWatcher import PlotWatcher
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Applications/PlotWatcher.py", line 6, in <module>
from PyFoam.Execution.GnuplotRunner import GnuplotWatcher
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/GnuplotRunner.py", line 4, in <module>
from StepAnalyzedCommon import StepAnalyzedCommon
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/StepAnalyzedCommon.py", line 4, in <module>
from AnalyzedCommon import AnalyzedCommon
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/AnalyzedCommon.py", line 7, in <module>
from PyFoam.Basics.PlotTimelinesFactory import createPlotTimelines,createPlotTimelinesDirect
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Basics/PlotTimelinesFactory.py", line 4, in <module>
from GnuplotTimelines import GnuplotTimelines
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Basics/GnuplotTimelines.py", line 4, in <module>
from PyFoam.ThirdParty.Gnuplot import Gnuplot,Data
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/Gnuplot/__init__.py", line 166, in <module>
from PlotItems import PlotItem, Func, File, Data, GridData
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/Gnuplot/PlotItems.py", line 24, in <module>
import numpy
ImportError: No module named numpy

Non so che fare, mi hanno consigliato di installare un NumPy che non so cosa sia nè so come installarlo.
Grazie mille a chi mi potrà essere di aiuto
socrates666 è offline   Rispondi citando il messaggio o parte di esso