

{"id":195,"date":"2017-10-20T18:01:38","date_gmt":"2017-10-20T16:01:38","guid":{"rendered":"https:\/\/project.inria.fr\/damaris\/?page_id=195"},"modified":"2022-04-20T20:46:30","modified_gmt":"2022-04-20T18:46:30","slug":"visit-examples","status":"publish","type":"page","link":"https:\/\/project.inria.fr\/damaris\/visit-examples\/","title":{"rendered":"VisIt Examples"},"content":{"rendered":"<p>This section describes you how to run a VisIt example and show the results on VisIt GUI. First of all, make sure that VisIt is installed on your simulation machine. if not, go to\u00a0<a href=\"https:\/\/project.inria.fr\/damaris\/install-visiit\/\">this page<\/a>\u00a0to install VisIt first. Please note that you can show your simulation output on a node other than the one that is running simulation. In that case, you should install VisIt backend on the server and its GUI on your client machine.<\/p>\n<h4>Creating a Host Profile<\/h4>\n<p>Open VisIt GUI on your machine. (Go to the installation path of your VisIt GUI and run \/bin\/visit in a terminal.)<br \/>\nN.B. it may be required to use the \u201c-nopty\u201d flag, e.g. <em>\/visit\/path\/bin\/visit -nopty<\/em> which will require passwords needed for remote connections to be specified in the terminal in which VisIt was started.<\/p>\n<ul>\n<li>Click on Options &gt; Host profiles.<\/li>\n<li>Click on \u201cNew Host\u201d. On the opened dialog:\n<ul>\n<li>Choose a right nickname for your host, for example localhost or Grid5000. The remote host name will be the name of the node you have reserved (or one of the nodes, if you have a multinode reservation).<br \/>\n<strong>Note:<\/strong> In Grid&#8217;5000, for example if you have reserved parapide-8 on the Rennes site, the Remote host name will be parapide-8.rennes.grid5000.fr.<\/li>\n<li>The Path to VisIt installation should be the prefix you have to the build_visit script. For example if you put $HOME\/sw\/visit, it should be \/home\/&lt;your-user-name&gt;\/sw\/visit.<\/li>\n<li>Check \u201cTunnel data connections through SSH\u201d and choose \u201cUse local machine name\u201d.<\/li>\n<li>In the case of Grid&#8217;5000, check \u201cUse gateway\u201d and put access.grid5000.fr as gateway. (<strong>Note:<\/strong> the VisIt engine in Grid5000 will try to connect back to your machine using its local machine name. You should therefore be on a network that attributes a name to your machine in such a way that the machine becomes reachable by that name from outside.)<\/li>\n<li>Click on Apply, and close the Host profiles window.<\/li>\n<li>Click on Options &gt; Save settings.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>Running the Examples<\/h4>\n<p>There are some examples that show that how simulations could be instrumented to support in situ visualization. For all of these examples that are located in \/examples\/visit folder, go for the following steps:<\/p>\n<p><strong>Step1:<\/strong> From the node you want to run your simulation, execute:<\/p>\n<pre lang=\"bash\" line=\"1\">$ \/visit\/path\/bin\/visit -env -engine\r\n<\/pre>\n<p>You will see a bunch of environment variables. Take note of the content of LD_LIBRARY_PATH and VISIT_MESA_LIB.<\/p>\n<p><strong>Step 2:<\/strong> Go to the \u201cbuild\u201d folder where you have compiled Damaris. Go to the examples\/visit sub-folder. Create a <em>run-[example-name].sh<\/em> file containing the following lines:<\/p>\n<pre lang=\"bash\" line=\"1\">#!\/bin\/sh\r\nPATH=Z\/bin \\\r\nLD_LIBRARY_PATH=X \\\r\nVISIT_MESA_LIB=Y \\\r\nmpirun -np 3 .\/T T.xml\r\n<\/pre>\n<p>Where X and Y are the content displayed when you ran the command visit -env -engine command, for each variable respectively and Z is the installation path of Damaris and T is the name of the example.<\/p>\n<p>Then execute:<\/p>\n<pre lang=\"bash\" line=\"1\">chmod +x run-[example-name].sh\r\n<\/pre>\n<p>You can now execute:<\/p>\n<pre lang=\"bash\" line=\"1\">$ .\/run-[example-name].sh\r\n<\/pre>\n<p>this will start 3 MPI processes: 2 of them run the simulation, one is a dedicated process (do not forget to update the xml file for each example as described above).<\/p>\n<h4>Connecting VisIt\u2019s Frontend to Simulation<\/h4>\n<p>To see the results of an example on your machine (or on Grid&#8217;5000), You need to have a running reservation and your remote host profile (where the simulation is running) is configured correctly. Then:<\/p>\n<ul>\n<li>Start visit GUI with \u201c-nopty\u201d flag, e.g. <em>\/visit\/path\/bin\/visit -nopty<\/em>\n<li>Click the Open button in VisIt GUI, a \u201cFile open\u201d window will appear.<\/li>\n<li>In the Host section, select your host (e.g. localhost or Grid&#8217;5000).<\/li>\n<li>You will need to input your password for the remote host in the shell terminal where you started visit.<\/li>\n<li>After a few seconds of loading, you should see your files on your home directory of your host (localhost or Grid5000).<\/li>\n<li>Once you can navigate into your home directory of the host, go to the <em>.visit<\/em> folder on your home, then to the <em>simulations<\/em> folder. The running example program should have generated a file called <em>XXXXXXXXXX.[example-name].sim2<\/em> where the Xs correspond to a time-stamp. Double click on this file to open it.<\/li>\n<li>Once open, the \u201cAdd\u201d button on the VisIt interface should light up.<\/li>\n<li>On VisIt\u2019s interface, click on Add button, then based on your example, select your plot to be visualized:\n<ul>\n<li>For curve example, Curve &gt; sine<\/li>\n<li>For life example, Pseudocolor &gt; life &gt; cells.<\/li>\n<li>For mandelbulb example, Volume &gt; space.<\/li>\n<li>For mesh example: Mesh &gt; mesh2d<\/li>\n<li>For point example: Lable &gt; Domains<\/li>\n<\/ul>\n<\/li>\n<li>Click on Draw.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This section describes you how to run a VisIt example and show the results on VisIt GUI. First of all, make sure that VisIt is installed on your simulation machine. if not, go to\u00a0this page\u00a0to install VisIt first. Please note that you can show your simulation output on a node&#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/project.inria.fr\/damaris\/visit-examples\/\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":1249,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-195","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/pages\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/users\/1249"}],"replies":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":7,"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/pages\/195\/revisions"}],"predecessor-version":[{"id":976,"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/pages\/195\/revisions\/976"}],"wp:attachment":[{"href":"https:\/\/project.inria.fr\/damaris\/wp-json\/wp\/v2\/media?parent=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}