www.mooseframework.org
ComputeNodalDampingThread.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 COMPUTENODALDAMPINGTHREAD_H
16 #define COMPUTENODALDAMPINGTHREAD_H
17 
18 // MOOSE includes
19 #include "ThreadedNodeLoop.h"
20 
21 #include "libmesh/node_range.h"
22 
23 // Forward declarations
24 template <typename T>
26 class NodalDamper;
28 
30  : public ThreadedNodeLoop<ConstNodeRange, ConstNodeRange::const_iterator>
31 {
32 public:
34 
35  // Splitting Constructor
36  ComputeNodalDampingThread(ComputeNodalDampingThread & x, Threads::split split);
37 
39 
40  virtual void onNode(ConstNodeRange::const_iterator & node_it) override;
41 
42  void join(const ComputeNodalDampingThread & y);
43 
44  Real damping();
45 
46 protected:
47  Real _damping;
50 };
51 
52 #endif // COMPUTENODALDAMPINGTHREAD_H
A storage container for MooseObjects that inherit from SetupInterface.
void join(const ComputeNodalDampingThread &y)
static PetscErrorCode Vec x
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Nonlinear system to be solved.
ComputeNodalDampingThread(FEProblemBase &feproblem)
virtual void onNode(ConstNodeRange::const_iterator &node_it) override
Called for each node.
Base class for deriving nodal dampers.
Definition: NodalDamper.h:37
const MooseObjectWarehouse< NodalDamper > & _nodal_dampers