16 #include "libmesh/threads.h" 23 _nodal_dampers(_nl.getNodalDamperWarehouse())
33 _nodal_dampers(x._nodal_dampers)
42 const Node * node = *node_it;
45 std::set<MooseVariable *> damped_vars;
48 for (
const auto & damper : ndampers)
49 damped_vars.insert(damper->getVariable());
54 for (
const auto & obj : objects)
56 Real cur_damping = obj->computeDamping();
57 obj->checkMinDamping(cur_damping);
85 console <<
"[DBG] Executing nodal dampers on " << execute_on << std::endl;
86 console <<
"[DBG] Ordering of the dampers on the blocks they are defined on:" << std::endl;
88 console << damper_wh.activeObjectsToFormattedString() << std::endl;
void reinitIncrementAtNodeForDampers(THREAD_ID tid, const std::set< MooseVariable *> &damped_vars)
Compute the incremental change in variables at nodes for dampers.
virtual void reinitNode(const Node *node, const THREAD_ID tid) override
const ExecFlagType & getCurrentExecuteOnFlag() const
Return/set the current execution flag.
void join(const ComputeNodalDampingThread &y)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
FEProblemBase & _fe_problem
Nonlinear system to be solved.
bool shouldPrintExecution(const THREAD_ID tid) const
Check whether the problem should output execution orders at this time.
const std::vector< std::shared_ptr< T > > & getActiveObjects(THREAD_ID tid=0) const
Retrieve complete vector to the active all/block/boundary restricted objects for a given thread...
virtual void onNode(ConstNodeRange::const_iterator &node_it) override
Called for each node.
StoredRange< MeshBase::const_node_iterator, const Node *> ConstNodeRange
NonlinearSystemBase & _nl
const MooseObjectWarehouse< NodalDamper > & _nodal_dampers
const ConsoleStream & console() const
Return console handle.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ComputeNodalDampingThread(FEProblemBase &feproblem, NonlinearSystemBase &nl)
const MooseObjectWarehouse< NodalDamper > & getNodalDamperWarehouse() const
void printGeneralExecutionInformation() const override
Print information about the loop, mostly order of execution of objects.
virtual ~ComputeNodalDampingThread()