mirror of
https://codeberg.org/vcbferreira/NuFI_deal.ii
synced 2026-08-12 14:33:18 +02:00
corrected gitignore and boundary conditions
This commit is contained in:
@@ -3,3 +3,4 @@ CMakeCache.txt
|
||||
compile_commands.json
|
||||
CMakeFiles/
|
||||
nufi_poisson
|
||||
*.ipynb
|
||||
|
||||
+1
-1
@@ -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
@@ -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
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user