Difference between revisions of "ParaView"

From OpenFOAMWiki
(Add skeleton of some sections for Python support)
(Detailed instructions for Ubuntu 14.04)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
When running <code>makeParaView4</code> you may specify the <code>-python</code> option.  
 
When running <code>makeParaView4</code> you may specify the <code>-python</code> option.  
  
==== Detailed instructions for Ubuntu ====
+
==== Detailed instructions for Ubuntu 14.04 ====
 +
 
 +
First, install the <code>python-dev</code> package:
 +
 
 +
<nowiki>
 +
sudo apt-get install python-dev</nowiki>
  
 
If the default Python library cannot be found, the <code>makeParaView4</code> script's variable must be edited.
 
If the default Python library cannot be found, the <code>makeParaView4</code> script's variable must be edited.
 +
 +
<nowiki>
 +
# Python support:
 +
# note: script will try to determine the appropriate python library.
 +
#      If it fails, specify the path using the PYTHON_LIBRARY variable
 +
withPYTHON=true
 +
PYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0"</nowiki>

Latest revision as of 20:01, 3 October 2014

ParaView is an open-source application for data analysis and visualization.

1 Compiling OpenFOAM's third party ParaView version

1.1 Python scripting option

When running makeParaView4 you may specify the -python option.

1.1.1 Detailed instructions for Ubuntu 14.04

First, install the python-dev package:

sudo apt-get install python-dev

If the default Python library cannot be found, the makeParaView4 script's variable must be edited.

# Python support:
# note: script will try to determine the appropriate python library.
#       If it fails, specify the path using the PYTHON_LIBRARY variable
withPYTHON=true
PYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0"