Class WallPiecewise

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::WallPiecewise : public Mechatronix::RegularizedBase

Wall function smoothed

\[\begin{split} w(x)= \frac{1}{3} \begin{cases} 0 & x<0 \\[1em] X^4 \left( 5 - 2 X\right) & x<h \\[1em] 3+10 X\left(X-1\right) & \textrm{otherwise} \end{cases} \end{split}\]

where \( X = \frac{x}{h} \) and

\[ w(0) = 0, \qquad w(h)=1 \]

../_images/WALL_POLYNOMIAL_0.jpeg

Inizialization

inline explicit WallPiecewise()
virtual void setup(GenericContainer const &gc) override
void setup(real_type h)

Initialize piecewise. Setup parameter h

parameter is such that \( w(h)=1 \) and \( w(0)=0 \).

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate

\[\begin{split} w(x)= \frac{1}{3} \begin{cases} 0 & x<0 \\[1em] X^4 \left( 5 - 2 X\right) & x<h \\[1em] 3+10 X\left(X-1\right) & \textrm{otherwise} \end{cases} \end{split}\]

where \( X = \frac{x}{h} \) and

\[ w(0) = 0, \qquad w(h)=1 \]

../_images/WALL_POLYNOMIAL_0.jpeg

virtual real_type D(real_type x) const override

../_images/WALL_POLYNOMIAL_1.jpeg

virtual real_type DD(real_type x) const override

../_images/WALL_POLYNOMIAL_2.jpeg

Info

virtual string info() const override