https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ExodusOptimizationSteady.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11
13
16{
17 // Get the base class parameters
19 params.set<ExecFlagEnum>("execute_on") = EXEC_TIMESTEP_END;
20
21 // Return the InputParameters
22 return params;
23}
24
26 : Exodus(parameters), _steady_exec(dynamic_cast<Steady *>(_app.getExecutioner()))
27{
28 if (!_steady_exec)
30 "ExodusOptimizationSteady output can only be used with the SteadyAndAdjoint or Steady"
31 "executioners to output a per-optimization iteration solution.");
32}
33
34void
47
48Real
registerMooseObject("OptimizationApp", ExodusOptimizationSteady)
const ExecFlagType EXEC_TIMESTEP_END
Class for output data to the ExodusII format.
static InputParameters validParams()
ExodusOptimizationSteady(const InputParameters &parameters)
Class constructor.
void customizeFileOutput() override
Customize file output with steady and adjoint iteration number.
virtual Real getOutputTime() override
Get time for output (i.e.
const Steady *const _steady_exec
For steady (and steady and adjoint) executioner.
unsigned int & _exodus_num
std::unique_ptr< libMesh::ExodusII_IO > _exodus_io_ptr
bool & _exodus_mesh_changed
static InputParameters validParams()
bool _sequence
unsigned int & _file_num
T & set(const std::string &name, bool quiet_mode=false)
void mooseError(Args &&... args) const
virtual unsigned int getIterationNumberOutput() const