Thanh Tri Nguyen
Simulation Solution Architect
Engineer at Qarnot, specialized in Computational Fluid Dynamics and Multiphysics
HPC platform
Launch compute tasks in a few lines of code or a few clicks on Tasq, our HPC platform.

Paraview Web on Qarnot Cloud - documentation

October 8, 2021 - Documentation, Numerical simulation

Introduction

Paraview Web is a web based application based on the popular open source software Paraview which is used for visualizing simulation cases. Running your Paraview Web simulation on Qarnot is as easy as uploading your case and launching a script. Here’s a walk-through of the steps.

Versions

The test case uses Paraview Web 5.6.0.

Release yearVersion
20195.6.0

If you are interested in another version, please send us an email at qlab@qarnot.com.

Test case

Please ensure that you have created a Qarnot account here.

This test case is based on the pitzDaily tutorial simulation. You can download the case folder here, which contains the results of a pitzDaily case that has been run with OpenFoam. You should put it at the same folder level as the script to launch the calculation. Please note that it needs to be unzipped before it can be used on Qarnot.

Launching the case

Before starting a calculation with the Python SDK, a few steps are required:

  • Retrieve the authentication token (here)
  • Install Qarnot’s Python SDK (here)

Note: in addition to the Python SDK, Qarnot provides C# and Node.js SDKs and a Command Line.
Once everything is set up, the following script needs to be used to start the calculation.

Be sure you have copied your authentication token in the script (instead of <<<MY_SECRET_TOKEN>>>) to be able to launch the task on Qarnot.

paraview_web.py

To launch this script, simply copy the preceding code in a Python script, put at the same level as the pitzDaily_results folder and execute python3 paraview_web.py in your terminal. The instance will open a internet port on which you can connect by a web browser.

Results

At any given time, you can monitor the status of your task on the general general web interface Console. The following figure shows a successful Paraview Web demo on Qarnot's console. 

To launch it to view the case, copy the url (https://forward01.qarnot.net:port) provided in the stdout in a new tab. When prompted for login, use the appropriate username and password given in the stdout. The security warning can be discarded. 

Do not forget to close the task when it is done by either clicking on Abort or Delete.

To view the case on Paraview Web after succeeding to connect, go to the file explorer (the page icon on the top left) and click on pitzDaily.foam. You can change the current parameter (pressure, velocity, etc.) by clicking on the water droplet icon and opening the drop down menu. You can also change the colors by clicking on the gear icon to the left of the gradient. Here you can see a simulation results example in a Paraview Web tab.

Wrapping up

That’s it! If you have any questions, please contact qlab@qarnot.com and we will help you with pleasure!
 

Share on networks