Rappture on Aerosun

Quick Links:

Where is rappture installed on Aerosun?

/home/aerosun/a/share/Software/rappture/bin

Set Path for Rappture

(Temporary) Note: You have to do this each time you open a new shell

Method1:

  • -bash-3.00$ cd /home/aerosun/a/share/Software/rappture/bin
  • -bash-3.00$ source rappture.env

Method2: If you remember the path,

  • -bash-3.00$ source /home/aerosun/a/schigull/share/Software/rappture/bin/rappture.env

(Permanent) Caution: If you are also using FVM-MEMOSA, the python path is the same as this for it and you have to do source env.sh in MEMOSA.

Open .bash_profile file in home directory and add the following:

if test "$HOSTNAME" = "aerosun.ecn.purdue.edu"

then

PATH=/opt/matlab/current/bin:$PATH

RAPPTURE_INSTALL_DIR=/home/aerosun/a/share/Software/rappture

PYTHONPATH=/home/aerosun/a/share/Software/rappture/lib/python2.4/site-packages:$PYTHONPATH

MATLABPATH=/home/aerosun/a/share/Software/rappture/lib/matlab:$MATLABPATH

OCTAVE_PATH=/home/aerosun/a/share/Software/rappture/lib/octave:$OCTAVE_PATH

OCTAVE_LOADPATH=/home/aerosun/a/share/Software/rappture/lib/octave:$OCTAVE_LOADPATH

PERL5LIB=/home/aerosun/a/share/Software/rappture/lib/perl:$PERL5LIB

RUBYLIB=/home/aerosun/a/share/Software/rappture/lib/ruby:$RUBYLIB

TCL_LIBRARY=/home/aerosun/a/share/Software/rappture/lib/tcl8.4:$TCL_LIBRARY

TK_LIBRARY=/home/aerosun/a/share/Software/rappture/lib/tk8.4:$TK_LIBRARY

fi

export PATH

export RAPPTURE_INSTALL_DIR

export PYTHONPATH

export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH

export PERL5LIB RUBYLIB TCL_LIBRARY TK_LIBRARY

In summary: Correct path to

  • Matlab is /opt/matlab/current/bin
  • Pythonpath is /home/aerosun/a/share/Software/rappture/lib/python2.4/site-packages

Note: Don't forget to exit and log back on for the changes to take effect.

How to check if path is set correctly?

Check if the path that comes up first is the path you want.

  • -bash-3.00$ echo $PATH
    • /home/aerosun/a/schigull/share/Software/rappture/bin:/opt/matlab/current/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.:/usr/opt/bin:

Note: Here /usr/opt/bin/ also has a matlab but it comes only after the underlined path and one needn't worry.

  • -bash-3.00$ echo $PYTHONPATH
    • /home/aerosun/a/share/rappture/lib/python2.4/site-packages:/home/aerosun/a/schigull/FVM-trial/build-aerosun/lib

Run Examples to check if Rappture works with tcl,python,fortran,matlab, c

  • -bash-3.00$ cd /home/aerosun/a/schigull/share/Software/rappture/examples
  • -bash-3.00$ ./demo.bash

Output on screen will be as follows: (Note: please wait for a few more seconds when you run matlab. It gives out some errors in the beginning but works finally.)

8 examples will be shown-->

/home/aerosun/a/share/rappture/examples/app-fermi/tcl

MiddlewareTime: job=1 event=simulation start=2.050636 walltime=0.185654 cputime=0.12498 status=0

/home/aerosun/a/share/rappture/examples/app-fermi/python

MiddlewareTime: job=1 event=simulation start=1.068179 walltime=0.215804 cputime=0.036993 status=0

/home/aerosun/a/share/rappture/examples/app-fermi/fortran

MiddlewareTime: job=1 event=simulation start=1.671984 walltime=0.152197 cputime=0.010998 status=0

/home/aerosun/a/share/rappture/examples/app-fermi/matlab

MiddlewareTime: job=1 event=simulation start=1.596461 walltime=8.639105 cputime=3.598452 status=0

/home/aerosun/a/share/rappture/examples/c-example

MiddlewareTime: job=1 event=simulation start=2.628531 walltime=0.009187 cputime=0.007998 status=0

/home/aerosun/a/share/rappture/examples/graph

MiddlewareTime: job=1 event=simulation start=8.7314 walltime=0.033822 cputime=0.030994 status=0

Run UQ Code developed by Prof Alexeenko's group:

Just go to the directory with the code & tool.xml. Type 'rappture' into bash shell.

The gui will come up and you know what to do. Yes, Its as simple as that.

  • -bash-3.00$ cd /home/aerosun/a/share/Software/rappture/examples/UQ/
  • -bash-3.00$ rappture

MiddlewareTime: job=1 event=simulation start=2.059366 walltime=0.455387 cputime=0.447931 status=0

Coming soon... other codes.