www.mooseframework.org
INSExplicitTimestepSelector.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 
15 
16 template <>
18 
23 class INSExplicitTimestepSelector : public ElementPostprocessor
24 {
25 public:
26  INSExplicitTimestepSelector(const InputParameters & parameters);
28 
29  virtual void initialize();
30  virtual void execute();
31  virtual Real getValue();
32  virtual void threadJoin(const UserObject & uo);
33 
34 protected:
36  Real _value;
37 
39  const VariableValue & _vel_mag;
40 
46  Real _beta;
47 
50  const MaterialProperty<Real> & _mu;
51  const MaterialProperty<Real> & _rho;
52 };
53 
INSExplicitTimestepSelector::execute
virtual void execute()
Definition: INSExplicitTimestepSelector.C:61
INSExplicitTimestepSelector::~INSExplicitTimestepSelector
virtual ~INSExplicitTimestepSelector()
Definition: INSExplicitTimestepSelector.C:52
INSExplicitTimestepSelector::_rho
const MaterialProperty< Real > & _rho
Definition: INSExplicitTimestepSelector.h:51
INSExplicitTimestepSelector::_value
Real _value
The value of dt (NOTE: _dt member variable is already defined)
Definition: INSExplicitTimestepSelector.h:36
INSExplicitTimestepSelector::_mu
const MaterialProperty< Real > & _mu
Material properties: the explicit time scheme limit for the viscous problem also depends on the kinem...
Definition: INSExplicitTimestepSelector.h:50
INSExplicitTimestepSelector::_beta
Real _beta
We can compute maximum stable timesteps based on the linearized theory, but even those timesteps are ...
Definition: INSExplicitTimestepSelector.h:46
INSExplicitTimestepSelector::INSExplicitTimestepSelector
INSExplicitTimestepSelector(const InputParameters &parameters)
Definition: INSExplicitTimestepSelector.C:39
INSExplicitTimestepSelector::getValue
virtual Real getValue()
Definition: INSExplicitTimestepSelector.C:98
INSExplicitTimestepSelector::initialize
virtual void initialize()
Definition: INSExplicitTimestepSelector.C:55
INSExplicitTimestepSelector
Postprocessor that computes the minimum value of h_min/|u|, where |u| is coupled in as an aux variabl...
Definition: INSExplicitTimestepSelector.h:23
validParams< INSExplicitTimestepSelector >
InputParameters validParams< INSExplicitTimestepSelector >()
Definition: INSExplicitTimestepSelector.C:18
INSExplicitTimestepSelector::threadJoin
virtual void threadJoin(const UserObject &uo)
Definition: INSExplicitTimestepSelector.C:105
INSExplicitTimestepSelector::_vel_mag
const VariableValue & _vel_mag
Velocity magnitude. Hint: Use VectorMagnitudeAux in Moose for this.
Definition: INSExplicitTimestepSelector.h:39