6#include <deal.II/base/point.h>
7#include <deal.II/base/tensor.h>
8#include <deal.II/base/types.h>
9#include <deal.II/base/utilities.h>
11#include <boost/algorithm/string/predicate.hpp>
19#include <prismspf/config.h>
24#include <unordered_set>
58 return "TimeDependentDirichlet";
60 return "TimeDependentNeumann";
62 return "UniformDirichlet";
64 return "UniformNeumann";
133 return dir_cond.second == Condition::TimeDependentDirichlet ||
134 dir_cond.second == Condition::TimeDependentNeumann;
139template <
unsigned int dim>
154 return comp.has_time_dependent_bcs();
162template <
unsigned int dim>
190template <
unsigned int dim>
196template <
unsigned int dim>
201 <<
"================================================\n"
202 <<
" Boundary Parameters\n"
203 <<
"================================================\n";
205 for (
const auto &[index,
component_map] : boundary_condition_list)
static dealii::ConditionalOStream & pout_summary()
Log output stream for writing a summary.log file.
Definition conditional_ostreams.cc:34
Condition condition_from_string(const std::string &boundary_string)
Enum to string for type.
Definition constraint_parameters.h:76
Condition
Condition of boundary condition.
Definition constraint_parameters.h:32
@ Neumann
Definition constraint_parameters.h:35
@ UniformDirichlet
Definition constraint_parameters.h:38
@ TimeDependentDirichlet
Definition constraint_parameters.h:36
@ Periodic
Definition constraint_parameters.h:40
@ Natural
Definition constraint_parameters.h:33
@ Dirichlet
Definition constraint_parameters.h:34
@ TimeDependentNeumann
Definition constraint_parameters.h:37
@ UniformNeumann
Definition constraint_parameters.h:39
std::string to_string(Condition boundary_type)
Enum to string for type.
Definition constraint_parameters.h:47
@ Value
Use value of the variable as a criterion for refinement.
Definition grid_refiner_criterion.h:31
Definition conditional_ostreams.cc:20
Struct that holds boundary parameters.
Definition constraint_parameters.h:164
void print_parameter_summary() const
Print parameters to summary.log.
Definition constraint_parameters.h:198
void validate()
Postprocess and validate parameters.
Definition constraint_parameters.h:192
bool has_time_dependent_bcs() const
Whether there are time-dependent boundary conditions.
Definition constraint_parameters.h:182
std::unordered_map< std::string, FieldConstraints< dim > > boundary_condition_list
Definition constraint_parameters.h:187
Struct that stores relevant information for boundary conditions of a certain field.
Definition constraint_parameters.h:119
bool has_time_dependent_bcs() const
Definition constraint_parameters.h:127
std::map< unsigned int, Condition > conditions
Definition constraint_parameters.h:124
Definition constraint_parameters.h:141
bool has_time_dependent_bcs() const
Definition constraint_parameters.h:148
std::array< ComponentConditions, dim > component_constraints
Definition constraint_parameters.h:142