36 namespace PointValueHistoryImplementation
42 const std::vector<types::global_dof_index> &new_sol_indices)
44 requested_location = new_requested_location;
45 support_point_locations = new_locations;
46 solution_indices = new_sol_indices;
55 const unsigned int n_independent_variables)
56 : n_indep(n_independent_variables)
68 std::vector<std::vector<double>>(
n_indep, std::vector<double>(0));
77 const unsigned int n_independent_variables)
78 : dof_handler(&dof_handler)
79 , n_indep(n_independent_variables)
91 std::vector<std::vector<double>>(
n_indep, std::vector<double>(0));
112 closed = point_value_history.
closed;
113 cleared = point_value_history.
cleared;
119 n_indep = point_value_history.
n_indep;
123 if (have_dof_handler)
126 dof_handler->get_triangulation().signals.any_change.connect(
127 [
this]() { this->tria_change_listener(); });
145 closed = point_value_history.
closed;
146 cleared = point_value_history.
cleared;
152 n_indep = point_value_history.
n_indep;
156 if (have_dof_handler)
159 dof_handler->get_triangulation().signals.any_change.connect(
160 [
this]() { this->tria_change_listener(); });
171 if (have_dof_handler)
173 tria_listener.disconnect();
187 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
188 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
200 dof_handler->get_fe().get_unit_support_points());
202 support_point_quadrature,
204 unsigned int n_support_points =
205 dof_handler->get_fe().get_unit_support_points().size();
206 unsigned int n_components = dof_handler->get_fe(0).n_components();
211 dof_handler->begin_active();
219 std::vector<unsigned int> current_fe_index(n_components,
222 std::vector<Point<dim>> current_points(n_components,
Point<dim>());
223 for (
unsigned int support_point = 0; support_point < n_support_points;
227 unsigned int component =
228 dof_handler->get_fe().system_to_component_index(support_point).first;
230 current_fe_index[component] = support_point;
243 for (; cell != endc; ++cell)
247 for (
unsigned int support_point = 0; support_point < n_support_points;
250 unsigned int component = dof_handler->get_fe()
251 .system_to_component_index(support_point)
257 location.
distance(current_points[component]))
260 current_points[component] = test_point;
262 current_fe_index[component] = support_point;
268 std::vector<types::global_dof_index> local_dof_indices(
269 dof_handler->get_fe().n_dofs_per_cell());
270 std::vector<types::global_dof_index> new_solution_indices;
271 current_cell->get_dof_indices(local_dof_indices);
291 new_solution_indices.reserve(dof_handler->get_fe(0).n_components());
292 for (
unsigned int component = 0;
293 component < dof_handler->get_fe(0).n_components();
296 new_solution_indices.push_back(
297 local_dof_indices[current_fe_index[component]]);
301 new_point_geometry_data(location, current_points, new_solution_indices);
302 point_geometry_data.push_back(new_point_geometry_data);
304 for (
auto &data_entry : data_store)
308 (component_mask.find(data_entry.first))->
second;
310 data_entry.second.resize(data_entry.second.size() + n_stored);
328 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
329 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
342 dof_handler->get_fe().get_unit_support_points());
344 support_point_quadrature,
346 unsigned int n_support_points =
347 dof_handler->get_fe().get_unit_support_points().size();
348 unsigned int n_components = dof_handler->get_fe(0).n_components();
353 dof_handler->begin_active();
363 std::vector<typename DoFHandler<dim>::active_cell_iterator> current_cell(
364 locations.size(), cell);
367 std::vector<Point<dim>> temp_points(n_components,
Point<dim>());
368 std::vector<unsigned int> temp_fe_index(n_components, 0);
369 for (
unsigned int support_point = 0; support_point < n_support_points;
373 unsigned int component =
374 dof_handler->get_fe().system_to_component_index(support_point).first;
376 temp_fe_index[component] = support_point;
378 std::vector<std::vector<Point<dim>>> current_points(
379 locations.size(), temp_points);
380 std::vector<std::vector<unsigned int>> current_fe_index(locations.size(),
392 for (; cell != endc; ++cell)
395 for (
unsigned int support_point = 0; support_point < n_support_points;
398 unsigned int component = dof_handler->get_fe()
399 .system_to_component_index(support_point)
404 for (
unsigned int point = 0; point < locations.size(); ++point)
406 if (locations[point].distance(test_point) <
407 locations[point].distance(current_points[point][component]))
410 current_points[point][component] = test_point;
411 current_cell[point] = cell;
412 current_fe_index[point][component] = support_point;
418 std::vector<types::global_dof_index> local_dof_indices(
419 dof_handler->get_fe().n_dofs_per_cell());
420 for (
unsigned int point = 0; point < locations.size(); ++point)
422 current_cell[point]->get_dof_indices(local_dof_indices);
423 std::vector<types::global_dof_index> new_solution_indices;
425 new_solution_indices.reserve(dof_handler->get_fe(0).n_components());
426 for (
unsigned int component = 0;
427 component < dof_handler->get_fe(0).n_components();
430 new_solution_indices.push_back(
431 local_dof_indices[current_fe_index[point][component]]);
435 new_point_geometry_data(locations[point],
436 current_points[point],
437 new_solution_indices);
439 point_geometry_data.push_back(new_point_geometry_data);
441 for (
auto &data_entry : data_store)
445 (component_mask.find(data_entry.first))->
second;
447 data_entry.second.resize(data_entry.second.size() + n_stored);
463 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
464 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
467 if (mask.represents_the_all_selected_mask() ==
false)
468 component_mask.insert(std::make_pair(vector_name, mask));
470 component_mask.insert(
471 std::make_pair(vector_name,
473 dof_handler->get_fe(0).n_components(),
true))));
478 std::pair<std::string, std::vector<std::string>> empty_names(
479 vector_name, std::vector<std::string>());
480 component_names_map.insert(empty_names);
484 std::pair<std::string, std::vector<std::vector<double>>> pair_data;
485 pair_data.first = vector_name;
486 const unsigned int n_stored =
487 (mask.represents_the_all_selected_mask() ==
false ?
488 mask.n_selected_components() :
489 dof_handler->get_fe(0).n_components());
492 point_geometry_data.size() * n_stored;
493 std::vector<std::vector<double>> vector_size(n_datastreams,
494 std::vector<double>(0));
495 pair_data.second = std::move(vector_size);
496 data_store.insert(pair_data);
503 const unsigned int n_components)
505 ComponentMask temp_mask(std::vector<bool>(n_components,
true));
506 add_field_name(vector_name, temp_mask);
513 const std::string &vector_name,
514 const std::vector<std::string> &component_names)
516 typename std::map<std::string, std::vector<std::string>>::iterator names =
517 component_names_map.find(vector_name);
518 Assert(names != component_names_map.end(),
521 typename std::map<std::string, ComponentMask>::iterator mask =
522 component_mask.find(vector_name);
523 Assert(mask != component_mask.end(),
ExcMessage(
"vector_name not in class"));
524 unsigned int n_stored = mask->second.n_selected_components();
525 Assert(component_names.size() == n_stored,
528 names->second = component_names;
535 const std::vector<std::string> &independent_names)
537 Assert(independent_names.size() == n_indep,
540 indep_names = independent_names;
558 dof_handler =
nullptr;
559 have_dof_handler =
false;
575template <
typename VectorType>
578 const VectorType &solution)
584 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
585 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
591 static_cast<int>(independent_values[0].size())) < 2,
599 typename std::map<std::string, std::vector<std::vector<double>>>::iterator
600 data_store_field = data_store.find(vector_name);
601 Assert(data_store_field != data_store.end(),
604 typename std::map<std::string, ComponentMask>::iterator mask =
605 component_mask.find(vector_name);
606 Assert(mask != component_mask.end(),
ExcMessage(
"vector_name not in class"));
608 unsigned int n_stored =
609 mask->second.n_selected_components(dof_handler->get_fe(0).n_components());
611 typename std::vector<
613 point = point_geometry_data.begin();
614 for (
unsigned int data_store_index = 0; point != point_geometry_data.end();
615 ++point, ++data_store_index)
622 for (
unsigned int store_index = 0, comp = 0;
623 comp < dof_handler->get_fe(0).n_components();
626 if (mask->second[comp])
628 unsigned int solution_index = point->solution_indices[comp];
630 ->second[data_store_index * n_stored + store_index]
643template <
typename VectorType>
646 const std::vector<std::string> &vector_names,
647 const VectorType &solution,
655 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
660 static_cast<int>(independent_values[0].size())) < 2,
670 "The update of normal vectors may not be requested for evaluation of "
671 "data on cells via DataPostprocessor."));
672 FEValues<dim> fe_values(dof_handler->get_fe(), quadrature, update_flags);
673 unsigned int n_components = dof_handler->get_fe(0).n_components();
674 unsigned int n_quadrature_points = quadrature.
size();
676 unsigned int n_output_variables = data_postprocessor.
get_names().size();
681 std::vector<typename VectorType::value_type> scalar_solution_values(
682 n_quadrature_points);
683 std::vector<Tensor<1, dim, typename VectorType::value_type>>
684 scalar_solution_gradients(n_quadrature_points);
685 std::vector<Tensor<2, dim, typename VectorType::value_type>>
686 scalar_solution_hessians(n_quadrature_points);
688 std::vector<Vector<typename VectorType::value_type>> vector_solution_values(
691 std::vector<std::vector<Tensor<1, dim, typename VectorType::value_type>>>
692 vector_solution_gradients(
697 std::vector<std::vector<Tensor<2, dim, typename VectorType::value_type>>>
698 vector_solution_hessians(
704 typename std::vector<
706 point = point_geometry_data.begin();
707 Assert(!dof_handler->get_triangulation().is_mixed_mesh(),
709 const auto reference_cell =
710 dof_handler->get_triangulation().get_reference_cells()[0];
711 for (
unsigned int data_store_index = 0; point != point_geometry_data.end();
712 ++point, ++data_store_index)
715 const Point<dim> requested_location = point->requested_location;
718 reference_cell.template get_default_linear_mapping<dim>(),
725 std::vector<Vector<double>> computed_quantities(
729 std::vector<Point<dim>> quadrature_points =
731 double distance = cell->diameter();
732 unsigned int selected_point = 0;
733 for (
unsigned int q_point = 0; q_point < n_quadrature_points; ++q_point)
735 if (requested_location.
distance(quadrature_points[q_point]) <
738 selected_point = q_point;
740 requested_location.
distance(quadrature_points[q_point]);
746 if (n_components == 1)
764 std::vector<double>(1, scalar_solution_values[selected_point]);
769 scalar_solution_gradients);
771 std::vector<Tensor<1, dim>>(
772 1, scalar_solution_gradients[selected_point]);
777 scalar_solution_hessians);
779 std::vector<Tensor<2, dim>>(
780 1, scalar_solution_hessians[selected_point]);
785 std::vector<Point<dim>>(1, quadrature_points[selected_point]);
789 computed_quantities);
801 std::copy(vector_solution_values[selected_point].
begin(),
802 vector_solution_values[selected_point].
end(),
808 vector_solution_gradients);
811 std::copy(vector_solution_gradients[selected_point].
begin(),
812 vector_solution_gradients[selected_point].
end(),
818 vector_solution_hessians);
821 std::copy(vector_solution_hessians[selected_point].
begin(),
822 vector_solution_hessians[selected_point].
end(),
827 std::vector<Point<dim>>(1, quadrature_points[selected_point]);
830 computed_quantities);
836 typename std::vector<std::string>::const_iterator name =
837 vector_names.begin();
838 for (; name != vector_names.end(); ++name)
840 typename std::map<std::string,
841 std::vector<std::vector<double>>>::iterator
842 data_store_field = data_store.find(*name);
843 Assert(data_store_field != data_store.end(),
846 typename std::map<std::string, ComponentMask>::iterator mask =
847 component_mask.find(*name);
848 Assert(mask != component_mask.end(),
851 unsigned int n_stored =
852 mask->second.n_selected_components(n_output_variables);
856 for (
unsigned int store_index = 0, comp = 0;
857 comp < n_output_variables;
860 if (mask->second[comp])
863 ->second[data_store_index * n_stored + store_index]
864 .push_back(computed_quantities[0](comp));
875template <
typename VectorType>
878 const std::string &vector_name,
879 const VectorType &solution,
883 std::vector<std::string> vector_names;
884 vector_names.push_back(vector_name);
885 evaluate_field(vector_names, solution, data_postprocessor, quadrature);
891template <
typename VectorType>
894 const std::string &vector_name,
895 const VectorType &solution)
897 using number =
typename VectorType::value_type;
902 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
908 static_cast<int>(independent_values[0].size())) < 2,
916 typename std::map<std::string, std::vector<std::vector<double>>>::iterator
917 data_store_field = data_store.find(vector_name);
918 Assert(data_store_field != data_store.end(),
921 typename std::map<std::string, ComponentMask>::iterator mask =
922 component_mask.find(vector_name);
923 Assert(mask != component_mask.end(),
ExcMessage(
"vector_name not in class"));
925 unsigned int n_stored =
926 mask->second.n_selected_components(dof_handler->get_fe(0).n_components());
928 typename std::vector<
930 point = point_geometry_data.begin();
932 for (
unsigned int data_store_index = 0; point != point_geometry_data.end();
933 ++point, ++data_store_index)
940 point->requested_location,
945 for (
unsigned int store_index = 0, comp = 0; comp < mask->second.size();
948 if (mask->second[comp])
951 ->second[data_store_index * n_stored + store_index]
952 .push_back(value(comp));
968 Assert(deep_check(
false), ExcDataLostSync());
970 dataset_key.push_back(key);
978 const std::vector<double> &indep_values)
984 Assert(indep_values.size() == n_indep,
986 Assert(n_indep != 0, ExcNoIndependent());
988 static_cast<int>(independent_values[0].size())) < 2,
991 for (
unsigned int component = 0; component < n_indep; ++component)
992 independent_values[component].
push_back(indep_values[component]);
1000 const std::string &base_name,
1001 const std::vector<
Point<dim>> &postprocessor_locations)
1010 std::string filename = base_name +
"_indep.gpl";
1011 std::ofstream to_gnuplot(filename);
1013 to_gnuplot <<
"# Data independent of mesh location\n";
1016 to_gnuplot <<
"# <Key> ";
1018 if (indep_names.size() > 0)
1020 for (
const auto &indep_name : indep_names)
1022 to_gnuplot <<
"<" << indep_name <<
"> ";
1028 for (
unsigned int component = 0; component < n_indep; ++component)
1030 to_gnuplot <<
"<Indep_" << component <<
"> ";
1035 for (
unsigned int key = 0; key < dataset_key.size(); ++key)
1037 to_gnuplot << dataset_key[key];
1039 for (
unsigned int component = 0; component < n_indep; ++component)
1041 to_gnuplot <<
" " << independent_values[component][key];
1052 if (have_dof_handler)
1054 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
1056 postprocessor_locations.size() ==
1057 point_geometry_data.size(),
1059 point_geometry_data.size()));
1074 typename std::vector<internal::PointValueHistoryImplementation::
1075 PointGeometryData<dim>>::iterator point =
1076 point_geometry_data.begin();
1077 for (
unsigned int data_store_index = 0;
1078 point != point_geometry_data.end();
1079 ++point, ++data_store_index)
1083 std::string filename = base_name +
"_" +
1090 std::ofstream to_gnuplot(filename);
1095 to_gnuplot <<
"# Requested location: " << point->requested_location
1097 to_gnuplot <<
"# DoF_index : Support location (for each component)\n";
1098 for (
unsigned int component = 0;
1099 component < dof_handler->get_fe(0).n_components();
1102 to_gnuplot <<
"# " << point->solution_indices[component] <<
" : "
1103 << point->support_point_locations[component] <<
'\n';
1105 if (triangulation_changed)
1107 <<
"# (Original components and locations, may be invalidated by mesh change.)\n";
1109 if (postprocessor_locations.size() != 0)
1111 to_gnuplot <<
"# Postprocessor location: "
1112 << postprocessor_locations[data_store_index];
1113 if (triangulation_changed)
1114 to_gnuplot <<
" (may be approximate)\n";
1116 to_gnuplot <<
"#\n";
1120 to_gnuplot <<
"# <Key> ";
1122 if (indep_names.size() > 0)
1124 for (
const auto &indep_name : indep_names)
1126 to_gnuplot <<
"<" << indep_name <<
"> ";
1131 for (
unsigned int component = 0; component < n_indep; ++component)
1133 to_gnuplot <<
"<Indep_" << component <<
"> ";
1137 for (
const auto &data_entry : data_store)
1139 typename std::map<std::string, ComponentMask>::iterator mask =
1140 component_mask.find(data_entry.first);
1141 unsigned int n_stored = mask->second.n_selected_components();
1142 std::vector<std::string> names =
1143 (component_names_map.find(data_entry.first))->
second;
1145 if (names.size() > 0)
1149 for (
const auto &name : names)
1151 to_gnuplot <<
"<" << name <<
"> ";
1156 for (
unsigned int component = 0; component < n_stored;
1159 to_gnuplot <<
"<" << data_entry.first <<
"_" << component
1167 for (
unsigned int key = 0; key < dataset_key.size(); ++key)
1169 to_gnuplot << dataset_key[key];
1171 for (
unsigned int component = 0; component < n_indep; ++component)
1173 to_gnuplot <<
" " << independent_values[component][key];
1176 for (
const auto &data_entry : data_store)
1178 typename std::map<std::string, ComponentMask>::iterator mask =
1179 component_mask.find(data_entry.first);
1180 unsigned int n_stored = mask->second.n_selected_components();
1182 for (
unsigned int component = 0; component < n_stored;
1187 << (data_entry.second)[data_store_index * n_stored +
1208 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
1209 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
1213 typename std::vector<
1215 point = point_geometry_data.begin();
1216 for (; point != point_geometry_data.end(); ++point)
1218 for (
unsigned int component = 0;
1219 component < dof_handler->get_fe(0).n_components();
1222 dof_vector(point->solution_indices[component]) = 1;
1232 std::vector<std::vector<
Point<dim>>> &locations)
1235 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
1236 AssertThrow(!triangulation_changed, ExcDoFHandlerChanged());
1238 std::vector<std::vector<Point<dim>>> actual_points;
1239 typename std::vector<
1241 point = point_geometry_data.begin();
1243 for (; point != point_geometry_data.end(); ++point)
1245 actual_points.push_back(point->support_point_locations);
1247 locations = std::move(actual_points);
1259 AssertThrow(have_dof_handler, ExcDoFHandlerRequired());
1261 locations = std::vector<Point<dim>>();
1266 unsigned int n_quadrature_points = quadrature.
size();
1267 std::vector<Point<dim>> evaluation_points;
1270 Assert(!dof_handler->get_triangulation().is_mixed_mesh(),
1272 const auto reference_cell =
1273 dof_handler->get_triangulation().get_reference_cells()[0];
1274 for (
const auto &point : point_geometry_data)
1278 Point<dim> requested_location = point.requested_location;
1281 reference_cell.template get_default_linear_mapping<dim>(),
1285 fe_values.reinit(cell);
1287 evaluation_points = fe_values.get_quadrature_points();
1288 double distance = cell->diameter();
1289 unsigned int selected_point = 0;
1291 for (
unsigned int q_point = 0; q_point < n_quadrature_points; ++q_point)
1293 if (requested_location.
distance(evaluation_points[q_point]) <
1296 selected_point = q_point;
1298 requested_location.
distance(evaluation_points[q_point]);
1302 locations.push_back(evaluation_points[selected_point]);
1311 out <<
"***PointValueHistory status output***\n\n";
1312 out <<
"Closed: " << closed <<
'\n';
1313 out <<
"Cleared: " << cleared <<
'\n';
1314 out <<
"Triangulation_changed: " << triangulation_changed <<
'\n';
1315 out <<
"Have_dof_handler: " << have_dof_handler <<
'\n';
1316 out <<
"Geometric Data" <<
'\n';
1318 typename std::vector<
1320 point = point_geometry_data.begin();
1321 if (point == point_geometry_data.end())
1323 out <<
"No points stored currently\n";
1329 for (; point != point_geometry_data.end(); ++point)
1331 out <<
"# Requested location: " << point->requested_location
1333 out <<
"# DoF_index : Support location (for each component)\n";
1334 for (
unsigned int component = 0;
1335 component < dof_handler->get_fe(0).n_components();
1338 out << point->solution_indices[component] <<
" : "
1339 << point->support_point_locations[component] <<
'\n';
1346 out <<
"#Cannot access DoF_indices once cleared\n";
1351 if (independent_values.size() != 0)
1353 out <<
"Independent value(s): " << independent_values.size() <<
" : "
1354 << independent_values[0].size() <<
'\n';
1355 if (indep_names.size() > 0)
1358 for (
const auto &indep_name : indep_names)
1360 out <<
"<" << indep_name <<
"> ";
1367 out <<
"No independent values stored\n";
1370 if (data_store.begin() != data_store.end())
1373 <<
"Mnemonic: data set size (mask size, n true components) : n data sets\n";
1375 for (
const auto &data_entry : data_store)
1378 std::string vector_name = data_entry.first;
1379 typename std::map<std::string, ComponentMask>::iterator mask =
1380 component_mask.find(vector_name);
1381 Assert(mask != component_mask.end(),
1383 typename std::map<std::string, std::vector<std::string>>::iterator
1384 component_names = component_names_map.find(vector_name);
1385 Assert(component_names != component_names_map.end(),
1388 if (data_entry.second.size() != 0)
1390 out << data_entry.first <<
": " << data_entry.second.size() <<
" (";
1391 out << mask->second.size() <<
", "
1392 << mask->second.n_selected_components() <<
") : ";
1393 out << (data_entry.second)[0].
size() <<
'\n';
1397 out << data_entry.first <<
": " << data_entry.second.size() <<
" (";
1398 out << mask->second.size() <<
", "
1399 << mask->second.n_selected_components() <<
") : ";
1400 out <<
"No points added" <<
'\n';
1403 if (component_names->second.size() > 0)
1405 for (
const auto &name : component_names->second)
1407 out <<
"<" << name <<
"> ";
1413 out <<
"***end of status output***\n\n";
1428 if (dataset_key.size() != independent_values[0].size())
1433 if (have_dof_handler)
1435 for (
const auto &data_entry : data_store)
1438 if ((data_entry.second)[0].size() != dataset_key.size())
1452 if (
std::abs(
static_cast<int>(dataset_key.size()) -
1453 static_cast<int>(independent_values[0].size())) >= 2)
1459 if (have_dof_handler)
1461 for (
const auto &data_entry : data_store)
1465 if (
std::abs(
static_cast<int>((data_entry.second)[0].size()) -
1466 static_cast<int>(dataset_key.size())) >= 2)
1495 triangulation_changed =
true;
1500#include "numerics/point_value_history.inst"
***mech_lbc_system increment_interpolation_handlers push_back(scale_z_handler)
unsigned int n_selected_components(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
virtual UpdateFlags get_needed_update_flags() const =0
virtual void evaluate_vector_field(const DataPostprocessorInputs::Vector< dim > &input_data, std::vector< Vector< double > > &computed_quantities) const
virtual void evaluate_scalar_field(const DataPostprocessorInputs::Scalar< dim > &input_data, std::vector< Vector< double > > &computed_quantities) const
virtual std::vector< std::string > get_names() const =0
void get_function_values(const ReadVector< Number > &fe_function, std::vector< Number > &values) const
const std::vector< Point< spacedim > > & get_quadrature_points() const
void get_function_hessians(const ReadVector< Number > &fe_function, std::vector< Tensor< 2, spacedim, Number > > &hessians) const
const Point< spacedim > & quadrature_point(const unsigned int q_point) const
void get_function_gradients(const ReadVector< Number > &fe_function, std::vector< Tensor< 1, spacedim, Number > > &gradients) const
void reinit(const TriaIterator< DoFCellAccessor< dim, spacedim, level_dof_access > > &cell)
void evaluate_field_at_requested_location(const std::string &name, const VectorType &solution)
void add_field_name(const std::string &vector_name, const ComponentMask &component_mask={})
boost::signals2::connection tria_listener
void add_point(const Point< dim > &location)
std::map< std::string, ComponentMask > component_mask
std::vector< internal::PointValueHistoryImplementation::PointGeometryData< dim > > point_geometry_data
std::map< std::string, std::vector< std::string > > component_names_map
PointValueHistory & operator=(const PointValueHistory &point_value_history)
ObserverPointer< const DoFHandler< dim >, PointValueHistory< dim > > dof_handler
void evaluate_field(const std::string &name, const VectorType &solution)
Vector< double > mark_support_locations()
std::vector< std::string > indep_names
bool triangulation_changed
std::vector< double > dataset_key
void write_gnuplot(const std::string &base_name, const std::vector< Point< dim > > &postprocessor_locations=std::vector< Point< dim > >())
void status(std::ostream &out)
void add_independent_names(const std::vector< std::string > &independent_names)
PointValueHistory(const unsigned int n_independent_variables=0)
void get_support_locations(std::vector< std::vector< Point< dim > > > &locations)
std::map< std::string, std::vector< std::vector< double > > > data_store
void add_component_names(const std::string &vector_name, const std::vector< std::string > &component_names)
void start_new_dataset(const double key)
void add_points(const std::vector< Point< dim > > &locations)
std::vector< std::vector< double > > independent_values
void push_back_independent(const std::vector< double > &independent_values)
void get_postprocessor_locations(const Quadrature< dim > &quadrature, std::vector< Point< dim > > &locations)
void tria_change_listener()
bool deep_check(const bool strict)
numbers::NumberTraits< Number >::real_type distance(const Point< dim, Number > &p) const
unsigned int size() const
PointGeometryData(const Point< dim > &new_requested_location, const std::vector< Point< dim > > &new_locations, const std::vector< types::global_dof_index > &new_sol_indices)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcInvalidState()
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
typename ActiveSelector::active_cell_iterator active_cell_iterator
@ update_hessians
Second derivatives of shape functions.
@ update_values
Shape function values.
@ update_normal_vectors
Normal vectors.
@ update_gradients
Shape function gradients.
@ update_quadrature_points
Transformed quadrature points.
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
::VectorizedArray< Number, width > abs(const ::VectorizedArray< Number, width > &)
std::vector< Point< spacedim > > evaluation_points
std::vector< double > solution_values
std::vector< Tensor< 2, spacedim > > solution_hessians
std::vector< Tensor< 1, spacedim > > solution_gradients
std::vector< std::vector< Tensor< 2, spacedim > > > solution_hessians
std::vector<::Vector< double > > solution_values
std::vector< std::vector< Tensor< 1, spacedim > > > solution_gradients