Skip to content

Commit

Permalink
Merge pull request idaholab#12 from jessecarterMOOSE/add_numelems_PPS…
Browse files Browse the repository at this point in the history
…_issue_11

added NumElems PPS to coarsening example, added python script
  • Loading branch information
jessecarterMOOSE authored Jul 23, 2016
2 parents 2e1d78b + 949a8cc commit e6cfbf9
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 e6cfbf9

Please sign in to comment.