www.mooseframework.org
MaterialTimeStepPostprocessor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "ElementPostprocessor.h"
13 
19 {
20 public:
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 
30 protected:
33 
36 
39 
42 
47 
49  const int _elements_changed;
50 
52  int _count;
53 
56 
58  const Real _max;
59 
61  unsigned int _qp;
62 };
unsigned int _qp
Current quadrature point.
virtual void threadJoin(const UserObject &y) override
virtual Real getValue() const override
MaterialTimeStepPostprocessor(const InputParameters &parameters)
const std::vector< double > y
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.
int _count
Current number of elements changed.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _max
Maximum allowed value.
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 int _elements_changed
Target number of changed elements used to determine if we need to change the time step...
const InputParameters & parameters() const
const MaterialProperty< Real > *const _changed_property
Material property used to determine if elements have changed.
const Real _elements_changed_threshold
Tolerance to determine if elements have changed.
const MaterialProperty< Real > *const _changed_property_old
const MaterialProperty< Real > *const _matl_time_step
Pointer to the material property containing the time step limit.