Base class for a MooseObject used in ray tracing. More...
#include <RayTracingObject.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| RayTracingObject (const InputParameters ¶ms) | |
| const std::set< std::string > & | getRequestedItems () override |
| const std::set< std::string > & | getSuppliedItems () override |
| RayTracingStudy & | study () |
| The RayTracingStudy associated with this object. More... | |
| const RayTracingStudy & | study () const |
| The RayTracingStudy associated with this object. More... | |
| template<typename T > | |
| T & | getStudy () |
| Casts the RayTracingStudy associated with this object to a study of type T with a meaningful error message if it fails. More... | |
| virtual void | preExecuteStudy () |
| Insertion point called immediately before executing the RayTracingStudy. More... | |
| virtual void | postExecuteStudy () |
| Insertion point called immediately after executing the RayTracingStudy. More... | |
| virtual bool | enabled () const |
| std::shared_ptr< MooseObject > | getSharedPtr () |
| std::shared_ptr< const MooseObject > | getSharedPtr () const |
| bool | isKokkosObject (IsKokkosObjectKey &&) const |
| MooseApp & | getMooseApp () const |
| const std::string & | type () const |
| const std::string & | name () const |
| std::string | typeAndName () const |
| MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
| MooseObjectName | uniqueName () const |
| const InputParameters & | parameters () const |
| const hit::Node * | getHitNode () const |
| bool | hasBase () const |
| const std::string & | getBase () const |
| const T & | getParam (const std::string &name) const |
| std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
| const T * | queryParam (const std::string &name) const |
| const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
| T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
| bool | isParamValid (const std::string &name) const |
| bool | isParamSetByUser (const std::string &name) const |
| void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
| void | paramError (const std::string ¶m, Args... args) const |
| void | paramWarning (const std::string ¶m, Args... args) const |
| void | paramWarning (const std::string ¶m, Args... args) const |
| void | paramInfo (const std::string ¶m, Args... args) const |
| std::string | messagePrefix (const bool hit_prefix=true) const |
| std::string | errorPrefix (const std::string &) const |
| void | mooseError (Args &&... args) const |
| void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
| void | mooseErrorNonPrefixed (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseInfo (Args &&... args) const |
| void | callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr) const |
| std::string | getDataFileName (const std::string ¶m) const |
| std::string | getDataFileNameByName (const std::string &relative_path) const |
| std::string | getDataFilePath (const std::string &relative_path) const |
| const Parallel::Communicator & | comm () const |
| processor_id_type | n_processors () const |
| processor_id_type | processor_id () const |
| virtual void | initialSetup () |
| virtual void | timestepSetup () |
| virtual void | jacobianSetup () |
| virtual void | residualSetup () |
| virtual void | subdomainSetup () |
| virtual void | customSetup (const ExecFlagType &) |
| const ExecFlagEnum & | getExecuteOnEnum () const |
| const Function & | getFunction (const std::string &name) const |
| const Function & | getFunctionByName (const FunctionName &name) const |
| bool | hasFunction (const std::string ¶m_name) const |
| bool | hasFunctionByName (const FunctionName &name) const |
| bool | isDefaultPostprocessorValue (const std::string ¶m_name, const unsigned int index=0) const |
| bool | hasPostprocessor (const std::string ¶m_name, const unsigned int index=0) const |
| bool | hasPostprocessorByName (const PostprocessorName &name) const |
| std::size_t | coupledPostprocessors (const std::string ¶m_name) const |
| const PostprocessorName & | getPostprocessorName (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValue (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValue (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValueOld (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValueOld (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValueOlder (const std::string ¶m_name, const unsigned int index=0) const |
| const PostprocessorValue & | getPostprocessorValueOlder (const std::string ¶m_name, const unsigned int index=0) const |
| virtual const PostprocessorValue & | getPostprocessorValueByName (const PostprocessorName &name) const |
| virtual const PostprocessorValue & | getPostprocessorValueByName (const PostprocessorName &name) const |
| const PostprocessorValue & | getPostprocessorValueOldByName (const PostprocessorName &name) const |
| const PostprocessorValue & | getPostprocessorValueOldByName (const PostprocessorName &name) const |
| const PostprocessorValue & | getPostprocessorValueOlderByName (const PostprocessorName &name) const |
| const PostprocessorValue & | getPostprocessorValueOlderByName (const PostprocessorName &name) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValue (const std::string ¶m_name, const std::string &vector_name) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValue (const std::string ¶m_name, const std::string &vector_name, bool needs_broadcast) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueOld (const std::string ¶m_name, const std::string &vector_name) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueOld (const std::string ¶m_name, const std::string &vector_name, bool needs_broadcast) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| const VectorPostprocessorValue & | getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const |
| const ScatterVectorPostprocessorValue & | getScatterVectorPostprocessorValue (const std::string ¶m_name, const std::string &vector_name) const |
| const ScatterVectorPostprocessorValue & | getScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| const ScatterVectorPostprocessorValue & | getScatterVectorPostprocessorValueOld (const std::string ¶m_name, const std::string &vector_name) const |
| const ScatterVectorPostprocessorValue & | getScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| bool | hasVectorPostprocessor (const std::string ¶m_name, const std::string &vector_name) const |
| bool | hasVectorPostprocessor (const std::string ¶m_name) const |
| bool | hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| bool | hasVectorPostprocessorByName (const VectorPostprocessorName &name) const |
| const VectorPostprocessorName & | getVectorPostprocessorName (const std::string ¶m_name) const |
| bool | isVectorPostprocessorDistributed (const std::string ¶m_name) const |
| bool | isVectorPostprocessorDistributed (const std::string ¶m_name) const |
| bool | isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const |
| bool | isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const |
| virtual void | meshChanged () |
| bool | isImplicit () |
| Moose::StateArg | determineState () const |
| UserObjectName | getUserObjectName (const std::string ¶m_name) const |
| const T & | getUserObject (const std::string ¶m_name, bool is_dependency=true) const |
| const T & | getUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const |
| const UserObject & | getUserObjectBase (const std::string ¶m_name, bool is_dependency=true) const |
| const UserObject & | getUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const |
| bool | hasUserObject (const std::string ¶m_name) const |
| bool | hasUserObject (const std::string ¶m_name) const |
| bool | hasUserObject (const std::string ¶m_name) const |
| bool | hasUserObject (const std::string ¶m_name) const |
| bool | hasUserObjectByName (const UserObjectName &object_name) const |
| bool | hasUserObjectByName (const UserObjectName &object_name) const |
| bool | hasUserObjectByName (const UserObjectName &object_name) const |
| bool | hasUserObjectByName (const UserObjectName &object_name) const |
Static Public Member Functions | |
| static InputParameters | validParams () |
| static void | callMooseError (MooseApp *const app, const InputParameters ¶ms, std::string msg, const bool with_prefix, const hit::Node *node) |
| static void | sort (typename std::vector< T > &vector) |
| static void | sortDFS (typename std::vector< T > &vector) |
| static void | cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header) |
Public Attributes | |
| usingCombinedWarningSolutionWarnings | |
| const ConsoleStream | _console |
Static Public Attributes | |
| static const std::string | type_param |
| static const std::string | name_param |
| static const std::string | unique_name_param |
| static const std::string | app_param |
| static const std::string | moose_base_param |
| static const std::string | kokkos_object_param |
Protected Member Functions | |
| const std::shared_ptr< Ray > & | currentRay () const |
| Gets the current Ray that this is working on. More... | |
| void | dependsOn (const std::string name) |
| Add an object of this classes base type that this class depends on. More... | |
| NonlinearSystemBase * | getNonlinearSystem () |
| Get the right nonlinear system. More... | |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) const |
| virtual void | addPostprocessorDependencyHelper (const PostprocessorName &) const |
| virtual void | addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &) const |
| virtual void | addUserObjectDependencyHelper (const UserObject &) const |
Protected Attributes | |
| const THREAD_ID | _tid |
| The thread id. More... | |
| FEProblemBase & | _fe_problem |
| The FEProblemBase. More... | |
| RayTracingStudy & | _study |
| The RayTracingStudy associated with this object. More... | |
| const TraceRay & | _trace_ray |
| The TraceRay object associated with this thread. More... | |
| NonlinearSystemBase * | _nl |
| The nonlinear system, we might not have one. More... | |
| AuxiliarySystem & | _aux |
| The aux system. More... | |
| MooseMesh & | _mesh |
| The MooseMesh. More... | |
| const Elem *const & | _current_elem |
| The current Elem that _current_ray is tracing through. More... | |
| const SubdomainID & | _current_subdomain_id |
| The subdomain ID of the _current_elem that the ray is tracing through. More... | |
| const unsigned short & | _current_intersected_side |
| The side that _current_ray intersects (if any) More... | |
| const ElemExtrema & | _current_intersected_extrema |
| The elem extrema (vertex/edge) that _current_ray intersects (if any) More... | |
| const bool & | _enabled |
| MooseApp & | _app |
| Factory & | _factory |
| ActionFactory & | _action_factory |
| const std::string & | _type |
| const std::string & | _name |
| const InputParameters & | _pars |
| const Parallel::Communicator & | _communicator |
| const ExecFlagEnum & | _execute_enum |
| const ExecFlagType & | _current_execute_flag |
| FEProblemBase & | _mci_feproblem |
| const InputParameters & | _ti_params |
| FEProblemBase & | _ti_feproblem |
| bool | _is_implicit |
| Real & | _t |
| const Real & | _t_old |
| int & | _t_step |
| Real & | _dt |
| Real & | _dt_old |
| bool | _is_transient |
Private Attributes | |
| std::set< std::string > | _depend_names |
| The names of the objects this depends on. More... | |
| std::set< std::string > | _supplied_names |
| The names of the supplied objects: just this one. More... | |
| const std::shared_ptr< Ray > *const & | _current_ray |
| The current Ray that the action is being applied to. More... | |
Base class for a MooseObject used in ray tracing.
Definition at line 36 of file RayTracingObject.h.
| RayTracingObject::RayTracingObject | ( | const InputParameters & | params | ) |
Definition at line 38 of file RayTracingObject.C.
|
inlineprotected |
Gets the current Ray that this is working on.
Definition at line 83 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::changeRayDirection(), RayKernelBase::changeRayStartDirection(), ChangeRayRayBCTest::onBoundary(), ReflectRayBC::onBoundary(), KillRayBC::onBoundary(), CreateRayRayBCTest::onBoundary(), ViewFactorRayBC::onBoundary(), ChangeRayRayKernelTest::onSegment(), KillRayKernel::onSegment(), TestRayDataRayKernel::onSegment(), CreateRayRayKernelTest::onSegment(), IntegralRayKernel::onSegment(), and RefractionRayKernelTest::onSegment().
|
inlineprotected |
Add an object of this classes base type that this class depends on.
Definition at line 88 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::RayBoundaryConditionBase(), and RayKernelBase::RayKernelBase().
|
protected |
Get the right nonlinear system.
Some simulations might not have one, if some user objects only operate on aux variables we need a special treatment
Definition at line 66 of file RayTracingObject.C.
|
inlineoverridevirtual |
Implements DependencyResolverInterface.
Definition at line 51 of file RayTracingObject.h.
| T & RayTracingObject::getStudy | ( | ) |
Casts the RayTracingStudy associated with this object to a study of type T with a meaningful error message if it fails.
Definition at line 137 of file RayTracingObject.h.
|
inlineoverridevirtual |
Implements DependencyResolverInterface.
Definition at line 52 of file RayTracingObject.h.
|
inlinevirtual |
Insertion point called immediately after executing the RayTracingStudy.
Definition at line 77 of file RayTracingObject.h.
|
inlinevirtual |
Insertion point called immediately before executing the RayTracingStudy.
Reimplemented in IntegralRayKernelBase.
Definition at line 73 of file RayTracingObject.h.
|
inline |
The RayTracingStudy associated with this object.
Definition at line 57 of file RayTracingObject.h.
Referenced by AttribRayTracingStudy::initFrom().
|
inline |
The RayTracingStudy associated with this object.
Definition at line 61 of file RayTracingObject.h.
|
static |
Definition at line 15 of file RayTracingObject.C.
Referenced by RayBoundaryConditionBase::validParams(), and RayKernelBase::validParams().
|
protected |
The aux system.
Definition at line 111 of file RayTracingObject.h.
|
protected |
The current Elem that _current_ray is tracing through.
Definition at line 117 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::acquireRay(), RayKernelBase::acquireRay(), RayKernelBase::changeRayStartDirection(), ReflectRayBC::onBoundary(), and ChangeRayRayKernelTest::onSegment().
|
protected |
The elem extrema (vertex/edge) that _current_ray intersects (if any)
Definition at line 123 of file RayTracingObject.h.
|
protected |
The side that _current_ray intersects (if any)
Definition at line 121 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::acquireRay(), and ReflectRayBC::onBoundary().
|
private |
The current Ray that the action is being applied to.
Definition at line 132 of file RayTracingObject.h.
Referenced by currentRay().
|
protected |
The subdomain ID of the _current_elem that the ray is tracing through.
Definition at line 119 of file RayTracingObject.h.
|
private |
The names of the objects this depends on.
Definition at line 127 of file RayTracingObject.h.
Referenced by dependsOn(), and getRequestedItems().
|
protected |
The FEProblemBase.
Definition at line 101 of file RayTracingObject.h.
Referenced by ADRayKernelTempl< T >::ADRayKernelTempl(), getNonlinearSystem(), and RayKernelTempl< T >::RayKernelTempl().
|
protected |
The MooseMesh.
Definition at line 114 of file RayTracingObject.h.
Referenced by ADRayKernelTempl< T >::ADRayKernelTempl(), and RayKernelTempl< T >::RayKernelTempl().
|
protected |
The nonlinear system, we might not have one.
Definition at line 109 of file RayTracingObject.h.
|
protected |
The RayTracingStudy associated with this object.
Definition at line 104 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::acquireRay(), RayKernelBase::acquireRay(), RayKernelBase::changeRayStartDirection(), getNonlinearSystem(), getStudy(), RayBoundaryConditionBase::moveRayToBuffer(), RayKernelBase::moveRayToBuffer(), ReflectRayBC::onBoundary(), and study().
|
private |
The names of the supplied objects: just this one.
Definition at line 129 of file RayTracingObject.h.
Referenced by getSuppliedItems(), and RayTracingObject().
|
protected |
The thread id.
Definition at line 98 of file RayTracingObject.h.
Referenced by RayBoundaryConditionBase::acquireRay(), RayKernelBase::acquireRay(), RayBoundaryConditionBase::moveRayToBuffer(), RayKernelBase::moveRayToBuffer(), ReflectRayBC::onBoundary(), and ViewFactorRayBC::onBoundary().
|
protected |
The TraceRay object associated with this thread.
Definition at line 106 of file RayTracingObject.h.
1.8.14