20#ifndef LIBMESH_PARSED_FEM_FUNCTION_PARAMETER_H
21#define LIBMESH_PARSED_FEM_FUNCTION_PARAMETER_H
25#include "libmesh/libmesh_common.h"
26#include "libmesh/parameter_accessor.h"
35template <
typename T>
class ParsedFEMFunction;
49template <
typename T=Number>
65 std::string param_name) :
77 virtual void set (
const T & new_value)
override {
84 virtual const T &
get ()
const override {
92 virtual std::unique_ptr<ParameterAccessor<T>>
clone()
const override {
93 return std::make_unique<ParsedFEMFunctionParameter<T>>(
_func,
_name);
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
virtual void set(const T &new_value) override
Setter: change the value of the parameter we access.
virtual const T & get() const override
ParsedFEMFunction< T > & _func
libMesh::Number _current_val
virtual std::unique_ptr< ParameterAccessor< T > > clone() const override
virtual ParameterAccessor< T > & operator=(T *)
A simple reseater won't work with a parsed function.
ParsedFEMFunctionParameter(ParsedFEMFunction< T > &func_ref, std::string param_name)
Constructor: take the function to be modified and the name of the inline variable within it which rep...
ParsedFEMFunction provides support for FParser-based parsed functions in FEMSystem.
The libMesh namespace provides an interface to certain functionality in the library.