https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
17public:
20 virtual void initialize() override {}
21 virtual void finalize() override {}
22 virtual void execute() override {}
23
25 {
26 dof_id_type num_names;
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
34private:
37};
38
39void to_json(nlohmann::json & json, const ExtraIDIntegralReporter::ExtraIDData & extra_id_data);
40void dataStore(std::ostream &, ExtraIDIntegralReporter::ExtraIDData &, void *);
41void dataLoad(std::istream &, ExtraIDIntegralReporter::ExtraIDData &, void *);
void dataLoad(std::istream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
void to_json(nlohmann::json &json, const ExtraIDIntegralReporter::ExtraIDData &extra_id_data)
void dataStore(std::ostream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
const ExtraIDIntegralVectorPostprocessor * _vpp_object
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void execute() override
Execute method.
virtual void finalize() override
Finalize.
static InputParameters validParams()
This ExtraIDIntegralVectorPostprocessor source code is to integrate variables based on parsed extra I...
Reporter object that has a single execution of the "execute" method for each execute flag.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
std::vector< ExtraElementIDName > names
std::vector< std::vector< dof_id_type > > unique_ids
std::vector< VectorPostprocessorValue * > integrals