15 "name",
"Named to be associated with this field function");
20 "The type of the variable for this field function");
25 "The number of components to attach to the variable. "
26 "Only effective when \"type\" is VectorN.");
32 AllowableRangeList::New({
"Scalar",
"Vector2",
"Vector3",
"VectorN"}));
35 AllowableRangeLowLimit::New(1));
44 text_name_(params.GetParamValue<std::string>(
"name")),
45 unknown_((params.GetParamValue<std::string>(
"unknown_type") ==
"Scalar")
47 : (params.GetParamValue<std::string>(
"unknown_type") ==
"Vector2")
49 : (params.GetParamValue<std::string>(
"unknown_type") ==
"Vector3")
51 : (params.GetParamValue<std::string>(
"unknown_type") ==
"VectorN")
54 params.GetParamValue<unsigned int>(
"num_components"))
64 : text_name_(text_name),
65 unknown_(std::move(unknown)),
74 auto ff_ptr = std::dynamic_pointer_cast<FieldFunction>(new_object);
77 "Bad trouble when casting object to field function");
#define ChiLogicalErrorIf(condition, message)
static std::vector< chi_physics::FieldFunctionPtr > field_function_stack
static chi::InputParameters GetInputParameters()
void PushOntoStack(std::shared_ptr< ChiObject > &new_object) override
Overrides the stack placement so that FieldFunctions go to the field function stack.
static chi::InputParameters GetInputParameters()
FieldFunction(const chi::InputParameters ¶ms)
chi_math::Unknown unknown_