Tracking maximum value for a variable over time #22104
-
Beta Was this translation helpful? Give feedback.
Answered by
hugary1995
Sep 15, 2022
Replies: 1 comment 2 replies
-
|
You could use a combination of auxkernels to achieve this [AuxVariables]
[T_old]
[AuxKernel]
type = ParsedAux
args = 'T'
function = 'T'
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[T_max]
[AuxKernel]
type = ParsedAux
args = 'T T_old'
function = 'if(T>T_old, T, T_old)'
execute_on = 'LINEAR'
[]
[]
[]The trick is in the execute_on flags. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
GiudGiud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You could use a combination of auxkernels to achieve this
The trick is in the execute_on flags.