16 #include <deal.II/numerics/data_postprocessor.h> 18 DEAL_II_NAMESPACE_OPEN
47 std::vector<DataComponentInterpretation::DataComponentInterpretation>
52 return std::vector<DataComponentInterpretation::DataComponentInterpretation>(
61 const std::string &name,
64 , update_flags(update_flags)
70 std::vector<std::string>
73 return std::vector<std::string>(1, name);
79 std::vector<DataComponentInterpretation::DataComponentInterpretation>
82 return std::vector<DataComponentInterpretation::DataComponentInterpretation>(
100 const std::string &name,
103 , update_flags(update_flags)
109 std::vector<std::string>
112 return std::vector<std::string>(dim, name);
118 std::vector<DataComponentInterpretation::DataComponentInterpretation>
121 return std::vector<DataComponentInterpretation::DataComponentInterpretation>(
139 const std::string &name,
142 , update_flags(update_flags)
148 std::vector<std::string>
151 static_assert(dim <= 3,
152 "The following variable needs to be expanded for dim>3");
153 static const char suffixes[] = {
'x',
'y',
'z'};
155 std::vector<std::string> names;
156 for (
unsigned int d = 0; d < dim; ++d)
157 for (
unsigned int e = 0; e < dim; ++e)
158 names.push_back(name +
'_' + suffixes[d] + suffixes[e]);
165 std::vector<DataComponentInterpretation::DataComponentInterpretation>
168 return std::vector<DataComponentInterpretation::DataComponentInterpretation>(
183 #include "data_postprocessor.inst" 186 DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcPureFunctionCalled()
virtual std::vector< std::string > get_names() const override
DataPostprocessorTensor(const std::string &name, const UpdateFlags update_flags)
virtual std::vector< std::string > get_names() const override
virtual std::vector< std::string > get_names() const override
virtual UpdateFlags get_needed_update_flags() const override
virtual void evaluate_vector_field(const DataPostprocessorInputs::Vector< dim > &input_data, std::vector< Vector< double >> &computed_quantities) const
#define AssertThrow(cond, exc)
DataPostprocessorScalar(const std::string &name, const UpdateFlags update_flags)
virtual std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const override
virtual std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const override
virtual std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const override
virtual void evaluate_scalar_field(const DataPostprocessorInputs::Scalar< dim > &input_data, std::vector< Vector< double >> &computed_quantities) const
DataPostprocessorVector(const std::string &name, const UpdateFlags update_flags)
virtual UpdateFlags get_needed_update_flags() const override
virtual std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const
virtual UpdateFlags get_needed_update_flags() const override