sandialabs / seacas

The Sandia Engineering Analysis Code Access System (SEACAS) is a suite of preprocessing, postprocessing, translation, and utility applications supporting finite element analysis software using the Exodus database file format.
Other
131 stars 79 forks source link

EPU: Add capability to select "last 3 steps" #474

Closed gsjaardema closed 1 month ago

gsjaardema commented 1 month ago

Hi Greg,

I am attempting to use the -steps argument in epu, however the output does not seem to contain time steps when doing so.

On the attached files, I am running: epu -auto -steps 1:LAST:1 TransientThermal.e.2.0 It works as expected if LAST is replaced with a numeric value.

It would be useful if possible to allow a specification of something like the last 3 steps with LAST-3:LAST:1

Thanks!

-Reid

gsjaardema commented 1 month ago

This has been added. The steps argument is now:

    -steps <$val> (Specify subset of timesteps to transfer to output file.
        Format is beg:end:step. 1:10:2 --> 1,3,5,7,9
        If the 'beg' or 'end' is < 0, then it is the "-Nth" step...
        -1 is "first last" or last, -3 is "third last"
        To copy just the last 3 steps, do: `-steps -3:-1`
        Enter LAST for last step)

This has been added to epu, cpup, and ejoin.