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.
Add test for capturing a component of a vector matprop in an auxvaria…
…ble, refs idaholab#19382
- Loading branch information
Showing
5 changed files
with
137 additions
and
44 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
85 changes: 85 additions & 0 deletions
85
test/tests/materials/functor_properties/functor-vector-mat-props.i
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 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 4 | ||
ny = 4 | ||
xmax = 2 | ||
ymax = 1 | ||
[] | ||
[subdomain1] | ||
input = gen | ||
type = SubdomainBoundingBoxGenerator | ||
bottom_left = '1.0 0 0' | ||
block_id = 1 | ||
top_right = '2.0 1.0 0' | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[mat_x] | ||
[] | ||
[mat_y] | ||
[] | ||
[mat_z] | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[matprop_to_aux_x] | ||
type = FunctorADVectorMatPropElementalAux | ||
variable = mat_x | ||
mat_prop = 'matprop' | ||
component = '0' | ||
[] | ||
[matprop_to_aux_y] | ||
type = FunctorADVectorMatPropElementalAux | ||
variable = mat_y | ||
mat_prop = 'matprop' | ||
component = '1' | ||
[] | ||
[matprop_to_aux_z] | ||
type = FunctorADVectorMatPropElementalAux | ||
variable = mat_z | ||
mat_prop = 'matprop' | ||
component = '2' | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[block0] | ||
type = ADGenericConstantVectorFunctorMaterial | ||
block = '0' | ||
prop_names = 'matprop' | ||
prop_values = '4 2 1' | ||
[] | ||
[block1] | ||
type = ADGenericFunctionVectorFunctorMaterial | ||
block = '1' | ||
prop_names = 'matprop' | ||
prop_values = 'f_x f_x f_z' | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[f_x] | ||
type = ParsedFunction | ||
value = 'x + 2 * y' | ||
[] | ||
[f_z] | ||
type = ParsedFunction | ||
value = 'x * y - 2' | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Outputs] | ||
exodus = 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
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