source: trunk/examples/app-fermi/fermi_io.py @ 10

Last change on this file since 10 was 10, checked in by mmc, 19 years ago

Added an "examples" directory with the bits and pieces that
make up app-fermi. This is very much a work in progress.

File size: 914 bytes
Line 
1# ----------------------------------------------------------------------
2#  FERMI STATISTICS
3#
4#  This simple example shows how you can use the Rappture toolkit
5#  to handle I/O for a simple simulator--in this case, one that
6#  computes Fermi-Dirac statistics.
7#
8#  This part contains the Rappture interface for the simulator.
9# ======================================================================
10#  AUTHOR:  Michael McLennan, Purdue University
11#  Copyright (c) 2005  Purdue Research Foundation, West Lafayette, IN
12# ======================================================================
13
14import Rappture
15
16#T = 300
17#Ef = -5.5
18#result = []
19
20T = Rappture.number('input.temperature', units='K', default=300)
21Ef = Rappture.number('input.Ef', units='eV', default=-5.5)
22
23#result = Rappture.table('output.result') \
24#           .column('Energy (eV)',units='eV') \
25#           .column('Fermi-Dirac Factor')
26result = []
Note: See TracBrowser for help on using the repository browser.