Class Penalty2D

Inheritance Relationships

Derived Type

Class Documentation

class Mechatronix::Penalty2D

Base class for 2D penalty.

Subclassed by Mechatronix::Penalty2DTwoCurves

Evaluate

evaluate \( p(x,y) \)

virtual real_type operator()(real_type x, real_type y) const = 0
virtual real_type D_1(real_type x, real_type y) const = 0

evaluate \( \displaystyle\frac{\partial}{\partial_x} p(x,y) \)

virtual real_type D_2(real_type x, real_type y) const = 0

evaluate \( \displaystyle\frac{\partial}{\partial_y} p(x,y) \)

virtual real_type D_1_1(real_type x, real_type y) const = 0

evaluate \( \partial^2_x p(x,y) \)

virtual real_type D_1_2(real_type x, real_type y) const = 0

evaluate \( \displaystyle\frac{\partial}{\partial_x}\displaystyle\frac{\partial}{\partial_y} p(x,y) \)

virtual real_type D_2_2(real_type x, real_type y) const = 0

evaluate \( \partial^2_y p(x,y) \)

Public Functions

inline explicit Penalty2D(string const &name)

Construct penalty.

inline virtual ~Penalty2D()

Destroy penalty.

inline string const &name() const

The name of the penalty.

virtual void setup(GenericContainer const &gc) = 0

setup parameters for 2D penalty

virtual string info() const = 0

print information about the penalty

inline void info(ostream_type &stream) const
inline void set_activation_status(bool on_off)

penalty activation, true=penalty active, false=penalty disable

inline bool get_activation_status() const

read penalty activation status

Protected Attributes

string const m_name
bool m_active