CubicBarrier¶
-
template <typename T = double>
class CubicBarrier : public ipc::BarrierBase<double>;¶ Inheritance diagram for ipc::CubicBarrier:
Collaboration diagram for ipc::CubicBarrier:
Cubic barrier function from [Ando 2024].
Public Functions¶
- CubicBarrier() = default;¶
- virtual T operator()(const T d, const T dhat) const override;¶
Weak barrier function.
\[ b(d) = -\frac{2}{3\hat{d}} (d - \hat{d})^3 \]
- virtual T first_derivative(const T d, const T dhat) const override;¶
Derivative of the barrier function.
\[ b'(d) = -2 (d - \hat{d})^2 \]