Difference between revisions of "Garfield"

From PDP/Grid Wiki
Jump to navigationJump to search
(Created page with "This page describes how to use the Garfield and Magboltz programs from Nikhef systems. For more information on those programs see [http://garfield.web.cern.ch/garfield/ Garfie...")
 
 
Line 11: Line 11:
 
mounted.  If yours does not, please ask at the helpdesk about it (not me).  On a machine that has access:
 
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/cvmfs.tree/garfield/  
+
  stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/  
 
  bin  examples  lib
 
  bin  examples  lib
  
 
in the bin directory is garfield itself:
 
in the bin directory is garfield itself:
  
  stbc-i2:~> ls /cvmfs/softdrive.nl/templon/cvmfs.tree/garfield/bin  
+
  stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/bin  
 
  garfield
 
  garfield
  
 
in examples, there are example input files that I have verified to work:
 
in examples, there are example input files that I have verified to work:
  
  stbc-i2:~> ls /cvmfs/softdrive.nl/templon/cvmfs.tree/garfield/examples       
+
  stbc-i2:~> ls /cvmfs/softdrive.nl/templon/garfield/examples       
 
  cell.inp  field.inp  gas.inp  runcell.sh  runfield.sh  rungas.sh
 
  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:
 
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/cvmfs.tree/garfield/examples/runcell.sh  
+
  stbc-i2:~> less /cvmfs/softdrive.nl/templon/garfield/examples/runcell.sh  
 
  #!/bin/sh
 
  #!/bin/sh
 
   
 
   
Line 32: Line 32:
 
  cd $PBS_O_WORKDIR
 
  cd $PBS_O_WORKDIR
 
   
 
   
  PATH=/cvmfs/softdrive.nl/templon/cvmfs.tree/garfield/bin:$PATH
+
  PATH=/cvmfs/softdrive.nl/templon/garfield/bin:$PATH
  export LD_LIBRARY_PATH=/cvmfs/softdrive.nl/templon/cvmfs.tree/garfield/lib:$LD_LIBRARY_PATH
+
  export LD_LIBRARY_PATH=/cvmfs/softdrive.nl/templon/garfield/lib:$LD_LIBRARY_PATH
 
   
 
   
 
  garfield < cell.inp
 
  garfield < cell.inp

Latest revision as of 18:02, 3 December 2015

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!