forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass gradients though in FunctionIC. Add tests. (idaholab#3312)
- Loading branch information
Showing
7 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Test the gradient calculation in spline function and the gradient pass-through in FunctionIC | ||
# | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 3 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 10 | ||
ny = 1 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = THIRD | ||
family = HERMITE | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./spline_function] | ||
type = SplineFunction | ||
x = '0 1 2 3' | ||
y = '0 1 0 1' | ||
[../] | ||
[] | ||
|
||
[ICs] | ||
[./u_ic] | ||
type = FunctionIC | ||
variable = 'u' | ||
function = spline_function | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Outputs] | ||
output_initial = true | ||
file_base = spline | ||
[./OverSampling] | ||
type = Exodus | ||
refinements = 3 | ||
oversample = true | ||
[../] | ||
[./console] | ||
type = Console | ||
perf_log = false | ||
[../] | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters