https://mooseframework.inl.gov
ExtraIDIntegralReporter.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralReporter.h"
14 
16 {
17 public:
20  virtual void initialize() override {}
21  virtual void finalize() override {}
22  virtual void execute() override {}
23 
24  struct ExtraIDData
25  {
27  std::vector<ExtraElementIDName> names;
28  std::vector<std::vector<dof_id_type>> unique_ids;
29 
30  std::vector<VariableName> variables;
31  std::vector<VectorPostprocessorValue *> integrals;
32  };
33 
34 private:
37 };
38 
39 void to_json(nlohmann::json & json, const ExtraIDIntegralReporter::ExtraIDData & extra_id_data);
40 void dataStore(std::ostream &, ExtraIDIntegralReporter::ExtraIDData &, void *);
41 void dataLoad(std::istream &, ExtraIDIntegralReporter::ExtraIDData &, void *);
void dataLoad(std::istream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
std::vector< ExtraElementIDName > names
virtual void execute() override
Execute method.
Reporter object that has a single execution of the "execute" method for for each execute flag...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
void dataStore(std::ostream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
std::vector< VectorPostprocessorValue * > integrals
std::vector< std::vector< dof_id_type > > unique_ids
static InputParameters validParams()
virtual void finalize() override
Finalize.
ExtraIDIntegralReporter(const InputParameters &parameters)
const ExtraIDIntegralVectorPostprocessor * _vpp_object
This ExtraIDIntegralVectorPostprocessor source code is to integrate variables based on parsed extra I...
const InputParameters & parameters() const
Get the parameters of the object.
void to_json(nlohmann::json &json, const ExtraIDIntegralReporter::ExtraIDData &extra_id_data)
uint8_t dof_id_type