Skip to content

Commit

Permalink
Add test (idaholab#14220)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Oct 29, 2019
1 parent ab7e1b9 commit 82f0a0d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[Mesh]
type = GeneratedMesh
dim = 1
[]

[Variables]
[./dummy]
[../]
[]

[Problem]
solve = false
kernel_coverage_check = false
[]

[Functions]
[./ifa]
type = CoarsendPiecewiseLinear
data_file = IFA_562_new_conv_kW_power.csv
format = columns
epsilon = 0.15
x_scale = 1e-5
[../]
[]

[VectorPostprocessors]
[./F]
type = PiecewiseFunctionTabulate
function = ifa
execute_on = INITIAL
outputs = vpp
[../]
[]

[Executioner]
type = Transient
num_steps = 1
[]

[Outputs]
[./vpp]
type = CSV
execute_vector_postprocessors_on = INITIAL
[../]
[]
10 changes: 10 additions & 0 deletions test/tests/functions/coarsened_piecewise_linear/tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Tests]
issues = '#2272'
design = 'source/functions/CoarsenedPiecewiseLinear.md'
[./test]
type = 'CSVDiff'
input = 'coarsened_piecewise_linear.i'
exodiff = 'coarsened_piecewise_linear_out.csv'
requirement = "The Function system shall include an object that creates a function based on x- and y-data pairs and returns an explicit value from the supplied data when queried (i.e., linear interpolation is not performed)."
[../]
[]

0 comments on commit 82f0a0d

Please sign in to comment.