https://mooseframework.inl.gov
Loading...
Searching...
No Matches
AnalysisStepUserObject.h
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
10#pragma once
11
12#include "GeneralUserObject.h"
13
18{
19public:
21
23
24 // Get start time
25 Real getStartTime(const unsigned int & step) const;
26 // Get end time
27 Real getEndTime(const unsigned int & step) const;
28 // Get step given current time
29 unsigned int getStep(const Real & time) const;
30
31protected:
32 void initialize() override;
33 void execute() override;
34 void finalize() override;
35
36 // Step start times
37 std::vector<Real> _times;
38
39 // Step durations that define loading steps
40 std::vector<Real> _step_durations;
41
42 // Total time interval that's divided into equally sized steps
44
45 // Number of steps to divide the total_time_interval
46 unsigned int _number_steps;
47};
User object that provides analysis steps given user input.
static InputParameters validParams()
unsigned int getStep(const Real &time) const
std::vector< Real > _step_durations
Real getEndTime(const unsigned int &step) const
Real getStartTime(const unsigned int &step) const
const InputParameters & parameters() const