forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowed post-processors to be used in functor parameters
Closes idaholab#25012
- Loading branch information
1 parent
5490ab9
commit 0a5f62a
Showing
9 changed files
with
276 additions
and
2 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
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
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,85 @@ | ||
[GlobalParams] | ||
execute_on = 'INITIAL' | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 5 | ||
[] | ||
|
||
[AuxVariables] | ||
[testvar] | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[testvar_auxkern] | ||
type = FunctionAux | ||
variable = testvar | ||
function = testvar_fn | ||
execute_on = 'INITIAL' | ||
[] | ||
[] | ||
|
||
[FunctorMaterials] | ||
[testfmat] | ||
type = GenericFunctorMaterial | ||
prop_names = 'testfmprop' | ||
prop_values = 'testfmat_fn' | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[testvar_fn] | ||
type = ParsedFunction | ||
expression = '10*x' | ||
[] | ||
[testfmat_fn] | ||
type = ParsedFunction | ||
expression = '50*x' | ||
[] | ||
[testfn] | ||
type = ParsedFunction | ||
expression = '25*x' | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[testpp] | ||
type = ConstantPostprocessor | ||
value = 2 | ||
[] | ||
|
||
[get_var] | ||
type = ElementIntegralFunctorPostprocessor | ||
functor = testvar | ||
[] | ||
[get_fn] | ||
type = ElementExtremeFunctorValue | ||
functor = testfn | ||
value_type = max | ||
[] | ||
[get_fmprop] | ||
type = ElementExtremeFunctorValue | ||
functor = testfmprop | ||
value_type = max | ||
[] | ||
[get_pp] | ||
type = ElementExtremeFunctorValue | ||
functor = testpp | ||
value_type = max | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[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,2 @@ | ||
time,get_fmprop,get_fn,get_pp,get_var,testpp | ||
0,45,22.5,2,5,2 |
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,11 @@ | ||
[Tests] | ||
issues = '#25012' | ||
design = 'Functors/index.md' | ||
|
||
[test] | ||
type = CSVDiff | ||
input = get_functor.i | ||
csvdiff = get_functor_out.csv | ||
requirement = 'The system shall be able to use a variable, function, functor material property, and a post-processor in a functor parameter.' | ||
[] | ||
[] |