corrected gitignore and boundary conditions

This commit is contained in:
V. Ferreira
2026-02-26 01:58:54 +01:00
parent 39edc7f96e
commit 5916d6a525
5 changed files with 6 additions and 217 deletions
+1
View File
@@ -3,3 +3,4 @@ CMakeCache.txt
compile_commands.json
CMakeFiles/
nufi_poisson
*.ipynb
+1 -1
View File
@@ -1,5 +1,5 @@
# vtk DataFile Version 3.0
#This file was generated by the deal.II library on 2026/2/24 at 3:42:25
#This file was generated by the deal.II library on 2026/2/26 at 1:54:49
ASCII
DATASET UNSTRUCTURED_GRID
+1 -1
View File
@@ -1,5 +1,5 @@
# vtk DataFile Version 3.0
#This file was generated by the deal.II library on 2026/2/24 at 3:42:25
#This file was generated by the deal.II library on 2026/2/26 at 1:54:49
ASCII
DATASET UNSTRUCTURED_GRID
+3 -16
View File
@@ -119,16 +119,6 @@ private:
const unsigned int Nv;
};
template <int dim>
class BoundaryValues : public Function<dim>
{
public:
virtual double value(const Point<dim> &p,
const unsigned int component = 0) const override
{
return 0.; // boundary value at periodic boundary
}
};
// =-=-=-=-= Poisson Solver =-=-=-=-=
@@ -215,12 +205,9 @@ void PoissonProblem<dim>::setup_system()
constraints.clear();
DoFTools::make_hanging_node_constraints(dof_handler, constraints);
// Homogeneous Dirichlet BC
VectorTools::interpolate_boundary_values(
dof_handler,
0,
Functions::ZeroFunction<dim>(),
constraints);
// 'boundary' condition phi(x_0) = 0
constraints.add_line(0);
constraints.set_inhomogeneity(0, 0.0);
constraints.close();
-199
View File
File diff suppressed because one or more lines are too long