Last change
on this file since 55 was
55,
checked in by dkearney, 19 years ago
|
python/Rappture/number.py
- added ability for number to choose between default and current tags
- changed structure of init so the basePath and the id are separate
arguments to keep compatibility with how the driver program expects a
number xml structure
python/Rappture/interface.py
- included a more complete xml structure including tool and command i
structures, for writing the xml to the file when the -g option is used
- adjusted the finish() function to utilize the new Rappture.result()
function
examples/app-fermi/fermi_io.py
- adjusted the Rappture.number() fxn call to split the path and id.
- commented out the result = [] because we now write the result to xml
examples/app-fermi/fermi.py
- added output section with curve xml details for writing to xml
- directly write the results to xml instead of to a result[] array
gui/apps/rerun
- added script to re-visualize output from previously created run.xml file
|
File size:
927 bytes
|
Rev | Line | |
---|
[10] | 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 | |
---|
| 14 | import Rappture |
---|
| 15 | |
---|
| 16 | #T = 300 |
---|
| 17 | #Ef = -5.5 |
---|
| 18 | #result = [] |
---|
| 19 | |
---|
[55] | 20 | T = Rappture.number('input', id="temperature", units='K', default=300) |
---|
| 21 | Ef = Rappture.number('input', id="Ef", units='eV', default=-5.5) |
---|
[10] | 22 | |
---|
| 23 | #result = Rappture.table('output.result') \ |
---|
| 24 | # .column('Energy (eV)',units='eV') \ |
---|
| 25 | # .column('Fermi-Dirac Factor') |
---|
[55] | 26 | #result = [] |
---|
Note: See
TracBrowser
for help on using the repository browser.