--- /dev/null
+Removed: The deprecated Functions::LevelSet namespace
+has been removed
+<br>
+(Daniel Arndt, 2023/06/30)
+++ /dev/null
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2019 - 2021 by the deal.II authors
-//
-// This file is part of the deal.II library.
-//
-// The deal.II library is free software; you can use it, redistribute
-// it, and/or modify it under the terms of the GNU Lesser General
-// Public License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-// The full text of the license can be found in the file LICENSE.md at
-// the top level directory of deal.II.
-//
-// ---------------------------------------------------------------------
-
-#ifndef dealii_function_level_set_h
-#define dealii_function_level_set_h
-
-#include <deal.II/base/config.h>
-
-#include <deal.II/base/function_signed_distance.h>
-
-DEAL_II_NAMESPACE_OPEN
-
-namespace Functions
-{
- namespace LevelSet
- {
- template <int dim>
- using Sphere DEAL_II_DEPRECATED = SignedDistance::Sphere<dim>;
-
- template <int dim>
- using Plane DEAL_II_DEPRECATED = SignedDistance::Plane<dim>;
-
- } // namespace LevelSet
-} // namespace Functions
-
-DEAL_II_NAMESPACE_CLOSE
-
-#endif
* what the function values should be.
*/
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include "../tests.h"
* what the function values should be.
*/
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include "../tests.h"
// ---------------------------------------------------------------------
#include <deal.II/base/exceptions.h>
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/fe/fe_q.h>
{
Point<dim> point_on_zero_contour;
point_on_zero_contour[0] = 1.5;
- const Functions::LevelSet::Plane<dim> analytical_levelset(
+ const Functions::SignedDistance::Plane<dim> analytical_levelset(
point_on_zero_contour, Point<dim>::unit_vector(0));
level_set.reinit(dof_handler.n_dofs());
* quadratures.
*/
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/geometry_info.h>
#include <deal.II/base/quadrature_lib.h>
for (int plane_direction = 0; plane_direction < dim; ++plane_direction)
{
const Tensor<1, dim> normal = Point<dim>::unit_vector(plane_direction);
- const Functions::LevelSet::Plane<dim> levelset(center, normal);
+ const Functions::SignedDistance::Plane<dim> levelset(center, normal);
// Test all faces that are intersected by the plane.
for (unsigned int f = 0; f < GeometryInfo<dim>::faces_per_cell; ++f)
{
deallog << "test_1D" << std::endl;
- const int dim = 1;
- Point<dim> center(.5);
- const Tensor<1, dim> normal = Point<dim>::unit_vector(0);
- const Functions::LevelSet::Plane<dim> levelset(center, normal);
+ const int dim = 1;
+ Point<dim> center(.5);
+ const Tensor<1, dim> normal = Point<dim>::unit_vector(0);
+ const Functions::SignedDistance::Plane<dim> levelset(center, normal);
for (unsigned int f = 0; f < GeometryInfo<dim>::faces_per_cell; ++f)
{
// ---------------------------------------------------------------------
#include <deal.II/base/exceptions.h>
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/std_cxx17/optional.h>
{
Point<dim> point_on_zero_contour;
point_on_zero_contour[0] = 1.5;
- const Functions::LevelSet::Plane<dim> analytical_levelset(
+ const Functions::SignedDistance::Plane<dim> analytical_levelset(
point_on_zero_contour, Point<dim>::unit_vector(0));
level_set.reinit(dof_handler.n_dofs());
#include <deal.II/base/exceptions.h>
#include <deal.II/base/function.h>
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/point.h>
#include <deal.II/dofs/dof_handler.h>
plane_normal[0] = 1;
const Point<dim> origo;
- const Functions::LevelSet::Plane<dim> level_set(origo, plane_normal);
+ const Functions::SignedDistance::Plane<dim> level_set(origo, plane_normal);
classify_with_discrete_and_analytic_level_set(level_set);
}
*/
#include <deal.II/base/function.h>
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/point.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/symmetric_tensor.h>
{
deallog << "direction=" << direction << std::endl;
const Tensor<1, dim> normal = Point<dim>::unit_vector(direction);
- const Functions::LevelSet::Plane<dim> level_set(center, normal);
+ const Functions::SignedDistance::Plane<dim> level_set(center, normal);
create_and_print_quadratures(level_set);
}
}
Point<dim> point_in_plane;
point_in_plane[0] = edge_length;
- const Functions::LevelSet::Plane<dim> level_set(point_in_plane, normal);
+ const Functions::SignedDistance::Plane<dim> level_set(point_in_plane, normal);
create_and_print_quadratures(level_set);
}
normal[i] = 1;
center(i) += epsilon;
}
- const Functions::LevelSet::Plane<dim> level_set(center, normal);
+ const Functions::SignedDistance::Plane<dim> level_set(center, normal);
create_and_print_quadratures(level_set);
}
const double radius = 4;
Point<dim> center;
center[dim - 1] = radius;
- const Functions::LevelSet::Sphere<dim> level_set(center, radius);
+ const Functions::SignedDistance::Sphere<dim> level_set(center, radius);
typename QuadratureGenerator<dim>::AdditionalData data;
data.split_in_half = false;
//
// ---------------------------------------------------------------------
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/quadrature.h>
#include <deal.II/base/quadrature_lib.h>
// Description of the immersed domain.
- const Functions::LevelSet::Sphere<dim> level_set;
+ const Functions::SignedDistance::Sphere<dim> level_set;
// Create a quadrature generator.
const hp::QCollection<1> q_collection1D(QGauss<1>(2));
*/
#include <deal.II/base/bounding_box.h>
-#include <deal.II/base/function_level_set.h>
#include <deal.II/base/function_lib.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/geometry_info.h>
#include <deal.II/base/point.h>
#include <deal.II/base/tensor.h>
{
deallog << "test_roots_sorted_not_duplicated" << std::endl;
- std::vector<Functions::LevelSet::Plane<1>> linear_functions;
+ std::vector<Functions::SignedDistance::Plane<1>> linear_functions;
const std::vector<double> roots = {.75, .25, .25};
for (unsigned int i = 0; i < roots.size(); ++i)
Tensor<1, 1> normal;
normal[0] = 1;
const Point<1> point(roots.at(i));
- linear_functions.push_back(Functions::LevelSet::Plane<1>(point, normal));
+ linear_functions.push_back(
+ Functions::SignedDistance::Plane<1>(point, normal));
}
const std::vector<std::reference_wrapper<const Function<1>>> functions(
* in NonMatching::internal::QuadratureGeneratorImplementation.
*/
-#include <deal.II/base/function_level_set.h>
+#include <deal.II/base/function_signed_distance.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/hp/q_collection.h>
Point<dim> point_through_plane = .5 * Point<dim>::unit_vector(dim - 1);
Tensor<1, dim> plane_normal = Point<dim>::unit_vector(dim - 1);
- const Functions::LevelSet::Plane<dim> level_set(point_through_plane,
- plane_normal);
+ const Functions::SignedDistance::Plane<dim> level_set(point_through_plane,
+ plane_normal);
create_and_print_partitioning(level_set);
}
const Tensor<1, dim> plane_normal = Point<dim>::unit_vector(dim - 1);
Point<dim> point_in_plane;
point_in_plane[dim - 1] = -.1;
- const Functions::LevelSet::Plane<dim> level_set(point_in_plane, plane_normal);
+ const Functions::SignedDistance::Plane<dim> level_set(point_in_plane,
+ plane_normal);
create_and_print_partitioning(level_set);
}
const Tensor<1, dim> plane_normal = Point<dim>::unit_vector(dim - 1);
Point<dim> point_in_plane;
point_in_plane[dim - 1] = 1.1;
- const Functions::LevelSet::Plane<dim> level_set(point_in_plane, plane_normal);
+ const Functions::SignedDistance::Plane<dim> level_set(point_in_plane,
+ plane_normal);
create_and_print_partitioning(level_set);
}