User object that computes the shortest distance to one or more surfaces defined by function- and/or mesh-based distance strategies. More...
#include <ShortestDistanceToSurface.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| ShortestDistanceToSurface (const InputParameters ¶meters) | |
| void | initialize () override |
| void | execute () override |
| void | finalize () override |
| void | threadJoin (const UserObject &) override |
| const std::vector< const Function * > & | getDistanceFuncs () const |
| Get the SBMSurfaceMeshBuilder user objects. | |
| virtual Real | value (Real t, const Point &p) const |
| Returns the minimum distance from point pt to a collection of surfaces. | |
| RealVectorValue | distanceVector (const Point &pt) const |
| Return the closest distance vector from point pt to the boundaries. | |
| RealVectorValue | trueNormal (const Point &pt) const |
| Return the true normal vector at the closest point on the boundaries. | |
| RealVectorValue | distanceVectorByIndex (unsigned int idx, const Point &pt) const |
A distance vector from a point pt to a specific surface specified by index idx in the 'surfaces' parameter list. | |
| RealVectorValue | trueNormalByIndex (unsigned int idx, const Point &pt) const |
A true normal vector at the projected point of pt onto a specific surface specified by index idx in the 'surfaces' parameter list. | |
| RealVectorValue | distanceVectorByFunc (const Point &pt, Real t, const Function *func) const |
| Compute distance vector using a specific distance function. | |
| RealVectorValue | trueNormalByFunc (const Point &pt, Real t, const Function *func) const |
| Compute true normal using a specific distance function. | |
| virtual void | subdomainSetup () override |
| bool | needThreadedCopy () const override final |
| virtual Real | spatialValue (const Point &) const |
| virtual const std::vector< Point > | spatialPoints () const |
| void | setPrimaryThreadCopy (UserObject *primary) |
| UserObject * | primaryThreadCopy () |
| SubProblem & | getSubProblem () const |
| bool | shouldDuplicateInitialExecution () const |
| void | gatherSum (T &value) |
| void | gatherMax (T &value) |
| void | gatherMin (T &value) |
| void | gatherProxyValueMax (T1 &proxy, T2 &value) |
| void | gatherProxyValueMin (T1 &proxy, T2 &value) |
| std::set< UserObjectName > | getDependObjects () const |
| const std::set< std::string > & | getRequestedItems () override |
| const std::set< std::string > & | getSuppliedItems () override |
| unsigned int | systemNumber () const |
| virtual bool | enabled () const |
| std::shared_ptr< MooseObject > | getSharedPtr () |
| std::shared_ptr< const MooseObject > | getSharedPtr () const |
| bool | isKokkosObject () 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 | mooseDeprecatedNoTrace (Args &&... args) const |
| void | mooseInfo (Args &&... args) const |
| void | callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) 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 |
| virtual void | initialSetup () |
| virtual void | timestepSetup () |
| virtual void | jacobianSetup () |
| virtual void | residualSetup () |
| virtual void | customSetup (const ExecFlagType &) |
| const ExecFlagEnum & | getExecuteOnEnum () 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 UserObjectBase & | getUserObjectBase (const std::string ¶m_name, bool is_dependency=true) const |
| const UserObjectBase & | getUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const |
| const std::vector< MooseVariableScalar * > & | getCoupledMooseScalarVars () |
| const std::set< TagID > & | getScalarVariableCoupleableVectorTags () const |
| const std::set< TagID > & | getScalarVariableCoupleableMatrixTags () const |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0) |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialProperty (const std::string &name, const unsigned int state=0) |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialProperty (const std::string &name, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialProperty (const std::string &name, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialProperty (const std::string &name, const unsigned int state=0) |
| const ADMaterialProperty< T > & | getADMaterialProperty (const std::string &name, MaterialData &material_data) |
| const ADMaterialProperty< T > & | getADMaterialProperty (const std::string &name) |
| const ADMaterialProperty< T > & | getADMaterialProperty (const std::string &name) |
| const MaterialProperty< T > & | getMaterialPropertyOld (const std::string &name, MaterialData &material_data) |
| const MaterialProperty< T > & | getMaterialPropertyOld (const std::string &name) |
| const MaterialProperty< T > & | getMaterialPropertyOld (const std::string &name) |
| const MaterialProperty< T > & | getMaterialPropertyOlder (const std::string &name, MaterialData &material_data) |
| const MaterialProperty< T > & | getMaterialPropertyOlder (const std::string &name) |
| const MaterialProperty< T > & | getMaterialPropertyOlder (const std::string &name) |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state) |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0) |
| const GenericMaterialProperty< T, is_ad > & | getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0) |
| const MaterialProperty< T > & | getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0) |
| const ADMaterialProperty< T > & | getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data) |
| const ADMaterialProperty< T > & | getADMaterialPropertyByName (const MaterialPropertyName &name) |
| const ADMaterialProperty< T > & | getADMaterialPropertyByName (const MaterialPropertyName &name) |
| const MaterialProperty< T > & | getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data) |
| const MaterialProperty< T > & | getMaterialPropertyOldByName (const MaterialPropertyName &name) |
| const MaterialProperty< T > & | getMaterialPropertyOldByName (const MaterialPropertyName &name) |
| const MaterialProperty< T > & | getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data) |
| const MaterialProperty< T > & | getMaterialPropertyOlderByName (const MaterialPropertyName &name) |
| const MaterialProperty< T > & | getMaterialPropertyOlderByName (const MaterialPropertyName &name) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialPropertyByName (const std::string &prop_name_in) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialPropertyOldByName (const std::string &prop_name) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialPropertyOlderByName (const std::string &prop_name) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialProperty (const std::string &name) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialPropertyOld (const std::string &name) |
| Moose::Kokkos::MaterialProperty< T, dimension > | getKokkosMaterialPropertyOlder (const std::string &name) |
| std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > | getBlockMaterialProperty (const MaterialPropertyName &name) |
| std::pair< Moose::Kokkos::MaterialProperty< T, dimension >, std::set< SubdomainID > > | getKokkosBlockMaterialProperty (const MaterialPropertyName &name) |
| const GenericMaterialProperty< T, is_ad > & | getGenericZeroMaterialProperty (const std::string &name) |
| const GenericMaterialProperty< T, is_ad > & | getGenericZeroMaterialProperty () |
| const GenericMaterialProperty< T, is_ad > & | getGenericZeroMaterialPropertyByName (const std::string &prop_name) |
| const MaterialProperty< T > & | getZeroMaterialProperty (Ts... args) |
| std::set< SubdomainID > | getMaterialPropertyBlocks (const std::string &name) |
| std::vector< SubdomainName > | getMaterialPropertyBlockNames (const std::string &name) |
| std::set< BoundaryID > | getMaterialPropertyBoundaryIDs (const std::string &name) |
| std::vector< BoundaryName > | getMaterialPropertyBoundaryNames (const std::string &name) |
| void | checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete) |
| std::unordered_map< SubdomainID, std::vector< MaterialBase * > > | buildRequiredMaterials (bool allow_stateful=true) |
| void | statefulPropertiesAllowed (bool) |
| virtual bool | getMaterialPropertyCalled () const |
| virtual const std::unordered_set< unsigned int > & | getMatPropDependencies () const |
| virtual void | resolveOptionalProperties () |
| const GenericMaterialProperty< T, is_ad > & | getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state) |
| bool | isImplicit () |
| Moose::StateArg | determineState () 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 |
| const GenericOptionalMaterialProperty< T, is_ad > & | getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0) |
| const GenericOptionalMaterialProperty< T, is_ad > & | getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialProperty (const std::string &name, const unsigned int state=0) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialProperty (const std::string &name, const unsigned int state=0) |
| const OptionalADMaterialProperty< T > & | getOptionalADMaterialProperty (const std::string &name) |
| const OptionalADMaterialProperty< T > & | getOptionalADMaterialProperty (const std::string &name) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialPropertyOld (const std::string &name) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialPropertyOld (const std::string &name) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialPropertyOlder (const std::string &name) |
| const OptionalMaterialProperty< T > & | getOptionalMaterialPropertyOlder (const std::string &name) |
| MaterialBase & | getMaterial (const std::string &name) |
| MaterialBase & | getMaterial (const std::string &name) |
| MaterialBase & | getMaterialByName (const std::string &name, bool no_warn=false) |
| MaterialBase & | getMaterialByName (const std::string &name, bool no_warn=false) |
| bool | hasMaterialProperty (const std::string &name) |
| bool | hasMaterialProperty (const std::string &name) |
| bool | hasMaterialPropertyByName (const std::string &name) |
| bool | hasMaterialPropertyByName (const std::string &name) |
| bool | hasADMaterialProperty (const std::string &name) |
| bool | hasADMaterialProperty (const std::string &name) |
| bool | hasADMaterialPropertyByName (const std::string &name) |
| bool | hasADMaterialPropertyByName (const std::string &name) |
| bool | hasKokkosMaterialProperty (const std::string &name) |
| bool | hasKokkosMaterialProperty (const std::string &name) |
| bool | hasKokkosMaterialPropertyByName (const std::string &name) |
| bool | hasKokkosMaterialPropertyByName (const std::string &name) |
| bool | hasGenericMaterialProperty (const std::string &name) |
| bool | hasGenericMaterialProperty (const std::string &name) |
| bool | hasGenericMaterialPropertyByName (const std::string &name) |
| bool | hasGenericMaterialPropertyByName (const std::string &name) |
| 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 |
| Moose::Kokkos::Function | getKokkosFunction (const std::string &name) const |
| const T & | getKokkosFunction (const std::string &name) const |
| Moose::Kokkos::Function | getKokkosFunctionByName (const FunctionName &name) const |
| const T & | getKokkosFunctionByName (const FunctionName &name) const |
| bool | hasKokkosFunction (const std::string ¶m_name) const |
| bool | hasKokkosFunctionByName (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 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 |
| T & | getSampler (const std::string &name) |
| Sampler & | getSampler (const std::string &name) |
| T & | getSamplerByName (const SamplerName &name) |
| Sampler & | getSamplerByName (const SamplerName &name) |
| virtual void | meshChanged () |
| virtual void | meshDisplaced () |
| PerfGraph & | perfGraph () |
| 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 |
| 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 |
| const Distribution & | getDistribution (const std::string &name) const |
| const T & | getDistribution (const std::string &name) const |
| const Distribution & | getDistribution (const std::string &name) const |
| const T & | getDistribution (const std::string &name) const |
| const Distribution & | getDistributionByName (const DistributionName &name) const |
| const T & | getDistributionByName (const std::string &name) const |
| const Distribution & | getDistributionByName (const DistributionName &name) const |
| const T & | getDistributionByName (const std::string &name) const |
| const Parallel::Communicator & | comm () const |
| processor_id_type | n_processors () const |
| processor_id_type | processor_id () 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, const bool show_trace=true) |
| 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, NameFunc &&name_func) |
| 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 |
| static constexpr PropertyValue::id_type | default_property_id |
| static constexpr PropertyValue::id_type | zero_property_id |
| static constexpr auto | SYSTEM |
| static constexpr auto | NAME |
Protected Member Functions | |
| virtual void | addPostprocessorDependencyHelper (const PostprocessorName &name) const override |
| virtual void | addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &name) const override |
| virtual void | addUserObjectDependencyHelper (const UserObjectBase &uo) const override |
| void | addReporterDependencyHelper (const ReporterName &reporter_name) override |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) const |
| const ReporterContextBase & | getReporterContextBaseByName (const ReporterName &reporter_name) const |
| const ReporterName & | getReporterName (const std::string ¶m_name) const |
| T & | declareRestartableData (const std::string &data_name, Args &&... args) |
| ManagedValue< T > | declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args) |
| const T & | getRestartableData (const std::string &data_name) const |
| T & | declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args) |
| T & | declareRecoverableData (const std::string &data_name, Args &&... args) |
| T & | declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args) |
| T & | declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args) |
| std::string | restartableName (const std::string &data_name) const |
| const T & | getMeshProperty (const std::string &data_name, const std::string &prefix) |
| const T & | getMeshProperty (const std::string &data_name) |
| bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
| bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
| bool | hasMeshProperty (const std::string &data_name) const |
| bool | hasMeshProperty (const std::string &data_name) const |
| std::string | meshPropertyName (const std::string &data_name) const |
| PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level) const |
| PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const |
| std::string | timedSectionName (const std::string §ion_name) const |
| bool | isCoupledScalar (const std::string &var_name, unsigned int i=0) const |
| unsigned int | coupledScalarComponents (const std::string &var_name) const |
| unsigned int | coupledScalar (const std::string &var_name, unsigned int comp=0) const |
| libMesh::Order | coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarValue (const std::string &var_name, unsigned int comp=0) const |
| const ADVariableValue & | adCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const |
| const GenericVariableValue< is_ad > & | coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const |
| const GenericVariableValue< false > & | coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const |
| const GenericVariableValue< true > & | coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const |
| const VariableValue & | coupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const |
| const VariableValue & | coupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const |
| const VariableValue & | coupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDot (const std::string &var_name, unsigned int comp=0) const |
| const ADVariableValue & | adCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const |
| const VariableValue & | coupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const |
| const MooseVariableScalar * | getScalarVar (const std::string &var_name, unsigned int comp) const |
| virtual void | checkMaterialProperty (const std::string &name, const unsigned int state) |
| virtual void | getKokkosMaterialPropertyHook (const std::string &, const unsigned int) |
| void | markMatPropRequested (const std::string &) |
| MaterialPropertyName | getMaterialPropertyName (const std::string &name) const |
| void | checkExecutionStage () |
| const T & | getReporterValue (const std::string ¶m_name, const std::size_t time_index=0) |
| const T & | getReporterValue (const std::string ¶m_name, ReporterMode mode, const std::size_t time_index=0) |
| const T & | getReporterValue (const std::string ¶m_name, const std::size_t time_index=0) |
| const T & | getReporterValue (const std::string ¶m_name, ReporterMode mode, const std::size_t time_index=0) |
| const T & | getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0) |
| const T & | getReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0) |
| const T & | getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0) |
| const T & | getReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0) |
| bool | hasReporterValue (const std::string ¶m_name) const |
| bool | hasReporterValue (const std::string ¶m_name) const |
| bool | hasReporterValue (const std::string ¶m_name) const |
| bool | hasReporterValue (const std::string ¶m_name) const |
| bool | hasReporterValueByName (const ReporterName &reporter_name) const |
| bool | hasReporterValueByName (const ReporterName &reporter_name) const |
| bool | hasReporterValueByName (const ReporterName &reporter_name) const |
| bool | hasReporterValueByName (const ReporterName &reporter_name) const |
| const GenericMaterialProperty< T, is_ad > * | defaultGenericMaterialProperty (const std::string &name) |
| const GenericMaterialProperty< T, is_ad > * | defaultGenericMaterialProperty (const std::string &name) |
| const MaterialProperty< T > * | defaultMaterialProperty (const std::string &name) |
| const MaterialProperty< T > * | defaultMaterialProperty (const std::string &name) |
| const ADMaterialProperty< T > * | defaultADMaterialProperty (const std::string &name) |
| const ADMaterialProperty< T > * | defaultADMaterialProperty (const std::string &name) |
Static Protected Member Functions | |
| static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Static Protected Attributes | |
| static const std::string | _interpolated_old |
| static const std::string | _interpolated_older |
Private Member Functions | |
| const Moose::FunctionBase * | getKokkosFunctionByNameHelper (const FunctionName &name) const |
| const UserObjectBase & | getUserObjectFromFEProblem (const UserObjectName &object_name, const THREAD_ID tid=0) const |
| const T & | castUserObject (const UserObjectBase &uo_base, const std::string ¶m_name="") const |
| void | mooseObjectError (const std::string ¶m_name, std::stringstream &oss) const |
| const std::string & | userObjectType (const UserObjectBase &uo) const |
| const std::string & | userObjectName (const UserObjectBase &uo) const |
| const PostprocessorName & | getPostprocessorNameInternal (const std::string ¶m_name, const unsigned int index, const bool allow_default_value=true) const |
| bool | isDefaultPostprocessorValueByName (const PostprocessorName &name) const |
| PostprocessorValue | getDefaultPostprocessorValueByName (const PostprocessorName &name) const |
| void | checkParam (const std::string ¶m_name, const unsigned int index=std::numeric_limits< unsigned int >::max()) const |
| bool | postprocessorsAdded () const |
| const VectorPostprocessorValue & | getVectorPostprocessorByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name, bool broadcast, std::size_t t_index) const |
| const VectorPostprocessorContext< VectorPostprocessorValue > & | getVectorPostprocessorContextByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name) const |
| bool | vectorPostprocessorsAdded () const |
| bool | reportersAdded () const |
| void | possiblyCheckHasReporter (const ReporterName &reporter_name, const std::string ¶m_name="") const |
| RestartableDataValue & | registerRestartableDataOnApp (std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const |
| void | registerRestartableNameWithFilterOnApp (const std::string &name, Moose::RESTARTABLE_FILTER filter) |
| RestartableData< T > & | declareRestartableDataHelper (const std::string &data_name, void *context, Args &&... args) const |
| virtual std::string | meshPropertyPrefix (const std::string &data_name) const |
| const RestartableDataValue & | getMeshPropertyInternal (const std::string &data_name, const std::string &prefix) const |
| void | mooseErrorInternal (Args &&... args) const |
| const VariableValue * | getDefaultValue (const std::string &var_name) const |
| const ADVariableValue * | getADDefaultValue (const std::string &var_name) const |
| void | checkVar (const std::string &var_name) const |
| void | validateExecutionerType (const std::string &name, const std::string &fn_name) const |
| Moose::MaterialDataType | getMaterialDataType (const std::set< BoundaryID > &boundary_ids) const |
| unsigned int | getMaxQps () const |
| void | addConsumedPropertyName (const MooseObjectName &obj_name, const std::string &prop_name) |
| const PostprocessorValue & | getPostprocessorValueInternal (const std::string ¶m_name, unsigned int index, std::size_t t_index) const |
| const PostprocessorValue & | getPostprocessorValueInternal (const std::string ¶m_name, unsigned int index, std::size_t t_index) const |
| const PostprocessorValue & | getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const |
| const PostprocessorValue & | getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const |
| void | possiblyCheckHasVectorPostprocessor (const std::string ¶m_name, const std::string &vector_name) const |
| void | possiblyCheckHasVectorPostprocessor (const std::string ¶m_name, const std::string &vector_name) const |
| void | possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
| void | possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const |
Static Private Member Functions | |
| static const hit::Node * | getHitNode (const InputParameters ¶ms) |
| static std::string | messagePrefix (const InputParameters ¶ms, const bool hit_prefix) |
User object that computes the shortest distance to one or more surfaces defined by function- and/or mesh-based distance strategies.
This object only answers distance queries on demand; it does not store or build up any results of its own. Other objects call distanceVector()/ trueNormal()/... directly, and there is no per-element work to do, so an ElementUserObject's element loop would not be used here. For that reason it is a ThreadedGeneralUserObject rather than an element-based user object.
A ThreadedGeneralUserObject is constructed once per thread. Each copy stores its own per-thread Function pointers; parsed functions mutate internal state during evaluation, so sharing the TID=0 copy across threads can race and produce incorrect distances. The per-thread copies avoid that race.
Definition at line 28 of file ShortestDistanceToSurface.h.
| ShortestDistanceToSurface::ShortestDistanceToSurface | ( | const InputParameters & | parameters | ) |
Definition at line 31 of file ShortestDistanceToSurface.C.
| RealVectorValue ShortestDistanceToSurface::distanceVector | ( | const Point & | pt | ) | const |
Return the closest distance vector from point pt to the boundaries.
Definition at line 48 of file ShortestDistanceToSurface.C.
Referenced by value().
| RealVectorValue ShortestDistanceToSurface::distanceVectorByFunc | ( | const Point & | pt, |
| Real | t, | ||
| const Function * | func | ||
| ) | const |
Compute distance vector using a specific distance function.
Definition at line 74 of file ShortestDistanceToSurface.C.
Referenced by ShortestDistanceToSurfaceTestAux::computeValue().
| RealVectorValue ShortestDistanceToSurface::distanceVectorByIndex | ( | unsigned int | idx, |
| const Point & | pt | ||
| ) | const |
A distance vector from a point pt to a specific surface specified by index idx in the 'surfaces' parameter list.
Definition at line 60 of file ShortestDistanceToSurface.C.
Referenced by ShortestDistanceToSurfaceTestAux::computeValue().
|
inlineoverridevirtual |
Implements ThreadedGeneralUserObject.
Definition at line 34 of file ShortestDistanceToSurface.h.
|
inlineoverridevirtual |
Implements ThreadedGeneralUserObject.
Definition at line 35 of file ShortestDistanceToSurface.h.
|
inline |
Get the SBMSurfaceMeshBuilder user objects.
Definition at line 42 of file ShortestDistanceToSurface.h.
|
inlineoverridevirtual |
Implements ThreadedGeneralUserObject.
Definition at line 33 of file ShortestDistanceToSurface.h.
|
inlineoverridevirtual |
Reimplemented from ThreadedGeneralUserObject.
Definition at line 39 of file ShortestDistanceToSurface.h.
| RealVectorValue ShortestDistanceToSurface::trueNormal | ( | const Point & | pt | ) | const |
Return the true normal vector at the closest point on the boundaries.
Definition at line 54 of file ShortestDistanceToSurface.C.
Referenced by ShortestDistanceToSurfaceTestAux::computeValue().
| RealVectorValue ShortestDistanceToSurface::trueNormalByFunc | ( | const Point & | pt, |
| Real | t, | ||
| const Function * | func | ||
| ) | const |
Compute true normal using a specific distance function.
Definition at line 82 of file ShortestDistanceToSurface.C.
Referenced by ShortestDistanceToSurfaceTestAux::computeValue().
| RealVectorValue ShortestDistanceToSurface::trueNormalByIndex | ( | unsigned int | idx, |
| const Point & | pt | ||
| ) | const |
A true normal vector at the projected point of pt onto a specific surface specified by index idx in the 'surfaces' parameter list.
Definition at line 67 of file ShortestDistanceToSurface.C.
Referenced by ShortestDistanceToSurfaceTestAux::computeValue().
|
static |
Definition at line 16 of file ShortestDistanceToSurface.C.
|
virtual |
Returns the minimum distance from point pt to a collection of surfaces.
This routine supports both signed and unsigned distance functions, depending on the type of distance functions provided in the 'surfaces' parameter list. When signed distance functions are used, this corresponds to the standard union signed distance definition.
Definition at line 39 of file ShortestDistanceToSurface.C.
Referenced by ElementCentroidToSurfaceDistanceAux::computeValue().
|
protected |
Optional signed-distance function.
Definition at line 74 of file ShortestDistanceToSurface.h.
Referenced by distanceVector(), distanceVectorByIndex(), getDistanceFuncs(), ShortestDistanceToSurface(), trueNormal(), trueNormalByIndex(), and value().
|
protected |
Definition at line 76 of file ShortestDistanceToSurface.h.
Referenced by value().