source: trunk/examples/app-fermi/2.0/fermi_io.py

Last change on this file was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 1.0 KB
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# ======================================================================
11#  AUTHOR:  Michael McLennan, Purdue University
12#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
13#
14#  See the file "license.terms" for information on usage and
15#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
16# ======================================================================
17
18import Rappture
19
20#T = 300
21#Ef = -5.5
22#result = []
23
24T = Rappture.number('input', id="temperature", units='K', default=300)
25Ef = Rappture.number('input', id="Ef", units='eV', default=-5.5)
26
27#result = Rappture.table('output.result') \
28#           .column('Energy (eV)',units='eV') \
29#           .column('Fermi-Dirac Factor')
30#result = []
Note: See TracBrowser for help on using the repository browser.