https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MaterialTimeStepPostprocessor.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
13
19{
20public:
22
24 virtual void initialize() override;
25 virtual void execute() override;
26 virtual Real getValue() const override;
27 virtual void finalize() override;
28 virtual void threadJoin(const UserObject & y) override;
29
30protected:
33
36
39
42
47
50
52 int _count;
53
56
58 const Real _max;
59
61 unsigned int _qp;
62};
const std::vector< double > y
This postporocessor calculates an estimated timestep size that limits an auxiliary variable to below ...
const bool _use_elements_changed
Flag to limit the time step based on the number of elements changed.
const MaterialProperty< Real > *const _changed_property
Material property used to determine if elements have changed.
const Real _max
Maximum allowed value.
const int _elements_changed
Target number of changed elements used to determine if we need to change the time step.
const MaterialProperty< Real > *const _matl_time_step
Pointer to the material property containing the time step limit.
unsigned int _qp
Current quadrature point.
int _count
Current number of elements changed.
virtual void threadJoin(const UserObject &y) override
Real _matl_value
Current time step limit from the material properties.
const bool _use_material_timestep_limit
Flag to find the time step limit from material properties.
const MaterialProperty< Real > *const _changed_property_old
const Real _elements_changed_threshold
Tolerance to determine if elements have changed.
const InputParameters & parameters() const