{"id":751,"date":"2021-12-08T15:54:18","date_gmt":"2021-12-08T15:54:18","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf4\/?page_id=751"},"modified":"2024-01-12T12:16:34","modified_gmt":"2024-01-12T12:16:34","slug":"paraview","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/paraview\/","title":{"rendered":"ParaView"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/www.paraview.org\/\">ParaView<\/a> is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques. The data exploration can be done interactively in 3D or programmatically using ParaView\u2019s batch processing capabilities.<\/p>\n<p>Version 5.9.0, 5.9.1, 5.10.1, 5.11.2 of the pvserver and pvbatch OSMesa server tools (binary-install) is installed on the CSF.<\/p>\n<h3>How ParaView runs on the CSF and your PC<\/h3>\n<p>On CSF4 two methods of running paraview are supported:<\/p>\n<ol class=\"gaplist\">\n<li>Client\/server mode &#8211; the <code>paraview<\/code> GUI app runs on <em>your<\/em> PC or laptop &#8211; <em>not<\/em> the CSF. It connects to <code>pvserver<\/code> processes running in a batch job on the CSF. These do the hard work of processing and rendering your data. The final rendered image is sent back to your PC\/laptop to be displayed in the ParaView GUI. The advantage of this is that you DO NOT need to download your data from the CSF.<\/li>\n<li>In purely batch mode &#8211; <code>pvbatch<\/code> processes are run in a batch job on the CSF to process a ParaView script. No GUI is used. A final rendered image, movie or some other dataset may be generated and stored in new files on the CSF.<\/li>\n<\/ol>\n<p>Note that it is <strong>not<\/strong> possible to run the Paraview GUI (<code>paraview<\/code>) directly on the CSF &#8211; it is not even installed! The client\/server method is by far the most efficient method of using Paraview on the CSF and allows you to easily visualize huge datasets without needing to download the data to your PC and you also do not need a fancy GPU in your PC.<\/p>\n<p>The remainder of this page describes the above two methods in detail. Firstly we cover the client\/server method for interactive use of the ParaView GUI.<\/p>\n<h3>Summary of the Client \/ Server method<\/h3>\n<p>The first method (the client\/server method) is the most common &#8211; you will use this to interactively examine your datasets.<\/p>\n<p>It is a little more complicated to set up, and requires you to install the ParaView GUI app on your PC\/laptop, but then allows you to visualize huge datasets stored on the CSF <em>without<\/em> needing a powerful local PC\/workstation.<\/p>\n<p>This is a four-step process. Detailed instructions are provided further down on this page, but a summary of the steps is as follows:<\/p>\n<ol class=\"gaplist\">\n<li>Firstly, <em>you<\/em> must install and run the ParaView GUI (<code>paraview<\/code>) on <strong>your local PC\/laptop<\/strong> (see below for more details.) Please note: If you need help installing ParaView on a campus desktop or your laptop, please <a href=\"http:\/\/www.itservices.manchester.ac.uk\/help\/\">contact the Support Centre<\/a> and they will arrange for this to be done. The Research Infrastructure team that look after the CSF <em>cannot<\/em> arrange this.<\/li>\n<li>Then you run the parallel processing and rendering part of ParaView (<code>pvserver<\/code> processes) on the CSF in a batch job.<\/li>\n<li>Then you create an <em>SSH<\/em> (secure shell) tunnel from your PC to the CSF batch job running the <code>pvserver<\/code> processes.<\/li>\n<li>Then you run <code>paraview<\/code> on your PC\/laptop and it will connect to the CSF, via the SSH tunnel, and use the <code>pvserver<\/code> processes. This is efficient because <em>only<\/em> the rendered images are sent to your PC over the network to be displayed in the paraview render window. Your datasets (which could be huge) are stored and processed <em>entirely<\/em> on the CSF.<\/li>\n<\/ol>\n<p>While this may seem like a lot of steps, it is actually reasonably straight-forward and we provide complete instructions below. It is worth doing &#8211; using this method allows you to visualize very large datasets on the CSF from the comfort of your PC\/laptop, without having to download those large datasets to your PC\/laptop.<\/p>\n<p>Note that the <code>pvserver<\/code> (or <code>pvbatch<\/code>) applications will <em>not<\/em> use any GPU hardware in the CSF. Instead all processing and rendering is performed in software on the compute nodes.<\/p>\n<div class=\"hint\">Remember, the <code>paraview<\/code> GUI app is <em>not<\/em> available on the CSF. You will need to install it on your PC\/laptop and connect it to a <code>pvserver<\/code> job running in batch on the CSF. Complete instructions are given below.<\/div>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on accessing the software on the CSF. The software is released under a BSD style license and all users should ensure they adhere to the terms of <a href=\"https:\/\/www.paraview.org\/paraview-license\/\">that license<\/a>.<\/p>\n<p><a name=\"localinstall\"><\/a><\/p>\n<h2>Installing ParaView on your local PC<\/h2>\n<p>You are going to run the <code>paraview<\/code> GUI on <em>your PC\/laptop<\/em> and connect it to the CSF. <\/p>\n<p>If using a University &#8220;public cluster&#8221; PC then ParaView might already be installed &#8211; check the Start Menu.<\/p>\n<p>To install ParaView on your PC \/ laptop, please either<\/p>\n<ul class=\"gaplist\">\n<li>Check the University &#8220;Software Centre&#8221; app running on managed Windows laptops \/ desktops &#8211; at the time of writing version 5.10.1 is available for install.<\/li>\n<li>Or, download ParaView with the <strong>same version number you will be using on the CSF<\/strong> from the <a href=\"https:\/\/www.paraview.org\/download\/\">ParaView Download page<\/a> for your platform (versions are available for Windows, MacOS and Linux &#8211; choose whatever your PC\/laptop runs). Please note that on Windows you should NOT download the &#8220;MPI&#8221; version &#8211; ignore the downloads that have &#8220;-MPI-&#8221; in their name.<\/li>\n<\/ul>\n<p>If you need help installing ParaView on a campus desktop or your laptop, please <a href=\"http:\/\/www.itservices.manchester.ac.uk\/help\/\">contact the Support Centre<\/a> and they will arrange for this to be done. The Research Infrastructure team that look after the CSF <em>cannot<\/em> arrange this.<\/p>\n<p>Once installed on your PC, <strong>do not run ParaView just yet<\/strong>. You first need to start the <code>pvserver<\/code> job on the CSF and then set up an SSH tunnel on your PC. Full instructions are given below.<\/p>\n<h2>Running <code>pvserver<\/code> in batch on the CSF<\/h2>\n<p>You will now submit a batch job (just like any other batch job) to the CSF batch system to run ParaView&#8217;s <code>pvserver<\/code> app.<\/p>\n<p>This is an application to perform processing and rendering as instructed by the ParaView GUI. For example, if you use the ParaView GUI to set up a pipeline that reads a data-file and then performs volume rendering, it is the <code>pvserver<\/code> processes running on the CSF that will do the actual file reading and volume rendering. The rendered image generated will be sent back to your ParaView GUI so that you can see it in the GUI.<\/p>\n<p>The <code>pvserver<\/code> app can be run as a large CSF job, across multiple compute nodes, or as a smaller job on a few CPU cores in a single compute node. Examples of both types of jobs are given below.<\/p>\n<p>Whether you submit a smaller single-node job or a much larger multi-node job mainly depends on how much data you will be loading in to paraview. Typically each <code>pvserver<\/code> process has access to approximately 4GB of RAM. So you may be able to estimate how many <code>pvserver<\/code> processes (and hence CPU cores) your job will need to be able to load and process your datasets. You may need to experiment &#8211; try submitting a smaller single-node job (e.g., 4 cores) to begin with. If your job runs out of memory, submit a new job with more CPU cores.<\/p>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscripts below for how to do this. Load the following modulefile:<\/p>\n<pre>\r\n# Note: The version of paraview installed on your PC <em>must<\/em> be the same as that used on the CSF.\r\n# Load <em>one<\/em> of the following:\r\nmodule load paraview\/5.11.2\r\nmodule load paraview\/5.10.1\r\nmodule load paraview\/5.9.1\r\nmodule load paraview\/5.9.0\r\n<\/pre>\n<h3>Small single-node (multicore) pvserver job<\/h3>\n<p>Create the following jobscript (e.g., naming it <code>pvserver.sh<\/code>). <strong>NOTE<\/strong>: the <code>--force-offscreen-rendering<\/code> rendering flag is <strong>required<\/strong>.<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore   # A single-node multicore job\r\n#SBATCH -n 8           # (or --ntasks=8) number of cores - can be 2--40.\r\n\r\n# We now recommend loading the modulefile in the jobscript\r\nmodule purge\r\nmodule load paraview\/5.10.1\r\n\r\n# mpiexec knows to use the number of cores requested above\r\nmpiexec pvserver --system-mpi --force-offscreen-rendering\r\n                     #\r\n                     # Note: This is specific to the CSF4 (it isn't used on CSF3)\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nsbatch <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvserver.sh<\/code>)<\/p>\n<h3>Large multi-node (multicore) pvserver job<\/h3>\n<p>Create the following jobscript (e.g., naming it <code>pvserver-ib.sh<\/code>). <strong>NOTE<\/strong>: the <code>--force-offscreen-rendering<\/code> rendering flag is <strong>required<\/strong>.<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multinode   # A multi-node job\r\n#SBATCH -n 80          # (or --ntasks=80) number of cores, minimum is 80, must be in multiples of 40.\r\n\r\n# We now recommend loading the modulefile in the jobscript\r\nmodule load paraview\/5.10.1\r\n\r\n# mpiexec knows to use the number of cores requested above\r\nmpiexec pvserver --system-mpi --force-offscreen-rendering\r\n                     #\r\n                     # Note: This is specific to the CSF4 (it isn't used on CSF3)\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nsbatch <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvserver-ib.sh<\/code>)<\/p>\n<h3>Find where the pvserver batch job runs<\/h3>\n<p>You must now <strong>wait<\/strong> until the <code>pvserver<\/code> job is running. Use <code>sbatch<\/code> to check your job queue. Once the <code>state<\/code> reported by <code>sbatch<\/code> has changed from <code>PD<\/code> to <code>R<\/code> you will see something like:<\/p>\n<pre>\r\nJOBID PRIORITY PARTITION NAME     USER  ACC ST SUBMIT_TIME START_TIME  TIME NODES CPUS NODELIST(REA\r\n24914 0.021350 multinode pvser... <em>uname<\/em> <em>xy01<\/em> <strong>R<\/strong> 08\/12\/21... 08\/12\/21... 5:21     2   80 node[<strong>056<\/strong>-057]\r\n<\/pre>\n<p>Make a note of the <strong>NODELIST(REASON)<\/strong> value (yes really, please make a note if it &#8211; you need this info later), specifically the <strong>first<\/strong> node (if a range of node numbers is given) &#8211; e.g., <code>node[<\/em><strong>056<\/strong>-057<\/em>]<\/code>. In this example we see <strong><code>node056<\/code><\/strong> is the <em>first<\/em> node in the list of nodes your job is running on.<\/p>\n<div class=\"note\">\nIf you&#8217;ve submitted a large, multi-node pvserver job, you only need to make a note of the <em>first<\/em> node in the list of nodes on which the job is running.<\/p>\n<p>In the above example, the job is running on <code>node[056-057]<\/code> so we make a note of <code>node056<\/code>.\n<\/div>\n<p>You should now check in the job output that <code>pvserver<\/code> is waiting for you to connect to it:<\/p>\n<pre>\r\n# Go to where you submit the job from. For example:\r\ncd ~\/scratch\/data\r\n\r\n# Check the end of the job output file for a message from paraview:\r\ncat slurm-24914.out\r\n\r\n# You should see something similar to\r\nWaiting for client...\r\nConnection URL: cs:\/\/<strong>node056<\/strong>.csf4.local:11111\r\nAccepting connection(s): <strong>node056<\/strong>.csf4.local:11111\r\n\r\n# If the above message is not visible, wait a minute and run\r\n# the 'cat' command again. This shows that pvserver is ready\r\n# for you to connect your paraview GUI to it.\r\n<\/pre>\n<p>It may take a minute or two before the <code>pvserver<\/code> job displays the above message in the <code>slurm-NNNNNN.out<\/code> file. Please wait until you see this message from the job.<\/p>\n<p>Assuming you can see a message similar to the above, we are now going to do some steps on your local PC\/laptop to run the <code>paraview<\/code> GUI there and connect it to the <code>pvserver<\/code> batch job.<\/p>\n<h2>Setting up the SSH tunnel from your PC to the CSF<\/h2>\n<p>We will now set up the SSH tunnel to the CSF from your PC\/laptop.<\/p>\n<p>This allows the ParaView GUI on <em>your<\/em> PC to communicate directly with your CSF batch job running the <code>pvserver<\/code> processes. The method used is very similar to how you log in to the CSF, just with some extra command-line flags, so don&#8217;t be put off about doing this step. You <em>will<\/em> need the information from the <code>squeue<\/code> command that we noted above.<\/p>\n<p>Separate instructions are given for Windows and Linux\/MacOS.<\/p>\n<p>At this stage you <strong>must<\/strong> have ParaView installed on <em>your<\/em> local PC\/laptop (<a href=\"#localinstall\">see above<\/a>). It doesn&#8217;t matter if the ParaView GUI is running or not yet on your PC.<\/p>\n<h3>SSH Tunnel on Linux or MacOS<\/h3>\n<p>In a shell (Terminal) window on <strong>your<\/strong> PC\/laptop, create a <em>tunnel<\/em> between your local port 11111 and the CSF backend node&#8217;s port 11111 where the <code>pvserver<\/code> job is running. This will go via the CSF login node. In this example we assume the <code>pvserver<\/code> job is running on node <strong><code>node056<\/code><\/strong>.<\/p>\n<pre>\r\nssh -L 11111:<strong>node056<\/strong>:11111 <em>username<\/em>@csf4.itservices.manchester.ac.uk\r\n                 #             #\r\n                 #             # Use <em>your<\/em> UoM username\r\n                 #\r\n                 # Use the node number that you made a note of earlier (see squeue output)\r\n\r\n# Enter your University IT password when prompted and respond to any DUO prompt if shown.\r\n<\/pre>\n<p>where <em>username<\/em> is <em>your<\/em> CSF username and <em>node056<\/em> is the node where <em>your<\/em> <code>pvserver<\/code> job is running (use <code>squeue<\/code> on the CSF to find out). <strong>Do not close this shell<\/strong>. This connection must remain open to use ParaView. You do <strong>not<\/strong> need to type any commands in to this shell.<\/p>\n<h3>SSH Tunnel on Windows<\/h3>\n<p>You must have an SSH client, such as MobaXterm (or PuTTY), installed. Note that we are going to run a locally-installed Windows version of the ParaView GUI. The SSH application is just to set up the SSH tunnel. <\/p>\n<p>If using MobaXTerm, start MobaXTerm on your PC then simply copy the <code>ssh<\/code> command given in the Linux instructions above in to the black MobaXTerm window (don&#8217;t forget to use the appropriate node name &#8211; e.g., <code>node056<\/code> &#8211; appropriate to your job). For example:<\/p>\n<pre>\r\nssh -L 11111:<strong>node056<\/strong>:11111 <em>username<\/em>@csf4.itservices.manchester.ac.uk\r\n                 #             #\r\n                 #             # Use <em>your<\/em> UoM username\r\n                 #\r\n                 # Use the node number that you made a note of earlier (see squeue output)\r\n\r\n# Enter your University IT password when prompted and respond to any DUO prompt if shown.\r\n<\/pre>\n<p>PuTTY instructions coming soon&#8230;<\/p>\n<h2>Run the Paraview GUI on your PC\/laptop<\/h2>\n<p>Now start your local installation of <code>paraview<\/code> on <em>your<\/em> PC\/laptop:<\/p>\n<ul>\n<li>Linux or MacOS: Run the following command in a <em>Terminal<\/em> (aka <em>Shell<\/em>) window:\n<pre>\r\nparaview --server-url=cs:\/\/localhost:11111<\/pre>\n<p>ParaView will connect to the <code>pvserver<\/code> processes through your local port <code>11111<\/code>. This has been tunnelled to the CSF backend node where the processes are actually running. You can now jump to <a href=\"#rensettings\">Render Settings<\/a> to ensure everything is working correctly.<\/li>\n<li>Windows: Run <code>paraview<\/code> by selecting it from the Start menu (or desktop icon if you have one). Then follow the steps below.<\/li>\n<\/ul>\n<h3>Connecting the ParaView GUI to your CSF job<\/h3>\n<p>Note that Linux and MacOS users do not need to do these steps if you ran paraview on your PC\/laptop using:<\/p>\n<pre>\r\nparaview --server-url=cs:\/\/localhost:11111<\/pre>\n<p>because that command will have achieved what the following steps will do. The steps below are mostly for Windows users who will need to do the steps using the ParaView GUI.<\/p>\n<p>Once the ParaView GUI has appeared, do the following:<\/p>\n<ol>\n<li>Go to <em>File<\/em> > <em>Connect<\/em><\/li>\n<li>In the <em>Choose Server Configuration<\/em> window that pops up, select <strong>Add Server<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"\/csf-apps\/wp-content\/uploads\/pv-connect02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect02.png\" alt=\"Paraview Launch Configuration\" width=\"536\" height=\"284\" class=\"aligntop size-full wp-image-346\" \/><\/a><\/li>\n<\/ul>\n<li>Fill in the form to connect to your local port 1111 using the following then hit <strong>Configure<\/strong>:<\/li>\n<ul>\n<li>Name: <code>localhost<\/code><\/li>\n<li>Server Type: <code>Client \/ Server<\/code><\/li>\n<li>Host: <code>localhost<\/code><\/li>\n<li>Port: <code>11111<\/code><\/li>\n<\/ul>\n<ul style=\"list-style-type: none\">\n<li><a href=\"\/csf-apps\/wp-content\/uploads\/pv-connect03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect03.png\" alt=\"Paraview Edit Server Configuration\" width=\"534\" height=\"197\" class=\"aligncenter size-full wp-image-347\" \/><\/a><\/li>\n<\/ul>\n<li>In the <em>Server Launch Configuration<\/em> window ensure <strong>Manual<\/strong> is selected and hit <strong>Save<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a \/csf-apps\/wp-content\/uploads\/pv-connect04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect04.png\" alt=\"ParaView Launch Configuration\" width=\"534\" height=\"266\" class=\"aligncenter size-full wp-image-348\" \/><\/a><\/li>\n<\/ul>\n<li>Now select your saved configuration and hit <strong>Connect<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"\/csf-apps\/wp-content\/uploads\/pv-connect05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect05.png\" alt=\"ParaView Server connection\" width=\"534\" height=\"266\" class=\"aligncenter size-full wp-image-349\" \/><\/a><\/li>\n<\/ul>\n<\/ol>\n<p>ParaView will connect to the <code>pvserver<\/code> processes through your local port 11111. This has been tunnelled to the CSF backend node where the processes are actually running.<\/p>\n<p>Now jump to <a href=\"#rensettings\">Render Settings<\/a> to ensure everything is working correctly.<\/p>\n<p><a name=\"rensettings\"><\/a><\/p>\n<h2>Render Settings<\/h2>\n<p>To ensure your local <code>paraview<\/code> client does <em>no rendering work<\/em> you should change the render settings in <code>paraview<\/code>. The default is to have your PC do a little bit of rendering work. We don&#8217;t want it to do any rendering otherwise it would have to transfer more data from the CSF to your PC. <\/p>\n<ol>\n<li>In the <code>paraview<\/code> GUI go to <em>Edit<\/em> &gt; <em>Settings&#8230;<\/em><\/li>\n<li>In the <em>Render View<\/em> tab, type in a zero <code>0<\/code> in the <em>Remote Render Threshold<\/em> box, as shown below.<\/li>\n<li><a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/render-view-settings-red.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/render-view-settings-red.png\" alt=\"ParaView Render View Settings\" width=\"548\" height=\"576\" class=\"alignnone size-full wp-image-3665\" \/><\/a><\/li>\n<\/ol>\n<p>This will ensure <em>all<\/em> geometry data and rendering tasks remain on the CSF and only the final rendered image is delivered to your PC.<\/p>\n<h2>Testing the Connection to the CSF<\/h2>\n<p>A useful way of checking what the remote <code>pvserver<\/code> processes are doing is to load a standard ParaView geometry (e.g., a sphere), or one of your own datasets, and then colour the data according to the <em>processor ID<\/em> on which the data is residing (ParaView distributes the gemetry amongst the <code>pvserver<\/code> processes). Hence you will see different colours for each <code>pvserver<\/code> used in the CSF batch job:<\/p>\n<ol class=\"gaplist\">\n<li>Go to the <em>Sources<\/em> > <em>Geometric<\/em> > <em>Sphere<\/em> menu item to add a sphere to your pipeline.<br \/>\n<a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-filter-red.png\"><img decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-filter-red.png\" alt=\"Paraview Sphere Geometry Source\" width=\"600\" class=\"alignnone size-full wp-image-3668\" \/><\/a><\/li>\n<li>Hit the <em>Apply<\/em> button to display the sphere. The sphere&#8217;s geometry data will exist on the CSF (in the <code>pvserver<\/code> processes and be rendered by those processes. The final image of the sphere is then being sent back to your PC to be displayed in the ParaView GUI.<br \/>\n<a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-apply-red.png\"><img decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-apply-red.png\" alt=\"Hit Apply to make the sphere visible\" width=\"600\" class=\"alignnone size-full wp-image-3669\" \/><\/a><\/li>\n<li>Change the <em>Solid Color<\/em> drop-down menu in the toolbar (above the pipeline browser) to be <em>vtkProcessID<\/em>. The will change how the sphere geometry is rendered by assigning the <code>pvserver<\/code> process ID to the parts of the sphere each process is responsible for.<br \/>\n<a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-coloring-red.png\"><img decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-coloring-red.png\" alt=\"Change the Paraview colouring method\" width=\"600\" class=\"alignnone size-full wp-image-3670\" \/><\/a><\/li>\n<li>You should now see that the sphere is rendered using 8 different colours. In this example we ran a CSF jobs with 8 <code>pvserver<\/code> processes. Hence 8 different colours are used to colour the sphere because each process is responsible for different sections of the sphere&#8217;s geometry.<br \/>\n<a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-final-red.png\"><img decoding=\"async\" src=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-content\/uploads\/sphere-final-red.png\" alt=\"The sphere colouring indicates which pvserver process is rendering it\" width=\"600\" class=\"alignnone size-full wp-image-3671\" \/><\/a><\/li>\n<\/ol>\n<h3>Loading your own Datasets on the CSF<\/h3>\n<p>You can also load in your own dataset and apply the same technique as above. You will also notice that when you open the file browser, it will show you your files <em>on the CSF<\/em>, not those on your local PC. This is because the <code>pvserver<\/code> processes are running on the CSF and it is those processes that will read your data. If you want to visualize a dataset that is stored on your PC, you should transfer it to the CSF (using your preferred file transfer application) and then open the file in the ParaView GUI. <\/p>\n<h2>Exit and Clean up<\/h2>\n<p>Exiting from the <code>paraview<\/code> GUI will stop the backend <code>pvserver<\/code> processes, at which point you will have no ParaView jobs running in the batch system.<\/p>\n<h3>Close the SSH tunnel<\/h3>\n<p>Don&#8217;t forget to close the SSH tunnel. Otherwise you might not be able to make ParaView work correctly if you need to run it again using a new <code>pvserver<\/code> batch job.<\/p>\n<p>Simply type<\/p>\n<pre>\r\n# In the Linux\/MacOS shell or MobaXterm window where you ran the \"ssh -L 11111:node<em>056<\/em> .....\" command:\r\nexit\r\n<\/pre>\n<p>in the shell window that is logged in to the CSF with the tunnel enabled. It will log you out of the CSF.<\/p>\n<h2>Hints and Tips<\/h2>\n<p>If the <code>paraview<\/code> GUI freezes or hangs it usually indicates a problem with the backend <code>pvserver<\/code> processes. Check the <code>pvserver.sh.o<\/code><em>NNNNN<\/em> or <code>pvserver.sh.e<\/code><em>NNNNN<\/em> log files created by the batch job (the <code>pvserver.sh<\/code> name will actually be what ever your jobscript was called). The most common problem is that the <code>pvserver<\/code> processes run out of memory because you don&#8217;t have enough running for the size of your dataset. <\/p>\n<p>If your local <code>paraview<\/code> GUI crashes you should run <code>qstat<\/code> on the CSF to check if the <code>pvserver<\/code> processes are still running. If so, use <code>qdel<\/code> <em>NNNNNN<\/em> to kill the batch job.<\/p>\n<p>If you can&#8217;t create the SSH tunnel, check you haven&#8217;t already got an SSH tunnel still open from a previous run of PaeaView. Exit that logged-in session before starting a new one.<br \/>\n<a name=\"pvbatch\"><\/a><\/p>\n<h2>Running non-interactive (scripted) pvbatch (large datasets)<\/h2>\n<p>The <code>pvbatch<\/code> application allows you to run ParaView scripts <em>without<\/em> using the GUI. The entire job runs on the CSF, in batch, just like any other CSF job. The <code>paraview<\/code> GUI should <strong>not<\/strong> be running at this point.<\/p>\n<p>After loading the ParaView modulefile use a jobscript to launch the <code>pvbatch<\/code> MPI processes. For example, to launch 4 backend processes, create the following jobscript (e.g., naming it pvbatch.sh):<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore     # Single-node multicore job\r\n#SBATCH -n 8             # (or --ntasks=8) number of cores - can be 2-40.\r\n### OR ###\r\n#SBATCH -p multicore     # Multi-node job\r\n#SBATCH -n 80            # (or --ntasks=80) number of cores - must be 80 or more in multiples of 40.\r\n\r\n# Ensure the paraview modulefile is loaded\r\nmodule purge\r\nmodule load paraview\/5.9.1\r\n\r\n# Run pvbatch - you <em>do not<\/em> control this with the paraview GUI\r\nmpiexec pvbatch --system-mpi <em>scriptfile<\/em>\r\n                     #         #\r\n                     #         # where <em>scriptfile<\/em> is the file\r\n                     #         # containing your paraview script\r\n                     #\r\n                     # This flag is specific to the CSF4\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nsbatch <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvbatch.sh<\/code>)<\/p>\n<p>Please see <a href=\"https:\/\/www.paraview.org\/paraview-guide\/\">Online Paraview Guide<\/a> for more information on using <code>pvbatch<\/code>.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"https:\/\/paraview.org\">Paraview website<\/a><\/li>\n<li><a href=\"https:\/\/www.paraview.org\/paraview-guide\/\">Online Paraview Guide<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques. The data exploration can be done interactively in 3D or programmatically using ParaView\u2019s batch processing capabilities. Version 5.9.0, 5.9.1, 5.10.1, 5.11.2 of the pvserver and pvbatch OSMesa server tools (binary-install) is installed on the CSF. How ParaView runs on the CSF and your PC On CSF4 two methods of.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/paraview\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-751","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":20,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/751\/revisions"}],"predecessor-version":[{"id":1171,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/751\/revisions\/1171"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/media?parent=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}