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.
Ability to scale eigenvector in Eigenvalue executioner to postprocess…
…or value idaholab#14500
- Loading branch information
1 parent
d1fbae5
commit bd1a262
Showing
7 changed files
with
208 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 10 | ||
ymin = 0 | ||
ymax = 10 | ||
elem_type = QUAD4 | ||
nx = 8 | ||
ny = 8 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = FIRST | ||
family = LAGRANGE | ||
# Make sure that system knows this is part of the eigenvector to be scaled | ||
eigen = true | ||
[../] | ||
|
||
[./T] | ||
order = FIRST | ||
family = LAGRANGE | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./power] | ||
order = FIRST | ||
family = LAGRANGE | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = DiffMKernel | ||
variable = u | ||
mat_prop = diffusion | ||
offset = 0.0 | ||
[../] | ||
|
||
[./rhs] | ||
type = CoefReaction | ||
variable = u | ||
coefficient = -1.0 | ||
extra_vector_tags = 'eigen' | ||
[../] | ||
|
||
[./diff_T] | ||
type = Diffusion | ||
variable = T | ||
[../] | ||
[./src_T] | ||
type = CoupledForce | ||
variable = T | ||
v = power | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./power_ak] | ||
type = NormalizationAux | ||
variable = power | ||
source_variable = u | ||
normalization = unorm | ||
# this coefficient will affect the eigenvalue. | ||
normal_factor = 10 | ||
execute_on = linear | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./homogeneous] | ||
type = DirichletBC | ||
variable = u | ||
boundary = '0 1 2 3' | ||
value = 0 | ||
[../] | ||
|
||
[./eigenU] | ||
type = EigenDirichletBC | ||
variable = u | ||
boundary = '0 1 2 3' | ||
[../] | ||
|
||
[./homogeneousT] | ||
type = DirichletBC | ||
variable = T | ||
boundary = '0 1 2 3' | ||
value = 0 | ||
[../] | ||
|
||
[./eigenT] | ||
type = EigenDirichletBC | ||
variable = T | ||
boundary = '0 1 2 3' | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./dc] | ||
type = VarCouplingMaterial | ||
var = T | ||
block = 0 | ||
base = 1.0 | ||
coef = 1.0 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Eigenvalue | ||
solve_type = MF_MONOLITH_NEWTON | ||
eigen_problem_type = GEN_NON_HERMITIAN | ||
|
||
# Postprocessor value to normalize | ||
normalization = unorm | ||
# Value to set normilization to | ||
normal_factor = 17 | ||
[] | ||
|
||
[Postprocessors] | ||
[./unorm] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = u | ||
execute_on = linear | ||
[../] | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
execute_on = 'timestep_end' | ||
[] |
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