PRISMS-PF Manual
Loading...
Searching...
No Matches
dirichlet.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2025 PRISMS Center at the University of Michigan
2// SPDX-License-Identifier: GNU Lesser General Public Version 2.1
3
4#pragma once
5
6#include <deal.II/base/function.h>
7#include <deal.II/base/point.h>
8#include <deal.II/lac/vector.h>
9
11
12#include <prismspf/config.h>
13
15
16template <unsigned int dim>
18
19template <unsigned int dim, unsigned int degree, typename number>
20class PDEOperatorBase;
21
25template <unsigned int dim, unsigned int degree, typename number>
26class DirichletConditions : public dealii::Function<dim, number>
27{
28public:
32 DirichletConditions(unsigned int _index,
33 unsigned int _boundary_id,
34 const PDEOperatorBase<dim, degree, number> &_pde_operator,
35 unsigned int spacedim);
36
37 // NOLINTBEGIN(readability-identifier-length, readability-avoid-const-params-in-decls)
38
42 number
43 value(const dealii::Point<dim> &p, const unsigned int component = 0) const override;
44
48 void
49 vector_value(const dealii::Point<dim> &p, dealii::Vector<number> &value) const override;
50
51 // NOLINTEND(readability-identifier-length, readability-avoid-const-params-in-decls)
52
53private:
54 unsigned int index;
55
56 unsigned int boundary_id;
57
59};
60
61PRISMS_PF_END_NAMESPACE
unsigned int boundary_id
Definition dirichlet.h:56
unsigned int index
Definition dirichlet.h:54
number value(const dealii::Point< dim > &p, const unsigned int component=0) const override
Scalar value.
Definition dirichlet.cc:33
DirichletConditions(unsigned int _index, unsigned int _boundary_id, const PDEOperatorBase< dim, degree, number > &_pde_operator, unsigned int spacedim)
Constructor.
Definition dirichlet.cc:18
const PDEOperatorBase< dim, degree, number > * pde_operator
Definition dirichlet.h:58
void vector_value(const dealii::Point< dim > &p, dealii::Vector< number > &value) const override
Vector value.
Definition dirichlet.cc:50
This class contains the user implementation of each PDE operator.
Definition pde_operator_base.h:24
Definition user_input_parameters.h:32
Definition conditional_ostreams.cc:20