(1 comment)

We have added the ability to retrieve the "latest" value in several places in MOOSE. We use the adjective "latest" to indicate that these values come from the most recent file written rather than a solution file with the highest serial number. This situation might occur if you are rerunning the simulation in the same directory over and over without cleaning up in-between runs. In this case you may have an older simulation that ran longer than the most recent simulation. So "latest" means "most recent".

This blog post is here to summarize these capabilities


Latest Variable Values from a Previous Simulation

If you just want to grab the values from the "latest" timestep in a previous simulation and you don't know the specific timestep number.

[Variables]
  [./u]
    type = LAGRANGE
    order = FIRST
    initial_from_file_var = u
    initial_from_file_timestep = 'LATEST'
  [../]
[]

Latest Restart File Available

If you want to create a "restart" simulation using the "latest" solution from a previous simulation.

[Problem]
  restart_file_base = 'my_simulation_cp/LATEST'
[]

Retrieving the Latest Solution through a SolutionUserObject

If you want to use SolutionUserObject to load a solution from the "latest" solution from a previous simulation.

[UserObjects]
  [./soln]
    type = SolutionUserObject
    mesh = my_mesh.e
    system_variables = vars
    timestep = 'LATEST'
  [../]
[]
Currently unrated

Comments

Cheap Pandora Sale 3 weeks, 2 days ago

Beautifully simple, these understated bracelets will look great with everything. A single, chunky glass bead sits on the coated steel bangle, cheap pandora and a number of other natural supplies, We're incredibly excited to offer you a huge selection of sea glass beads for sale.

Link | Reply
Currently unrated

New Comment

required

required (not published)

optional

R&D 100

Recent Blog Posts

Using our new clang-format Style

6 months, 2 weeks ago

Steady State Algorithm Change

1 year, 3 months ago

Making an App inherit from an App

1 year, 4 months ago

Changing a published API (Deprecation)

1 year, 4 months ago

DiscreteMaterial Objects

1 year, 6 months ago

Recent Posts

Archive

2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom