www.mooseframework.org
BoundsAux.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef BOUNDSAUX_H
16 #define BOUNDSAUX_H
17 
18 #include "AuxKernel.h"
19 
20 // Forward Declarations
21 class BoundsAux;
22 
23 template <>
25 
34 class BoundsAux : public AuxKernel
35 {
36 public:
41 
42 protected:
43  virtual Real computeValue() override;
44 
45  NumericVector<Number> & _upper_vector;
46  NumericVector<Number> & _lower_vector;
47  unsigned int _bounded_variable_id;
50  Real _upper;
51  Real _lower;
52 };
53 
54 #endif // BOUNDSAUX_H
Fills in the "bounds vectors" to provide an upper and lower bound for the variable that is coupled in...
Definition: BoundsAux.h:34
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeValue() override
Definition: BoundsAux.C:46
Real _lower
Definition: BoundsAux.h:51
BoundsAux(const InputParameters &parameters)
Factory constructor.
Definition: BoundsAux.C:29
bool _lower_valid
Definition: BoundsAux.h:49
InputParameters validParams< BoundsAux >()
Definition: BoundsAux.C:20
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:51
NumericVector< Number > & _lower_vector
Definition: BoundsAux.h:46
bool _upper_valid
Definition: BoundsAux.h:48
Real _upper
Definition: BoundsAux.h:50
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
unsigned int _bounded_variable_id
Definition: BoundsAux.h:47
NumericVector< Number > & _upper_vector
Definition: BoundsAux.h:45