www.mooseframework.org
ComputeNodalDampingThread.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 // MOOSE includes
13 #include "ThreadedNodeLoop.h"
14 
15 #include "libmesh/node_range.h"
16 
17 // Forward declarations
18 template <typename T>
20 class NodalDamper;
22 
24  : public ThreadedNodeLoop<ConstNodeRange, ConstNodeRange::const_iterator>
25 {
26 public:
28 
29  // Splitting Constructor
31 
33 
34  virtual void onNode(ConstNodeRange::const_iterator & node_it) override;
35 
36  void join(const ComputeNodalDampingThread & y);
37 
38  Real damping();
39 
40 protected:
41  Real _damping;
44 };
45 
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.
std::vector< std::string > split(const std::string &str, const std::string &delimiter)
Python like split function for strings.
Definition: MooseUtils.C:736
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:32
const MooseObjectWarehouse< NodalDamper > & _nodal_dampers