|
|
# VisIt
|
|
|
|
|
|
Download and install [VisIt, version 3.1.x or 2.13.x](https://wci.llnl.gov/simulation/computer-codes/visit/executables).
|
|
|
|
|
|
In order to be able to visualize results produced by W-SLDA Toolkit you need to compile the plugin.
|
|
|
The plugin must be placed on a system where VisIt server will be launched.
|
|
|
|
|
|
[Video tutorial (YouTube)](https://youtu.be/K00h3sMbV-Q) showing how to install VisIt and connect it with a remote machine.
|
|
|
|
|
|
# Installing W-data plugin on your local system
|
|
|
|
|
|
Follow instruction from this [file](https://gitlab.fizyka.pw.edu.pl/wtools/wdata/-/blob/master/visit-plugin/README.md).
|
|
|
|
|
|
Below we provide examples of the compilation process on selected systems.
|
|
|
## Compiling plugin on [Andes](https://docs.olcf.ornl.gov/systems/andes_user_guide.html)
|
|
|
```bash
|
|
|
module load cmake
|
|
|
|
|
|
cd wslda/lib-wdata/
|
|
|
g++ -O3 -c wdata.c -fPIC
|
|
|
ar crf libwdata.a wdata.o
|
|
|
cp libwdata.a visit-plugin/
|
|
|
|
|
|
cd visit-plugin/
|
|
|
/sw/andes/visit/bin/xml2cmake -v 3.1 -clobber wdata.xml
|
|
|
rm CMakeCache.txt
|
|
|
cmake -DCMAKE_BUILD_TYPE:STRING=Debug
|
|
|
make
|
|
|
```
|
|
|
## Compiling plugin on [Daint](https://www.cscs.ch/computers/piz-daint/)
|
|
|
Before you start compilation **make sure that you can connect without typing password** from `ela.cscs.ch` to `daint101.cscs.ch`:
|
|
|
```bash
|
|
|
[wtools@dell ~]$ ssh ela.cscs.ch
|
|
|
Enter passphrase for key '/home/wtools/.ssh/id_ed25519':
|
|
|
|
|
|
[wtools@ela1 ~]$ ssh daint101.cscs.ch
|
|
|
|
|
|
wtools@daint101:~>
|
|
|
|
|
|
```
|
|
|
If not use `ssh-keygen` & `ssh-copy-id daint101.cscs.ch`.
|
|
|
Next execute on `daint101.cscs.ch`:
|
|
|
```bash
|
|
|
module load daint-mc
|
|
|
module load Visit
|
|
|
|
|
|
cd wslda/lib-wdata
|
|
|
make
|
|
|
cp libwdata.a visit-plugin/
|
|
|
|
|
|
cd visit-plugin
|
|
|
xml2cmake -clobber wdata.xml
|
|
|
rm CMakeCache.txt
|
|
|
cmake -DCMAKE_BUILD_TYPE:STRING=Debug
|
|
|
make
|
|
|
```
|
|
|
Download [VisIt](https://visit-dav.github.io/visit-website/index.html) (an Open Source, interactive, scalable, visualization, animation and analysis tool) in version 3.3.x or higher. It, by default, supports W-DATA format.
|
|
|
|
|
|
# Opening file
|
|
|
When opening the file you need to select metadata file of W-DATA format, i.e file `*.wtxt`. Example is shown below.
|
|
|
When opening the file you need to select metadata file of W-DATA format, i.e. file `*.wtxt`. An example is shown below.
|
|
|
![visit_open](uploads/216ab59845e485a226f1e4a429c72653/visit_open.png)
|
|
|
|
|
|
Expand list of `Open file as type` in order to check is `wdata` plugin is installed.
|
|
|
*Note*: When you select `*.wtxt` file and click open VisIt should automatically use `wdata` plugin, as it is by default assigned to `wtxt` file extension.
|
|
|
|
|
|
*Note*: When you select `*.wtxt` file and click open VisIt should automatically use `wdata` plugin, as it is by default assigned to `wtxt` file extension. You can also select it manually using the option `Open file as type` and selecting WData.
|
|
|
|
|
|
# Example plot
|
|
|
Here you can download sample data here: [example-vortices.tar.gz](uploads/2ddded58f7b17f150a32eca65a0dce6f/example-vortices.tar.gz)
|
|
|
|
|
|
To check if VisIt works correctly, try to open example data:
|
|
|
To check if VisIt works correctly, try to open the example data:
|
|
|
1. File -> Open File
|
|
|
3. Select wtxt file. As example you can use `run1c.wtxt` from sample data set.
|
|
|
3. Select wtxt file. For example, you can use `run1c.wtxt` from the sample data set.
|
|
|
4. In `Plots` section: Add -> Pseudocolor -> `delta_abs`
|
|
|
5. Click `Draw`. In case of sample data you should see:
|
|
|
5. Click `Draw`. In the case of sample data, you should see the following:
|
|
|
|
|
|
![exampleplot](uploads/2568d1ec0f6901ee2a6fa22b45390cf9/exampleplot.png)
|
|
|
|
|
|
# Working in client-server mode
|
|
|
VisIt allows for connecting with remote servers and use them for data visualization and data analysis. In order to be able to work in client-server mode you need:
|
|
|
VisIt allows for connecting with remote servers and using them for data visualization and data analysis. In order to be able to work in client-server mode, you need:
|
|
|
1. Install visit on remote system.
|
|
|
2. Install W-DATA plugin on remote system.
|
|
|
3. Create XML host file and store it on local computer (client).
|
|
|
2. Create XML host file and store it on the local computer (client).
|
|
|
|
|
|
After first usage of VisIt it will create folder with settings. In case of linux system it is hidden folder `.visit` in your home directory. In this folder you need to place appropriate host file. Examples of such files are provided in [hosts](https://gitlab.fizyka.pw.edu.pl/wtools/wdata/-/tree/master/visit-plugin/hosts) folder:
|
|
|
After the first usage of VisIt, it will create a folder with settings. In the case of Linux systems, it is a hidden folder `.visit` in your home directory. In this folder, you need to place an appropriate host file. Examples of such files are provided in [hosts](https://gitlab.fizyka.pw.edu.pl/wtools/wdata/-/tree/master/visit-plugin/hosts) folder:
|
|
|
You can also create a host file by using in VisIt: `Options->Host files`.
|
|
|
|
|
|
When a host file is provided to visit, assign to it server should be visible on the list of hosts in `Open file` dialog box:
|
|
|
When a host file is provided to visit, assign to it the server should be visible on the list of hosts in `Open file` dialog box:
|
|
|
![visit](uploads/ab68e29709dbb72b7725654f5b8a146a/visit.png) |