Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
signed_distance_transformation.cc
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2025-2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
5
6std::shared_ptr<SignedDistanceTransformationBase>
9 &geometric_redistanciation_parameters)
10{
11 if (geometric_redistanciation_parameters.transformation_type ==
13 return std::make_shared<SignedDistanceTransformationPiecewisePolynomial>(
14 geometric_redistanciation_parameters.max_reinitialization_distance);
15 else
16 return std::make_shared<SignedDistanceTransformationTanh>(
17 geometric_redistanciation_parameters.tanh_thickness);
18}
static std::shared_ptr< SignedDistanceTransformationBase > model_cast(const Parameters::CLS_GeometricInterfaceReinitialization &geometric_redistanciation_parameters)
Instantiate and return a pointer to a SignedDistanceTransformationBase object by casting it to the pr...
Parameters for geometric reinitialization of the interface used with the CLS solver.
double max_reinitialization_distance
Maximum reinitialization distance value.
double tanh_thickness
Interface thickness for the tanh transformation.