14 te_type x{node.
x}, y{node.
y}, z{node.
z}, mu{ordinate.
x()};
16 {{
"x", &x}, {
"y", &y}, {
"z", &z}, {
"mu", &mu}});
21 throw std::runtime_error(
"Parse error at " +
Defines a solid angle, or ordinate, in spherical geometry.
double x() const
Evaluate the x-direction cosine.
double EvaluateAtNode(const Node &node, const Ordinate &ordinate) override
Evaluate the parsed expression_ at a node in a particular direction. The expression may reference the...
ParsedVolumetricSource(const std::string expression)
Construct a new Parsed Volumetric Source object.
const std::string expression_
Function expression to be evaluated.
bool success() const noexcept
te_type evaluate()
Evaluates expression passed to compile() previously and returns its result.
void set_variables_and_functions(std::set< te_variable > vars)
Sets the list of custom variables and functions.
const std::string & get_last_error_message() const noexcept
int64_t get_last_error_position() const noexcept
A point in the mesh holding its coordinates, boundary info, and flux solution values.
double x
X-coordinate of the node.
double z
Z-coordinate of the node.
double y
Y-coordinate of the node.
float te_type
Define this to use float instead of double for the parser's data type.