www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
ResetDisplacedMeshThread Class Reference

#include <ResetDisplacedMeshThread.h>

Inheritance diagram for ResetDisplacedMeshThread:
[legend]

Public Member Functions

 ResetDisplacedMeshThread (FEProblemBase &fe_problem, DisplacedProblem &displaced_problem)
 
 ResetDisplacedMeshThread (ResetDisplacedMeshThread &x, Threads::split split)
 
void onNode (NodeRange::const_iterator &nd)
 Called for each node. More...
 
void join (const ResetDisplacedMeshThread &)
 
void operator() (const NodeRange &range)
 
virtual void pre ()
 Called before the node range loop. More...
 
virtual void post ()
 Called after the node range loop. More...
 
virtual void postNode (NodeRange::const_iterator &node_it)
 Called after the node assembly is done (including surface assembling) More...
 
virtual void caughtMooseException (MooseException &e)
 Called if a MooseException is caught anywhere during the computation. More...
 
virtual bool keepGoing ()
 Whether or not the loop should continue. More...
 

Protected Attributes

DisplacedProblem_displaced_problem
 
MooseMesh_ref_mesh
 
FEProblemBase_fe_problem
 
THREAD_ID _tid
 

Detailed Description

Definition at line 29 of file ResetDisplacedMeshThread.h.

Constructor & Destructor Documentation

ResetDisplacedMeshThread::ResetDisplacedMeshThread ( FEProblemBase fe_problem,
DisplacedProblem displaced_problem 
)
ResetDisplacedMeshThread::ResetDisplacedMeshThread ( ResetDisplacedMeshThread x,
Threads::split  split 
)

Definition at line 29 of file ResetDisplacedMeshThread.C.

32  _displaced_problem(x._displaced_problem),
33  _ref_mesh(x._ref_mesh)
34 {
35 }
static PetscErrorCode Vec x
DisplacedProblem & _displaced_problem

Member Function Documentation

virtual void ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::caughtMooseException ( MooseException e)
inlinevirtualinherited

Called if a MooseException is caught anywhere during the computation.

The single input parameter taken is a MooseException object.

Definition at line 60 of file ThreadedNodeLoop.h.

61  {
62  std::string what(e.what());
64  };
virtual void setException(const std::string &message)
Set an exception.
virtual const char * what() const
Get out the error message.
void ResetDisplacedMeshThread::join ( const ResetDisplacedMeshThread )

Definition at line 51 of file ResetDisplacedMeshThread.C.

52 {
53 }
virtual bool ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::keepGoing ( )
inlinevirtualinherited

Whether or not the loop should continue.

Returns
true to keep going, false to stop.

Definition at line 71 of file ThreadedNodeLoop.h.

71 { return !_fe_problem.hasException(); }
virtual bool hasException()
Whether or not an exception has occurred.
void ResetDisplacedMeshThread::onNode ( NodeRange::const_iterator &  node_it)
virtual

Called for each node.

Reimplemented from ThreadedNodeLoop< NodeRange, NodeRange::const_iterator >.

Definition at line 38 of file ResetDisplacedMeshThread.C.

39 {
40  Node & displaced_node = **nd;
41 
42  // Get the same node from the reference mesh.
43  Node & reference_node = _ref_mesh.nodeRef(displaced_node.id());
44 
45  // Undisplace the node
46  for (unsigned int i = 0; i < LIBMESH_DIM; ++i)
47  displaced_node(i) = reference_node(i);
48 }
virtual const Node & nodeRef(const dof_id_type i) const
Definition: MooseMesh.C:437
void ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::operator() ( const NodeRange &  range)
inherited
virtual void ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::post ( )
virtualinherited

Called after the node range loop.

virtual void ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::postNode ( NodeRange::const_iterator &  node_it)
virtualinherited

Called after the node assembly is done (including surface assembling)

Parameters
node- active node
virtual void ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::pre ( )
virtualinherited

Called before the node range loop.

Member Data Documentation

DisplacedProblem& ResetDisplacedMeshThread::_displaced_problem
protected

Definition at line 41 of file ResetDisplacedMeshThread.h.

FEProblemBase& ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::_fe_problem
protectedinherited

Definition at line 74 of file ThreadedNodeLoop.h.

Referenced by UpdateDisplacedMeshThread::init().

MooseMesh& ResetDisplacedMeshThread::_ref_mesh
protected

Definition at line 42 of file ResetDisplacedMeshThread.h.

Referenced by onNode().

THREAD_ID ThreadedNodeLoop< NodeRange , NodeRange::const_iterator >::_tid
protectedinherited

Definition at line 75 of file ThreadedNodeLoop.h.


The documentation for this class was generated from the following files: