Download presentation
Presentation is loading. Please wait.
Published byIra Norris Modified over 9 years ago
1
1 More Rappture Objects Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under Creative Commons See license online: by-nc-sa/3.0
2
2 Minority carrier lifetimes For electrons 1e-6 For holes 1e-6 Minority carrier lifetimes For electrons 1e-6 For holes 1e-6 Group related elements
3
3 Models …input elements for this tab… Ambient Temperature K 300K Models …input elements for this tab… Ambient Temperature K 300K Group of groups tabs
4
4 Enable/disable to remove clutter Recombination Model off Minority Carrier Lifetime for electrons input.boolean(recomb) 1e-6 … Recombination Model off Minority Carrier Lifetime for electrons input.boolean(recomb) 1e-6 … Disable inputs when they’re not needed Enabled only when Recombination Model is “yes”
5
5 Enable/disable to remove clutter Drift-Diffusion Options input.choice(model) == "dd“ … Boltzmann Transport Equation Options input.choice(model) == "bte“ … Drift-Diffusion Options input.choice(model) == "dd“ … Boltzmann Transport Equation Options input.choice(model) == "bte“ … Disable a group to hide all of the controls within it Show this panel when Model is set to “dd” (Drift-Diffusion) Show this panel when Model is set to “bte” (Boltzmann Transport Eqn)
6
6 Enable/disable based on numbers Quantum Mechanical Options Tight-binding Energy eV 3.12eV High-energy lifetime input.group(negf).number(tbe):eV >= 3 ns 10ns … Quantum Mechanical Options Tight-binding Energy eV 3.12eV High-energy lifetime input.group(negf).number(tbe):eV >= 3 ns 10ns … Enabled only when Tight-binding energy >= 3eV XML way of saying >= Convert value to eV
7
7 First Page First input one Second Page Second input two First Page First input one Second Page Second input two Multiple pages of inputs, needed only for complex tools
8
8 Focus on side of tool.xml executabletool.xml Rappture GUI Produces the user interface automatically! This is my tool. … This is my tool. … description of tool, including inputs and outputs
9
9 ****** ADEPT/F - 2.1 input file: adp20638 Sat Jul 30 19:39:36 2005 ****** 1 *title input generated by adeptwr 2 mesh nx=250 xres=0.5 3 misc tempk=300 … ****** ADEPT/F - 2.1 input file: adp20638 Sat Jul 30 19:39:36 2005 ****** 1 *title input generated by adeptwr 2 mesh nx=250 xres=0.5 3 misc tempk=300 … Standard output from simulator Treated as unimportant (low level) output, and therefore listed last Controls for search through text or, in Python… import Rappture import sys driver = Rappture.library(sys.argv[1]) … driver.put('output.log', stdout) import Rappture import sys driver = Rappture.library(sys.argv[1]) … driver.put('output.log', stdout)
10
10 import Rappture import sys driver = Rappture.library(sys.argv[1]) … path = ‘output.string(traj)’ driver.put(path+’.about.label’, ‘Trajectory Data’) driver.put(path+’.about.description’, ‘Data in pdb format’) driver.put(path+’.current’, tdata) import Rappture import sys driver = Rappture.library(sys.argv[1]) … path = ‘output.string(traj)’ driver.put(path+’.about.label’, ‘Trajectory Data’) driver.put(path+’.about.description’, ‘Data in pdb format’) driver.put(path+’.current’, tdata) Other output files from simulator—including binary files Controls for search through text Trajectory Data Data in pdb format REMARK GENERATED BY TRJCONV TITLE Carbon NT in water t= 0.00000 … Trajectory Data Data in pdb format REMARK GENERATED BY TRJCONV TITLE Carbon NT in water t= 0.00000 …
11
11 import Rappture import sys driver = Rappture.library(sys.argv[1]) … path = ‘output.curve(single)’ driver.put(path+’.about.label’, ‘Single curve’) driver.put(path+’.xaxis.label’, ‘Time’) driver.put(path+’.xaxis.units’, ‘s’) driver.put(path+’.yaxis.label’, ‘Voltage’) driver.put(path+’.yaxis.units’, ‘V’) data = """ 0 1 2 3 4 """ driver.put(path+’.component.xy’, data) import Rappture import sys driver = Rappture.library(sys.argv[1]) … path = ‘output.curve(single)’ driver.put(path+’.about.label’, ‘Single curve’) driver.put(path+’.xaxis.label’, ‘Time’) driver.put(path+’.xaxis.units’, ‘s’) driver.put(path+’.yaxis.label’, ‘Voltage’) driver.put(path+’.yaxis.units’, ‘V’) data = """ 0 1 2 3 4 """ driver.put(path+’.component.xy’, data) X-Y plots
12
12 Tour the zoo Zoo of Examples Complete catalog of data objects onlineComplete catalog See screen shots Copy xml code
13
13 Exercise #4: More controls for Spirograph 1) Create two groups of controls: 2) When comments are enabled, create a output with comments
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.