25 "The FeatureFloodCount UserObject to get values from.",
26 "Use \"flood_counter\" instead.");
28 "The FeatureFloodCount UserObject to get values from.");
29 params.
addParam<
unsigned int>(
"map_index",
30 "The index of which map to retrieve values from when " 31 "using FeatureFloodCount with multiple maps.");
32 MooseEnum field_display(
"UNIQUE_REGION VARIABLE_COLORING GHOSTED_ENTITIES HALOS CENTROID " 33 "ACTIVE_BOUNDS INTERSECTS_SPECIFIED_BOUNDARY",
37 "Determines how the auxilary field should be colored. " 38 "(UNIQUE_REGION and VARIABLE_COLORING are nodal, CENTROID is " 39 "elemental, default: UNIQUE_REGION)");
49 _var_idx(isParamValid(
"map_index") ? getParam<unsigned
int>(
"map_index")
50 :
std::numeric_limits<
std::size_t>::
max()),
58 "UNIQUE_REGION, VARIABLE_COLORING, GHOSTED_ENTITIES and HALOS must be on variable " 59 "types that match the entity mode of the FeatureFloodCounter");
64 "The selected option is only available for elemental aux variables");
85 _value = std::count_if(var_to_features.begin(),
86 var_to_features.end(),
87 [](
unsigned int feature_id)
94 paramError(
"field_display",
"Unimplemented type");
virtual const std::vector< unsigned int > & getVarToFeatureVector(dof_id_type elem_id) const
Returns a list of active unique feature ids for a particular element.
virtual Real computeValue() override
registerMooseObject("PhaseFieldApp", FeatureFloodCountAux)
const Node *const & _current_node
Function auxiliary value.
FeatureFloodCountAux(const InputParameters ¶meters)
virtual void precalculateValue() override
const ExecFlagType EXEC_TIMESTEP_END
Real _value
precalculated element value
const std::size_t _var_idx
auto max(const L &left, const R &right)
This object will mark nodes or elements of continuous regions all with a unique number for the purpos...
static const unsigned int invalid_id
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem *const & _current_elem
static InputParameters validParams()
const FeatureFloodCount & _flood_counter
Function being used to compute the value of this kernel.
static InputParameters validParams()
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
virtual Real getEntityValue(dof_id_type entity_id, FieldType field_type, std::size_t var_index=0) const
void ErrorVector unsigned int
const FieldType _field_type
const ExecFlagType EXEC_INITIAL