Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GiudGiud
Comment options

@hugary1995
Comment options

Answer selected by GiudGiud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants