We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d9bc1b commit 0494d05Copy full SHA for 0494d05
unsorted/test_gsolve.py
@@ -1,4 +1,6 @@
1
import moose
2
+import sys
3
+
4
compt = moose.CubeMesh('/compt')
5
compt.volume = 1e-20
6
@@ -20,8 +22,9 @@
20
22
# This does not.
21
23
#func = moose.Function('/func')
24
-func.expr = '100*(1 + sin(0.1*t))'
25
+func.expr = '100*(1 + sin(0.1*t) + cos(x0) )'
26
func.mode = 1
27
+moose.connect( a, 'nOut', func.x[0], 'input' )
28
moose.connect(func, 'valueOut', a, 'setN')
29
30
reac = moose.Reac('/compt/reac')
@@ -43,6 +46,8 @@
43
46
44
47
# plots
45
48
import pylab
-pylab.plot(atab.vector)
-pylab.plot(btab.vector)
49
+pylab.plot(atab.vector, label = 'a')
50
+pylab.plot(btab.vector, label = 'b' )
51
+pylab.legend( framealpha=0.4)
52
+pylab.savefig( '%s.png' % sys.argv[0] )
53
pylab.show()
0 commit comments