How To Install libpsurface-dev on Debian 12
Introduction
In this tutorial we learn how to install libpsurface-dev
on Debian 12.
What is libpsurface-dev
libpsurface-dev is:
Psurface is a C++ library that handles piecewise linear bijections between triangulated surfaces. These surfaces can be of arbitrary shape and need not even be manifolds.
There are two main uses for psurface. When doing adaptive finite element simulations on grids with parametrized boundaries, psurface can store the parametrization. Boundary parametrizations are practically mappings from the coarse grid boundary to the actual boundary, and if that actual boundary is a triangulated surface then psurface can handle it. This is implemented, for example, in the dune-grid module of Dune.
Secondly, when doing domain decomposition methods with nonconforming interfaces, you need to relate the two interface grids to each other. Psurface can do this for you, even if your interfaces do not match geometrically. Such is the case, e.g., in contact problems. This second functionality is also available for 1d surfaces in 2d space.
The easiest way to use psurface for domain decomposition is to get the dune-grid-glue module and use it to drive psurface.
This package contains the development files.
There are three methods to install libpsurface-dev
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libpsurface-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libpsurface-dev
using apt-get
by running the following command:
sudo apt-get -y install libpsurface-dev
Install libpsurface-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpsurface-dev
using apt
by running the following command:
sudo apt -y install libpsurface-dev
Install libpsurface-dev Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libpsurface-dev
using aptitude
by running the following command:
sudo aptitude -y install libpsurface-dev
How To Uninstall libpsurface-dev on Debian 12
To uninstall only the libpsurface-dev
package we can use the following command:
sudo apt-get remove libpsurface-dev
Uninstall libpsurface-dev And Its Dependencies
To uninstall libpsurface-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libpsurface-dev
Remove libpsurface-dev Configurations and Data
To remove libpsurface-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libpsurface-dev
Remove libpsurface-dev configuration, data, and all of its dependencies
We can use the following command to remove libpsurface-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpsurface-dev
Dependencies
libpsurface-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libpsurface-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.