![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <signed_distance_transformation.h>
Public Member Functions | |
| SignedDistanceTransformationTanh (const double tanh_thickness) | |
| double | transform_signed_distance (const double signed_distance) override |
| Public Member Functions inherited from SignedDistanceTransformationBase | |
| virtual | ~SignedDistanceTransformationBase ()=default |
Private Attributes | |
| const double | tanh_thickness |
Additional Inherited Members | |
| Static Public Member Functions inherited from SignedDistanceTransformationBase | |
| static std::shared_ptr< SignedDistanceTransformationBase > | model_cast (const Parameters::CLS_GeometricInterfaceReinitialization &geometric_redistanciation_parameters) |
Transforms the signed distance to the phase indicator with a hyperbolic tangent function.
The phase indicator is defined as:
\(\phi = 0.5 - 0.5 \tanh(d/\varepsilon)\)
where \(d\) is the signed distance and \(\varepsilon\) is a model parameter giving a measure of the interface thickness.
Definition at line 61 of file signed_distance_transformation.h.
|
inline |
Constructor of the hyperbolic tangent signed distance transformation.
| [in] | tanh_thickness | Value of the \(\varepsilon\) parameter modulating the interface thickness. |
Definition at line 70 of file signed_distance_transformation.h.
References tanh_thickness.
|
inlineoverridevirtual |
Computes the value of the phase indicator from the signed distance.
| [in] | signed_distance | Value of the signed distance |
Implements SignedDistanceTransformationBase.
Definition at line 83 of file signed_distance_transformation.h.
References tanh_thickness.
|
private |
User-defined parameter that defines the thickness of the interface. It influences its sharpness: a smaller value leads to a sharper interface.
Definition at line 93 of file signed_distance_transformation.h.