www.mooseframework.org
NodalArea.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef NODALAREA_H
8 #define NODALAREA_H
9 
10 #include "SideIntegralVariableUserObject.h"
11 
12 class NodalArea : public SideIntegralVariableUserObject
13 {
14 public:
15  NodalArea(const InputParameters & parameters);
16  virtual ~NodalArea();
17 
18  virtual void threadJoin(const UserObject & uo);
19 
20  virtual void initialize();
21  virtual void execute();
22  virtual void finalize();
23 
24  Real nodalArea(const Node * node) const;
25 
26 protected:
27  virtual Real computeQpIntegral();
28 
29  std::map<const Node *, Real> _node_areas;
30 
31  std::map<unsigned, unsigned> _commMap;
32  std::vector<Real> _commVec;
33 
34  const VariablePhiValue & _phi;
35 
36  SystemBase & _system;
37  NumericVector<Number> & _aux_solution;
38 };
39 
40 template <>
41 InputParameters validParams<NodalArea>();
42 
43 #endif
virtual void finalize()
Definition: NodalArea.C:84
std::map< unsigned, unsigned > _commMap
Definition: NodalArea.h:31
virtual void threadJoin(const UserObject &uo)
Definition: NodalArea.C:38
virtual Real computeQpIntegral()
Definition: NodalArea.C:51
NumericVector< Number > & _aux_solution
Definition: NodalArea.h:37
SystemBase & _system
Definition: NodalArea.h:36
InputParameters validParams< NodalArea >()
Definition: NodalArea.C:19
virtual void execute()
Definition: NodalArea.C:63
Real nodalArea(const Node *node) const
Definition: NodalArea.C:106
std::map< const Node *, Real > _node_areas
Definition: NodalArea.h:29
std::vector< Real > _commVec
Definition: NodalArea.h:32
virtual ~NodalArea()
Definition: NodalArea.C:35
NodalArea(const InputParameters &parameters)
Definition: NodalArea.C:27
virtual void initialize()
Definition: NodalArea.C:57
const VariablePhiValue & _phi
Definition: NodalArea.h:34