-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
158 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ReciprocalIntegral | ||
|
||
!syntax description /Postprocessors/ReciprocalIntegral | ||
|
||
This postprocesso should act on a reciprocal space tensor and will extract the magnitude of the zero k vector, the constant zero frequency contribution. | ||
The result should be identical to an [integral](TensorIntegralPostprocessor.md) of the real space representatiopn of the tensor. | ||
|
||
## Example Input File Syntax | ||
|
||
!! Describe and include an example of how to use the ReciprocalIntegral object. | ||
|
||
!syntax parameters /Postprocessors/ReciprocalIntegral | ||
|
||
!syntax inputs /Postprocessors/ReciprocalIntegral | ||
|
||
!syntax children /Postprocessors/ReciprocalIntegral |
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
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,2 @@ | ||
time,avg_c | ||
0,0.8 |
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,2 @@ | ||
time,max_c,min_c | ||
0,3.2375,-1.6375 |
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,2 @@ | ||
time,int_c | ||
0,4.8 |
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,2 @@ | ||
time,int_c_bar | ||
0,4.8 |
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,75 @@ | ||
[Domain] | ||
dim = 2 | ||
nx = 40 | ||
ny = 40 | ||
xmax = 2 | ||
ymax = 3 | ||
mesh_mode = DUMMY | ||
device_names = cpu | ||
[] | ||
|
||
[TensorBuffers] | ||
[c] | ||
[] | ||
[c_bar] | ||
[] | ||
[] | ||
|
||
[TensorComputes] | ||
[Initialize] | ||
[c] | ||
type = ParsedCompute | ||
buffer = c | ||
extra_symbols = true | ||
expression = -x+y+0.3 | ||
[] | ||
[c_bar] | ||
type = ForwardFFT | ||
buffer = c_bar | ||
input = c | ||
[] | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[min_c] | ||
type = TensorExtremeValuePostprocessor | ||
buffer = c | ||
value_type = MIN | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[max_c] | ||
type = TensorExtremeValuePostprocessor | ||
buffer = c | ||
value_type = MAX | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[avg_c] | ||
type = TensorAveragePostprocessor | ||
buffer = c | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[int_c] | ||
type = TensorIntegralPostprocessor | ||
buffer = c | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[int_c_bar] | ||
type = ReciprocalIntegral | ||
buffer = c_bar | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[] | ||
|
||
[Problem] | ||
type = TensorProblem | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 0 | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
[] |
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,40 @@ | ||
[Tests] | ||
[extreme_value] | ||
type = CSVDiff | ||
input = postprocessors.i | ||
csvdiff = extreme_value.csv | ||
cli_args = 'Outputs/file_base=extreme_value Postprocessors/active="min_c max_c"' | ||
requirement = 'The system shall be able to determine the minimum and maximum item value in a tensor.' | ||
issues = '#6' | ||
design = 'TensorExtremeValuePostprocessor.md' | ||
[] | ||
|
||
[average] | ||
type = CSVDiff | ||
input = postprocessors.i | ||
csvdiff = average.csv | ||
cli_args = 'Outputs/file_base=average Postprocessors/active="avg_c"' | ||
requirement = 'The system shall be able to determine the average value in a tensor.' | ||
issues = '#6' | ||
design = 'TensorAveragePostprocessor.md' | ||
[] | ||
|
||
[integral] | ||
type = CSVDiff | ||
input = postprocessors.i | ||
csvdiff = integral.csv | ||
cli_args = 'Outputs/file_base=integral Postprocessors/active="int_c"' | ||
requirement = 'The system shall be able to compute the integral over a simulation cell tensor.' | ||
issues = '#6' | ||
design = 'TensorIntegralPostprocessor.md' | ||
[] | ||
[reciprocal_integral] | ||
type = CSVDiff | ||
input = postprocessors.i | ||
csvdiff = reciprocal_integral.csv | ||
cli_args = 'Outputs/file_base=reciprocal_integral Postprocessors/active="int_c_bar"' | ||
requirement = 'The system shall be able to compute the integral over a simulation cell tensor using the zero k vector in reciprocal space.' | ||
issues = '#6' | ||
design = 'ReciprocalIntegral.md' | ||
[] | ||
[] |