Garfield

From PDP/Grid Wiki
Jump to navigationJump to search

This page describes how to use the Garfield and Magboltz programs from Nikhef systems. For more information on those programs see Garfield and Magboltz. Magboltz is not installed as a separate program, we rely on the Magboltz plugin to Garfield (see the Garfield documentation and example files).


Note: the CVMFS format below will change soon. If

ls /cvmfs/softdrive.nl

returns reasonable output (a list of files and directories) but you cannot access the files discussed below, please contact Jeff Templon.


Newer machines that have CVMFS installed should have

/cvmfs/softdrive.nl

mounted. If yours does not, please ask at the helpdesk about it (not me). On a machine that has access:

stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/ 
bin  examples  lib

in the bin directory is garfield itself:

stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/bin 
garfield

in examples, there are example input files that I have verified to work:

stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/examples      
cell.inp  field.inp  gas.inp  runcell.sh  runfield.sh  rungas.sh

as well as three shell scripts that will work on stoomboot, and also show you what adjustments you need to make to your PATH variables if you want to use garfield from the command line:

stbc-i2:~> less /cvmfs/softdrive.nl/templon/garfield/examples/runcell.sh 
#!/bin/sh

date
cd $PBS_O_WORKDIR

PATH=/cvmfs/softdrive.nl/templon/garfield/bin:$PATH
export LD_LIBRARY_PATH=/cvmfs/softdrive.nl/templon/garfield/lib:$LD_LIBRARY_PATH

garfield < cell.inp

mv garfield.metafile cell.ps

date

If you have questions about CVMFS on a machine, please contact the helpdesk. Questions about Garfield not running correctly, please let me know. Questions about the operation of Garfield itself, please contact the manual!