Skip to content

Commit

Permalink
added NumElems PPS to coarsening example, added python script to plot…
Browse files Browse the repository at this point in the history
… results, closes idaholab#11
  • Loading branch information
jessecarterMOOSE committed Jul 23, 2016
1 parent 2e1d78b commit 949a8cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/2d_with_coarsening/2d_with_coarsening.i
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
type = ElementIntegralVariablePostprocessor
variable = u
[../]
[./num_elems]
type = NumElems
[../]
[]

[Outputs]
Expand Down
10 changes: 10 additions & 0 deletions examples/2d_with_coarsening/plot_num_elements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import numpy as np
import matplotlib.pyplot as plt

data=np.loadtxt('2d_with_coarsening_out.csv', delimiter=',', skiprows=1)

plt.plot(data[:,0], data[:,3], 'r-o')
plt.xlabel('time')
plt.ylabel('number of elements')

plt.show()

0 comments on commit 949a8cc

Please sign in to comment.