www.mooseframework.org
MooseVariableScalar.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 MOOSEVARIABLESCALAR_H
16 #define MOOSEVARIABLESCALAR_H
17 
18 #include "MooseVariableBase.h"
19 
20 // libMesh forward declarations
21 namespace libMesh
22 {
23 template <typename T>
24 class NumericVector;
25 }
26 
31 {
32 public:
33  MooseVariableScalar(unsigned int var_num,
34  const FEType & fe_type,
35  SystemBase & sys,
36  Assembly & assembly,
37  Moose::VarKindType var_kind);
38  virtual ~MooseVariableScalar();
39 
40  void reinit();
41 
42  virtual bool isNodal() const override;
43 
44  //
45  VariableValue & sln() { return _u; }
46  VariableValue & slnOld() { return _u_old; }
47  VariableValue & slnOlder() { return _u_older; }
48 
49  VariableValue & uDot() { return _u_dot; }
50  VariableValue & duDotDu() { return _du_dot_du; }
51 
55  void setValue(unsigned int i, Number value);
56 
60  void setValues(Number value);
61 
62  void insert(NumericVector<Number> & soln);
63 
64 protected:
71 
74 };
75 
76 #endif /* MOOSEVARIABLESCALAR_H */
VariableValue & sln()
Keeps track of stuff related to assembling.
Definition: Assembly.h:63
VariableValue _u
The value of scalar variable.
VariableValue _u_older
The older value of scalar variable.
VariableValue & uDot()
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
Base class for a system (of equations)
Definition: SystemBase.h:91
VariableValue & duDotDu()
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:156
Class for scalar variables (they are different).
VariableValue & slnOlder()
VariableValue & slnOld()
VariableValue _u_old
The old value of scalar variable.