#include <ComputeNodalDampingThread.h>
Definition at line 23 of file ComputeNodalDampingThread.h.
◆ ComputeNodalDampingThread() [1/2]
Definition at line 18 of file ComputeNodalDampingThread.C.
NonlinearSystemBase & _nl
const MooseObjectWarehouse< NodalDamper > & _nodal_dampers
const MooseObjectWarehouse< NodalDamper > & getNodalDamperWarehouse() const
◆ ComputeNodalDampingThread() [2/2]
◆ ~ComputeNodalDampingThread()
ComputeNodalDampingThread::~ComputeNodalDampingThread |
( |
| ) |
|
|
virtual |
◆ caughtMooseException()
Called if a MooseException is caught anywhere during the computation.
The single input parameter taken is a MooseException object.
Definition at line 56 of file ThreadedNodeLoop.h.
60 std::string what(e.
what());
virtual const char * what() const
Get out the error message.
virtual void setException(const std::string &message)
Set an exception, which is stored at this point by toggling a member variable in this class...
FEProblemBase & _fe_problem
static Threads::spin_mutex threaded_node_mutex
◆ damping()
Real ComputeNodalDampingThread::damping |
( |
| ) |
|
◆ join()
◆ keepGoing()
Whether or not the loop should continue.
- Returns
- true to keep going, false to stop.
Definition at line 69 of file ThreadedNodeLoop.h.
FEProblemBase & _fe_problem
virtual bool hasException()
Whether or not an exception has occurred.
◆ onNode() [1/2]
Definition at line 40 of file ComputeNodalDampingThread.C.
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);
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
FEProblemBase & _fe_problem
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...
NonlinearSystemBase & _nl
const MooseObjectWarehouse< NodalDamper > & _nodal_dampers
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseObjectWarehouse< NodalDamper > & getNodalDamperWarehouse() const
◆ onNode() [2/2]
◆ operator()()
Definition at line 94 of file ThreadedNodeLoop.h.
104 for (IteratorType nd = range.
begin(); nd != range.
end(); ++nd)
virtual void printGeneralExecutionInformation() const
Print information about the loop, mostly order of execution of objects.
virtual void caughtMooseException(MooseException &e)
Called if a MooseException is caught anywhere during the computation.
virtual bool keepGoing()
Whether or not the loop should continue.
const_iterator end() const
Provides a way for users to bail out of the current solve.
virtual void pre()
Called before the node range loop.
const_iterator begin() const
virtual void post()
Called after the node range loop.
virtual void postNode(ConstNodeRange::const_iterator &node_it)
Called after the node assembly is done (including surface assembling)
virtual void onNode(ConstNodeRange::const_iterator &node_it)
Called for each node.
◆ post()
◆ postNode()
Called after the node assembly is done (including surface assembling)
- Parameters
-
Definition at line 142 of file ThreadedNodeLoop.h.
◆ pre()
◆ printGeneralExecutionInformation()
void ComputeNodalDampingThread::printGeneralExecutionInformation |
( |
| ) |
const |
|
overrideprotectedvirtual |
Print information about the loop, mostly order of execution of objects.
Reimplemented from ThreadedNodeLoop< ConstNodeRange, ConstNodeRange::const_iterator >.
Definition at line 77 of file ComputeNodalDampingThread.C.
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;
const ExecFlagType & getCurrentExecuteOnFlag() const
Return/set the current execution flag.
FEProblemBase & _fe_problem
bool shouldPrintExecution(const THREAD_ID tid) const
Check whether the problem should output execution orders at this time.
NonlinearSystemBase & _nl
const ConsoleStream & console() const
Return console handle.
const MooseObjectWarehouse< NodalDamper > & getNodalDamperWarehouse() const
◆ _damping
Real ComputeNodalDampingThread::_damping |
|
protected |
◆ _fe_problem
◆ _nl
◆ _nodal_dampers
◆ _tid
Definition at line 73 of file ThreadedNodeLoop.h.
Referenced by ComputeNodalUserObjectsThread::onNode(), onNode(), ComputeNodalKernelsThread::onNode(), ComputeNodalKernelJacobiansThread::onNode(), ComputeNodalKernelsThread::pre(), ComputeNodalKernelJacobiansThread::pre(), ComputeNodalUserObjectsThread::printGeneralExecutionInformation(), ComputeNodalKernelsThread::printGeneralExecutionInformation(), printGeneralExecutionInformation(), ComputeNodalKernelJacobiansThread::printGeneralExecutionInformation(), and ComputeNodalUserObjectsThread::subdomainChanged().
The documentation for this class was generated from the following files: