Class WallTanhPower1

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::WallTanhPower1 : public Mechatronix::RegularizedBase

Wall function smoothed.

Inizialization

inline explicit WallTanhPower1()
virtual void setup(GenericContainer const &gc) override
void setup(real_type h, real_type epsilon)
inline void update_h(real_type h)
inline void update_epsilon(real_type epsilon)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate regularized wall

\[ \mathrm{wall}(x) = 1/2\,A \left( {\frac {\log\left( 2\,\cosh \left( \kappa\,x \right) \right) }{\kappa}}+x \right) \]

where \( A \) and \( A \) satisfy

\[ \mathrm{wall}(0) = \epsilon, \quad \mathrm{wall}(x) ~ \frac{x}{h}, \quad x\gg 0 \]

../_images/WallTanhPower1_0.jpeg

virtual real_type D(real_type x) const override

Evaluate regularized sign first derivative

../_images/WallTanhPower1_1.jpeg

virtual real_type DD(real_type x) const override

Evaluate regularized sign first derivative

../_images/WallTanhPower1_2.jpeg

Info

virtual string info() const override