PRISMS-PF Manual
Loading...
Searching...
No Matches
nonuniform_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 NonuniformDirichlet : public dealii::Function<dim, number>
27{
28public:
32 NonuniformDirichlet(unsigned int _index,
33 unsigned int _boundary_id,
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
Function for user-implemented nonuniform dirichlet boundary condition.
Definition nonuniform_dirichlet.h:27
number value(const dealii::Point< dim > &p, const unsigned int component=0) const override
Scalar value.
Definition nonuniform_dirichlet.cc:33
const PDEOperatorBase< dim, degree, number > * pde_operator
Definition nonuniform_dirichlet.h:58
void vector_value(const dealii::Point< dim > &p, dealii::Vector< number > &value) const override
Vector value.
Definition nonuniform_dirichlet.cc:54
unsigned int index
Definition nonuniform_dirichlet.h:54
unsigned int boundary_id
Definition nonuniform_dirichlet.h:56
This class contains the user implementation of each PDE operator.
Definition pde_operator_base.h:24
Definition user_input_parameters.h:32
@ Value
Use value of the variable as a criterion for refinement.
Definition grid_refiner_criterion.h:31
Definition conditional_ostreams.cc:20