https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
AverageSectionValueSampler Class Reference

#include <AverageSectionValueSampler.h>

Inheritance diagram for AverageSectionValueSampler:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 AverageSectionValueSampler (const InputParameters &parameters)
 
virtual void initialSetup () override
 
virtual void meshChanged () override
 
virtual void initialize () override
 
virtual void execute () override
 
virtual void finalize () override
 
SubProblemgetSubProblem () const
 
bool shouldDuplicateInitialExecution () const
 
virtual Real spatialValue (const Point &) const
 
virtual const std::vector< Point > spatialPoints () 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)
 
void setPrimaryThreadCopy (UserObject *primary)
 
UserObjectprimaryThreadCopy ()
 
std::set< UserObjectName > getDependObjects () const
 
virtual bool needThreadedCopy () 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< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
virtual const std::string & name () const
 
std::string typeAndName () const
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &nm) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void mooseError (Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const T & getUserObject (const std::string &param_name, bool is_dependency=true) const
 
const T & getUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBaseByName (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)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (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< SubdomainIDgetMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryIDgetMaterialPropertyBoundaryIDs (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)
 
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
 
std::string PPName () const
 
bool containsCompleteHistory () const
 
bool isDistributed () const
 
const std::set< std::string > & getVectorNames () const
 
void buildOutputHideVariableList (std::set< std::string > variable_names)
 
const std::set< OutputName > & getOutputs ()
 
virtual void threadJoin (const UserObject &) override
 
virtual void threadJoin (const UserObject &) override
 
virtual void subdomainSetup () override
 
virtual void subdomainSetup () override
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_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)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBasegetMaterialByName (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 hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_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 &param_name) const
 
T & getSampler (const std::string &name)
 
SamplergetSampler (const std::string &name)
 
T & getSamplerByName (const SamplerName &name)
 
SamplergetSamplerByName (const SamplerName &name)
 
virtual void meshDisplaced ()
 
PerfGraphperfGraph ()
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (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 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

const ConsoleStream _console
 

Static Public Attributes

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 UserObject &uo) const override
 
void addReporterDependencyHelper (const ReporterName &reporter_name) override
 
const ReporterNamegetReporterName (const std::string &param_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 &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_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 VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (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 VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state)
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
void checkExecutionStage ()
 
VectorPostprocessorValuedeclareVector (const std::string &vector_name)
 
const T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_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 &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_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)
 

Protected Attributes

const std::shared_ptr< MooseMesh > & _mesh
 Reference to the mesh. More...
 
std::vector< VariableName > _variables
 Variables to output. More...
 
std::vector< unsigned int_var_numbers
 Indices of the variables in their systems. More...
 
std::vector< VectorPostprocessorValue * > _output_vector
 Vector of outputs, where each entry is the vector of average values for single variable at the selected points along the axis. More...
 
std::vector< SubdomainID_block_ids
 
const Point _direction
 Axis direction of the structural component. More...
 
const Point _reference_point
 Starting or reference point of the structural component to locate nodes on the cross section. More...
 
std::vector< Real_positions
 Axial positions along the component at which average values are computed. More...
 
const bool _have_symmetry_plane
 Whether a symmetry plane has been defined by the user. More...
 
RealVectorValue _symmetry_plane
 Vector normal to a symmetry plane, optionally defined if the section has a symmetry plane. More...
 
const bool _automatically_locate_positions
 Whether to automatically locate positions along section for averaging field values. More...
 
const Real _tolerance
 Tolerance to identify nodes on the user-prescribed cross section. More...
 
std::vector< unsigned int_number_of_nodes
 Number of nodes for computing output (local and global). More...
 
const Real _cross_section_maximum_radius
 Tolerance to disambiguate cross section locations in different components within the same block. More...
 
const bool _require_equal_node_counts
 Whether to require the number of nodes at each axial location to be equal. More...
 
bool _need_mesh_initializations
 Whether node locations need to be identified and nodes at positions need to be counted. More...
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
SystemBase_sys
 
const THREAD_ID _tid
 
Assembly_assembly
 
const Moose::CoordinateSystemType_coord_sys
 
const bool _duplicate_initial_execution
 
std::set< std::string > _depend_uo
 
const bool & _enabled
 
MooseApp_app
 
const std::string _type
 
const std::string _name
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
const ExecFlagEnum_execute_enum
 
const ExecFlagType_current_execute_flag
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
FEProblemBase_mdi_feproblem
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real_real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
const InputParameters_mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase_mi_feproblem
 
SubProblem_mi_subproblem
 
const THREAD_ID _mi_tid
 
const Moose::MaterialDataType _material_data_type
 
MaterialData_material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int_material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
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
 
const std::string _vpp_name
 
FEProblemBase_vpp_fe_problem
 
const MooseEnum_parallel_type
 
const Parallel::Communicator & _communicator
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 

Private Member Functions

Real axialPosition (const Node &node) const
 Determine axial distance of the point from the component's reference point. More...
 
void automaticallyLocatePositions ()
 Automatically identify all axial positions of nodes within the component and store their unique values (within tolerance) in _lengths. More...
 

Detailed Description

Definition at line 15 of file AverageSectionValueSampler.h.

Constructor & Destructor Documentation

◆ AverageSectionValueSampler()

AverageSectionValueSampler::AverageSectionValueSampler ( const InputParameters parameters)

Definition at line 67 of file AverageSectionValueSampler.C.

70  _variables(getParam<std::vector<VariableName>>("variables")),
71  _direction(getParam<Point>("axis_direction")),
72  _reference_point(getParam<Point>("reference_point")),
73  _positions(isParamSetByUser("lengths") ? getParam<std::vector<Real>>("lengths")
74  : getParam<std::vector<Real>>("positions")),
75  _have_symmetry_plane(isParamSetByUser("symmetry_plane")),
76  _symmetry_plane(getParam<RealVectorValue>("symmetry_plane")),
78  _tolerance(getParam<Real>("tolerance")),
80  _cross_section_maximum_radius(getParam<Real>("cross_section_maximum_radius")),
81  _require_equal_node_counts(getParam<bool>("require_equal_node_counts")),
83 {
84  if (parameters.isParamSetByUser("lengths") && parameters.isParamSetByUser("positions"))
85  paramError("lengths", "The 'lengths' and 'positions' parameters cannot both be set.");
86 
87  if (parameters.isParamSetByUser("lengths") && _positions.size() == 0)
88  paramError("lengths", "If 'lengths' is specified, at least one value must be provided");
89 
90  if (parameters.isParamSetByUser("positions") && _positions.size() == 0)
91  paramError("positions", "If 'positions' is specified, at least one value must be provided");
92 
93  if (_mesh->dimension() != 3)
94  mooseError("The AverageSectionValueSampler postprocessor can only be used with three "
95  "dimensional meshes.");
96 
97  if (!MooseUtils::absoluteFuzzyEqual(_direction.norm_sq(), 1.0))
98  paramError("axis_direction", "Axis direction must be a unit vector.");
99 
100  _output_vector.resize(_variables.size() + 2);
101  for (const auto j : make_range(_variables.size()))
103  const auto pos_idx = _variables.size();
104  _output_vector[pos_idx] = &declareVector("axial_position");
105  _output_vector[pos_idx + 1] = &declareVector("node_count");
106 
107  for (const auto j : make_range(_variables.size()))
108  {
109  if (!_sys.hasVariable(_variables[j]))
110  paramError("variables",
111  "One or more of the specified variables do not exist in this system.");
112  const MooseVariable & variable = _sys.getFieldVariable<Real>(_tid, _variables[j]);
113  if (!variable.isNodal())
114  paramError("variables",
115  "One or more of the specified variables are not defined at the nodes.");
116  _var_numbers.push_back(variable.number());
117  }
118 
120  {
121  const auto symm_plane_norm = _symmetry_plane.norm();
122  if (MooseUtils::absoluteFuzzyEqual(symm_plane_norm, 0.0))
123  mooseError("Vector defined in 'symmetry_plane' cannot have a norm of zero");
125  if (_variables.size() != 3)
126  paramError("variables",
127  "If 'symmetry_plane' is prescribed, three variables must be provided (for the x, "
128  "y, z vector components, in that order)");
129  mooseInfo("In AverageSectionValueSampler " + name() +
130  ": \nTreating the variables as vector components (" + _variables[0] + ", " +
131  _variables[1] + ", " + _variables[2] +
132  ") and zeroing out the component normal to the prescribed 'symmetry_plane'\n");
133  }
134 }
const Real _cross_section_maximum_radius
Tolerance to disambiguate cross section locations in different components within the same block...
const bool _have_symmetry_plane
Whether a symmetry plane has been defined by the user.
auto norm() const -> decltype(std::norm(Real()))
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
const bool _require_equal_node_counts
Whether to require the number of nodes at each axial location to be equal.
std::vector< unsigned int > _number_of_nodes
Number of nodes for computing output (local and global).
unsigned int number() const
GeneralVectorPostprocessor(const InputParameters &parameters)
void mooseInfo(Args &&... args) const
const Point _direction
Axis direction of the structural component.
virtual const std::string & name() const
std::shared_ptr< MooseMesh > & mesh()
std::vector< unsigned int > _var_numbers
Indices of the variables in their systems.
const Point _reference_point
Starting or reference point of the structural component to locate nodes on the cross section...
RealVectorValue _symmetry_plane
Vector normal to a symmetry plane, optionally defined if the section has a symmetry plane...
const T & getParam(const std::string &name) const
std::vector< Real > _positions
Axial positions along the component at which average values are computed.
ActionWarehouse & actionWarehouse()
void paramError(const std::string &param, Args... args) const
VectorPostprocessorValue & declareVector(const std::string &vector_name)
virtual bool hasVariable(const std::string &var_name) const
const bool _automatically_locate_positions
Whether to automatically locate positions along section for averaging field values.
bool isNodal() const override
bool isParamSetByUser(const std::string &name) const
bool isParamSetByUser(const std::string &nm) const
const std::shared_ptr< MooseMesh > & _mesh
Reference to the mesh.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseVariableFE< T > & getFieldVariable(THREAD_ID tid, const std::string &var_name)
std::vector< VariableName > _variables
Variables to output.
const Real _tolerance
Tolerance to identify nodes on the user-prescribed cross section.
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable at the select...
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
const InputParameters & parameters() const
bool _need_mesh_initializations
Whether node locations need to be identified and nodes at positions need to be counted.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")

Member Function Documentation

◆ automaticallyLocatePositions()

void AverageSectionValueSampler::automaticallyLocatePositions ( )
private

Automatically identify all axial positions of nodes within the component and store their unique values (within tolerance) in _lengths.

Definition at line 285 of file AverageSectionValueSampler.C.

Referenced by initialize().

286 {
287  _positions.clear();
288 
289  // Data structure used to collect the locations with nodes on each processor,
290  // and gather in parallel.
291  std::vector<Real> pos_vec;
292 
293  // Data structure used to store parallel-gathered locations
294  std::set<Real> pos_set;
295 
296  _block_ids = _mesh->getSubdomainIDs(getParam<std::vector<SubdomainName>>("block"));
297  auto * nodes = _mesh->getLocalNodeRange();
298 
299  for (const auto node : *nodes)
300  {
301  const std::set<SubdomainID> & node_blk_ids = _mesh->getNodeBlockIds(*node);
302 
303  for (const auto i : _block_ids)
304  {
305  if (node_blk_ids.find(i) != node_blk_ids.end())
306  {
307  bool found_match = false;
308  Real axial_position = axialPosition(*node);
309  if (axial_position == std::numeric_limits<Real>::max()) // Node not in this component
310  continue;
311  for (auto & pos : pos_vec)
312  {
313  const Real dist_to_plane = std::abs(axial_position - pos);
314  if (dist_to_plane <= _tolerance)
315  {
316  found_match = true;
317  break;
318  }
319  }
320  if (!found_match)
321  pos_vec.emplace_back(axial_position);
322  }
323  }
324  }
325 
326  _communicator.allgather(pos_vec);
327 
328  for (const auto & posv : pos_vec)
329  {
330  bool found_match = false;
331  for (auto & poss : pos_set)
332  {
333  if (std::abs(posv - poss) < _tolerance)
334  {
335  found_match = true;
336  break;
337  }
338  }
339  if (!found_match)
340  pos_set.insert(posv);
341  }
342  for (const auto & poss : pos_set)
343  _positions.emplace_back(poss);
344 }
void allgather(const T &send_data, std::vector< T, A > &recv_data) const
const Parallel::Communicator & _communicator
std::vector< SubdomainID > _block_ids
const T & getParam(const std::string &name) const
std::vector< Real > _positions
Axial positions along the component at which average values are computed.
Real axialPosition(const Node &node) const
Determine axial distance of the point from the component&#39;s reference point.
const std::shared_ptr< MooseMesh > & _mesh
Reference to the mesh.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _tolerance
Tolerance to identify nodes on the user-prescribed cross section.

◆ axialPosition()

Real AverageSectionValueSampler::axialPosition ( const Node &  node) const
private

Determine axial distance of the point from the component's reference point.

If the in-plane distance is greater than the input parameter cross section maximum radius, return the maximum value for a Real.

Parameters
nodeThe node whose distance from a plane is to be considered

Definition at line 266 of file AverageSectionValueSampler.C.

Referenced by automaticallyLocatePositions(), and execute().

267 {
268  // Compute node location w.r.t. structural component length
269  const Point relative_distance{
270  node(0) - _reference_point(0), node(1) - _reference_point(1), node(2) - _reference_point(2)};
271 
272  const Real axial_position = _direction * relative_distance;
273  const Real in_plane_distance =
274  (relative_distance - relative_distance * _direction * _direction).norm();
275 
276  // If the in-plane distance is greater than the specified cross-section radius, the point is not
277  // in this component
278  if (in_plane_distance > _cross_section_maximum_radius)
279  return std::numeric_limits<Real>::max();
280 
281  return axial_position;
282 }
const Real _cross_section_maximum_radius
Tolerance to disambiguate cross section locations in different components within the same block...
const Point _direction
Axis direction of the structural component.
const Point _reference_point
Starting or reference point of the structural component to locate nodes on the cross section...
auto norm(const T &a) -> decltype(std::abs(a))
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ execute()

void AverageSectionValueSampler::execute ( )
overridevirtual

Implements GeneralVectorPostprocessor.

Definition at line 209 of file AverageSectionValueSampler.C.

210 {
211  _block_ids = _mesh->getSubdomainIDs(getParam<std::vector<SubdomainName>>("block"));
212 
213  auto * active_nodes = _mesh->getActiveSemiLocalNodeRange();
214 
215  std::vector<std::vector<Real>> output_vector_partial(_variables.size(),
216  std::vector<Real>(_positions.size()));
217 
218  const NumericVector<Number> & _sol = *_sys.currentSolution();
219 
220  for (const auto & node : *active_nodes)
221  {
222  const std::set<SubdomainID> & node_blk_ids = _mesh->getNodeBlockIds(*node);
223 
224  for (const auto li : index_range(_positions))
225  {
226  for (const auto i : _block_ids)
227  {
228  if (node_blk_ids.find(i) != node_blk_ids.end())
229  {
230  // Check if node is within tolerance of user-prescribed plane
231  if (std::abs(axialPosition(*node) - _positions[li]) > _tolerance)
232  continue;
233  if ((*node).processor_id() != processor_id())
234  continue;
235 
236  // Retrieve nodal variables
237  std::vector<Real> this_node_vars(_var_numbers.size());
238  for (const auto j : make_range(_var_numbers.size()))
239  this_node_vars[j] = _sol(node->dof_number(_sys.number(), _var_numbers[j], 0));
240 
242  {
243  RealVectorValue this_node_vec_var(
244  this_node_vars[0], this_node_vars[1], this_node_vars[2]);
245  this_node_vec_var -= _symmetry_plane * this_node_vec_var * _symmetry_plane;
246  this_node_vars[0] = this_node_vec_var(0);
247  this_node_vars[1] = this_node_vec_var(1);
248  this_node_vars[2] = this_node_vec_var(2);
249  }
250 
251  for (const auto j : make_range(_var_numbers.size()))
252  output_vector_partial[j][li] += this_node_vars[j];
253 
254  _number_of_nodes[li]++;
255  break;
256  }
257  }
258  }
259  }
260 
261  for (const auto j : make_range(_variables.size()))
262  *_output_vector[j] = output_vector_partial[j];
263 }
virtual const NumericVector< Number > *const & currentSolution() const=0
const bool _have_symmetry_plane
Whether a symmetry plane has been defined by the user.
std::vector< unsigned int > _number_of_nodes
Number of nodes for computing output (local and global).
std::vector< SubdomainID > _block_ids
std::vector< unsigned int > _var_numbers
Indices of the variables in their systems.
RealVectorValue _symmetry_plane
Vector normal to a symmetry plane, optionally defined if the section has a symmetry plane...
const T & getParam(const std::string &name) const
std::vector< Real > _positions
Axial positions along the component at which average values are computed.
Real axialPosition(const Node &node) const
Determine axial distance of the point from the component&#39;s reference point.
unsigned int number() const
const std::shared_ptr< MooseMesh > & _mesh
Reference to the mesh.
std::vector< VariableName > _variables
Variables to output.
const Real _tolerance
Tolerance to identify nodes on the user-prescribed cross section.
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable at the select...
IntRange< T > make_range(T beg, T end)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
processor_id_type processor_id() const
auto index_range(const T &sizable)

◆ finalize()

void AverageSectionValueSampler::finalize ( )
overridevirtual

Reimplemented from GeneralVectorPostprocessor.

Definition at line 168 of file AverageSectionValueSampler.C.

169 {
170  for (const auto j : make_range(_variables.size()))
172 
174 
175  for (const auto li : index_range(_positions))
176  if (_number_of_nodes[li] < 1)
177  mooseError("No nodes were found in AverageSectionValueSampler postprocessor.");
178 
179  for (const auto li : index_range(_positions))
180  for (const auto j : make_range(_variables.size()))
181  (*_output_vector[j])[li] /= _number_of_nodes[li];
182 
183  const auto pos_idx = _variables.size();
184  (*_output_vector[pos_idx]) = _positions;
185  std::vector<Real> num_nodes_real(_number_of_nodes.begin(), _number_of_nodes.end());
186  (*_output_vector[pos_idx + 1]) = num_nodes_real;
187 
189  {
190  for (const auto li : index_range(_number_of_nodes))
191  {
192  if (_number_of_nodes[li] != _number_of_nodes[0])
193  {
194  std::ostringstream pos_out;
195  for (const auto li2 : index_range(_number_of_nodes))
196  pos_out << std::setw(10) << _positions[li2] << std::setw(10) << _number_of_nodes[li2]
197  << "\n";
198  mooseError(
199  "Node counts do not match for all axial positions. If this behavior "
200  "is desired to accommodate nonuniform meshes, set "
201  "'require_equal_node_counts=false'\n Axial Node\n Position Count\n" +
202  pos_out.str());
203  }
204  }
205  }
206 }
const bool _require_equal_node_counts
Whether to require the number of nodes at each axial location to be equal.
std::vector< unsigned int > _number_of_nodes
Number of nodes for computing output (local and global).
const Parallel::Communicator & _communicator
std::vector< Real > _positions
Axial positions along the component at which average values are computed.
std::vector< VariableName > _variables
Variables to output.
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable at the select...
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
auto index_range(const T &sizable)

◆ initialize()

void AverageSectionValueSampler::initialize ( )
overridevirtual

Implements GeneralVectorPostprocessor.

Definition at line 148 of file AverageSectionValueSampler.C.

149 {
151  {
152  // Option 1: locate positions first, then check counts
156  }
157 
158  for (const auto j : make_range(_variables.size() + 2))
159  {
160  _output_vector[j]->clear();
161  _output_vector[j]->resize(_positions.size());
162  }
163  _number_of_nodes.clear();
164  _number_of_nodes.resize(_positions.size());
165 }
std::vector< unsigned int > _number_of_nodes
Number of nodes for computing output (local and global).
void automaticallyLocatePositions()
Automatically identify all axial positions of nodes within the component and store their unique value...
std::vector< Real > _positions
Axial positions along the component at which average values are computed.
const bool _automatically_locate_positions
Whether to automatically locate positions along section for averaging field values.
std::vector< VariableName > _variables
Variables to output.
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable at the select...
IntRange< T > make_range(T beg, T end)
bool _need_mesh_initializations
Whether node locations need to be identified and nodes at positions need to be counted.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")

◆ initialSetup()

void AverageSectionValueSampler::initialSetup ( )
overridevirtual

Reimplemented from GeneralVectorPostprocessor.

Definition at line 137 of file AverageSectionValueSampler.C.

138 {
139 }

◆ meshChanged()

void AverageSectionValueSampler::meshChanged ( )
overridevirtual

Reimplemented from GeneralVectorPostprocessor.

Definition at line 142 of file AverageSectionValueSampler.C.

143 {
145 }
bool _need_mesh_initializations
Whether node locations need to be identified and nodes at positions need to be counted.

◆ validParams()

InputParameters AverageSectionValueSampler::validParams ( )
static

Definition at line 19 of file AverageSectionValueSampler.C.

20 {
22  params.addClassDescription("Compute the section's variable average in three-dimensions "
23  "given a user-defined definition of the cross section.");
24  params.addParam<std::vector<SubdomainName>>(
25  "block",
26  "The list of blocks in which to search for cross sectional nodes to compute the variable "
27  "average.");
28  params.addRequiredParam<Point>("axis_direction", "Direction of the structural component's axis");
29  params.addRequiredParam<Point>("reference_point",
30  "Structural component reference starting point from which the "
31  "input parameter 'lengths' applies.");
32  params.addParam<Real>("cross_section_maximum_radius",
33  std::numeric_limits<Real>::max(),
34  "Radial distance with respect to the body axis within which nodes are "
35  "considered to belong to this "
36  "structural component. Used to disambiguate multiple components that share "
37  "the same mesh block.");
38  params.addRequiredParam<std::vector<VariableName>>(
39  "variables", "Variables for the cross section output. These variables must be nodal.");
40  params.addDeprecatedParam<std::vector<Real>>(
41  "lengths",
42  {},
43  "Positions along axis from reference_point at which to compute average values.",
44  "Use the 'positions' parameter instead");
45  params.addParam<std::vector<Real>>(
46  "positions",
47  {},
48  "Positions along axis from reference_point at which to compute average values.");
49  params.addParam<RealVectorValue>(
50  "symmetry_plane",
51  RealVectorValue(0, 0, 0),
52  "Vector normal to a symmetry plane, used if the section has a symmetry plane through it. "
53  "Causes the variables to be treated as components of a vector and zeros out the compomnent "
54  "in the direction normal to symmetry_plane. Three variables must be defined in 'variables' "
55  "to use this option.");
56  params.addParam<Real>("tolerance",
57  1.0e-6,
58  "Maximum axial distance of nodes from the specified axial lengths to "
59  "consider them in the cross-section average");
60  params.addParam<bool>(
61  "require_equal_node_counts",
62  true,
63  "Whether to require the number of nodes at each axial location to be equal");
64  return params;
65 }
void addDeprecatedParam(const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _automatically_locate_positions

const bool AverageSectionValueSampler::_automatically_locate_positions
protected

Whether to automatically locate positions along section for averaging field values.

Definition at line 60 of file AverageSectionValueSampler.h.

Referenced by initialize().

◆ _block_ids

std::vector<SubdomainID> AverageSectionValueSampler::_block_ids
protected

Definition at line 42 of file AverageSectionValueSampler.h.

Referenced by automaticallyLocatePositions(), and execute().

◆ _cross_section_maximum_radius

const Real AverageSectionValueSampler::_cross_section_maximum_radius
protected

Tolerance to disambiguate cross section locations in different components within the same block.

Definition at line 70 of file AverageSectionValueSampler.h.

Referenced by axialPosition().

◆ _direction

const Point AverageSectionValueSampler::_direction
protected

Axis direction of the structural component.

Definition at line 45 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), and axialPosition().

◆ _have_symmetry_plane

const bool AverageSectionValueSampler::_have_symmetry_plane
protected

Whether a symmetry plane has been defined by the user.

Definition at line 54 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), and execute().

◆ _mesh

const std::shared_ptr<MooseMesh>& AverageSectionValueSampler::_mesh
protected

Reference to the mesh.

Definition at line 30 of file AverageSectionValueSampler.h.

Referenced by automaticallyLocatePositions(), AverageSectionValueSampler(), and execute().

◆ _need_mesh_initializations

bool AverageSectionValueSampler::_need_mesh_initializations
protected

Whether node locations need to be identified and nodes at positions need to be counted.

Definition at line 76 of file AverageSectionValueSampler.h.

Referenced by initialize(), and meshChanged().

◆ _number_of_nodes

std::vector<unsigned int> AverageSectionValueSampler::_number_of_nodes
protected

Number of nodes for computing output (local and global).

We allow each section to have different numbers of nodes (this would allow local, regular refinement in the mesh)

Definition at line 67 of file AverageSectionValueSampler.h.

Referenced by execute(), finalize(), and initialize().

◆ _output_vector

std::vector<VectorPostprocessorValue *> AverageSectionValueSampler::_output_vector
protected

Vector of outputs, where each entry is the vector of average values for single variable at the selected points along the axis.

Definition at line 39 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), execute(), finalize(), and initialize().

◆ _positions

std::vector<Real> AverageSectionValueSampler::_positions
protected

Axial positions along the component at which average values are computed.

Definition at line 51 of file AverageSectionValueSampler.h.

Referenced by automaticallyLocatePositions(), AverageSectionValueSampler(), execute(), finalize(), and initialize().

◆ _reference_point

const Point AverageSectionValueSampler::_reference_point
protected

Starting or reference point of the structural component to locate nodes on the cross section.

Definition at line 48 of file AverageSectionValueSampler.h.

Referenced by axialPosition().

◆ _require_equal_node_counts

const bool AverageSectionValueSampler::_require_equal_node_counts
protected

Whether to require the number of nodes at each axial location to be equal.

Definition at line 73 of file AverageSectionValueSampler.h.

Referenced by finalize().

◆ _symmetry_plane

RealVectorValue AverageSectionValueSampler::_symmetry_plane
protected

Vector normal to a symmetry plane, optionally defined if the section has a symmetry plane.

Definition at line 57 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), and execute().

◆ _tolerance

const Real AverageSectionValueSampler::_tolerance
protected

Tolerance to identify nodes on the user-prescribed cross section.

Definition at line 63 of file AverageSectionValueSampler.h.

Referenced by automaticallyLocatePositions(), and execute().

◆ _var_numbers

std::vector<unsigned int> AverageSectionValueSampler::_var_numbers
protected

Indices of the variables in their systems.

Definition at line 36 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), and execute().

◆ _variables

std::vector<VariableName> AverageSectionValueSampler::_variables
protected

Variables to output.

Definition at line 33 of file AverageSectionValueSampler.h.

Referenced by AverageSectionValueSampler(), execute(), finalize(), and initialize().


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