|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_base_parsed_convergence_table_h
17 #define dealii_base_parsed_convergence_table_h
178 const std::vector<std::set<VectorTools::NormType>> &list_of_error_norms = {
247 const std::vector<std::set<VectorTools::NormType>> &list_of_error_norms,
275 template <
typename DoFHandlerType,
typename VectorType>
278 const DoFHandlerType & vspace,
286 template <
typename DoFHandlerType,
typename VectorType>
291 const DoFHandlerType & vspace,
364 const std::function<
double()> &custom_function,
365 const bool compute_rate =
true);
370 template <
typename DoFHandlerType,
typename VectorType>
380 template <
typename DoFHandlerType,
typename VectorType>
383 DoFHandlerType::space_dimension> &mapping,
384 const DoFHandlerType &,
431 std::map<std::string, std::pair<std::function<
double()>,
bool>>
487 template <
typename DoFHandlerType,
typename VectorType>
490 const DoFHandlerType & dh,
498 solution -= solution2;
508 template <
typename DoFHandlerType,
typename VectorType>
513 const DoFHandlerType & dh,
521 solution -= solution2;
532 template <
typename DoFHandlerType,
typename VectorType>
535 const DoFHandlerType & dh,
541 DoFHandlerType::space_dimension>::mapping,
550 template <
typename DoFHandlerType,
typename VectorType>
555 const DoFHandlerType & dh,
560 const int dim = DoFHandlerType::dimension;
561 const int spacedim = DoFHandlerType::space_dimension;
570 dh.get_triangulation().n_global_active_cells();
571 const unsigned int n_dofs = dh.n_dofs();
580 else if (col ==
"dofs")
597 if (weight !=
nullptr)
601 for (
auto &f : weight_components)
609 return weight->
value(p, i);
616 std::map<VectorTools::NormType, double> errors;
625 auto components_expr = zero_components;
628 components_expr[i] = weight_components[i];
633 Vector<float> difference_per_cell(
634 dh.get_triangulation().n_global_active_cells());
638 for (
const auto &
norm : norms)
640 difference_per_cell = 0;
652 dh.get_triangulation(), difference_per_cell,
norm,
exponent);
670 const double custom_error = extra_col.second.first();
672 std::string name = extra_col.first;
void add_value(const std::string &key, const T value)
The ParsedConvergenceTable class.
void set_tex_caption(const std::string &key, const std::string &tex_caption)
std::string error_file_name
void set_scientific(const std::string &key, const bool scientific)
const unsigned int n_components
std::string to_string(const T &t)
const std::vector< ComponentMask > unique_component_masks
const std::vector< std::string > unique_component_names
void add_extra_column(const std::string &column_name, const std::function< double()> &custom_function, const bool compute_rate=true)
unsigned int n_active_cells(const internal::TriangulationImplementation::NumberCache< 1 > &c)
Abstract base class for mapping classes.
double norm(const FEValuesBase< dim > &fe, const ArrayView< const std::vector< Tensor< 1, dim >>> &Du)
#define DEAL_II_NAMESPACE_OPEN
std::map< std::string, std::pair< std::function< double()>, bool > > extra_column_functions
#define AssertDimension(dim1, dim2)
virtual RangeNumberType value(const Point< dim > &p, const unsigned int component=0) const
std::set< std::string > extra_columns
ParsedConvergenceTable(const std::vector< std::string > &component_names={"u"}, const std::vector< std::set< VectorTools::NormType >> &list_of_error_norms={ {VectorTools::H1_norm, VectorTools::L2_norm, VectorTools::Linfty_norm}})
void add_parameters(ParameterHandler &prm)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
const std::vector< std::string > component_names
void error_from_exact(const DoFHandlerType &vspace, const VectorType &solution, const Function< DoFHandlerType::space_dimension > &exact, const Function< DoFHandlerType::space_dimension > *weight=nullptr)
void difference(const DoFHandlerType &, const VectorType &, const VectorType &, const Function< DoFHandlerType::space_dimension > *weight=nullptr)
void set_tex_format(const std::string &key, const std::string &format="c")
#define DEAL_II_NAMESPACE_CLOSE
std::vector< std::set< VectorTools::NormType > > norms_per_unique_component
#define AssertThrow(cond, exc)
void prepare_table_for_output()
void set_precision(const std::string &key, const unsigned int precision)