https://mooseframework.inl.gov
include
reporters
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
"
13
#include "
ExtraIDIntegralVectorPostprocessor.h
"
14
15
class
ExtraIDIntegralReporter
:
public
GeneralReporter
16
{
17
public
:
18
static
InputParameters
validParams
();
19
ExtraIDIntegralReporter
(
const
InputParameters
&
parameters
);
20
virtual
void
initialize
()
override
{}
21
virtual
void
finalize
()
override
{}
22
virtual
void
execute
()
override
{}
23
24
struct
ExtraIDData
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
34
private
:
35
ExtraIDData
&
_extra_id_data
;
36
const
ExtraIDIntegralVectorPostprocessor
*
_vpp_object
;
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
*);
dataLoad
void dataLoad(std::istream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
Definition:
ExtraIDIntegralReporter.C:98
ExtraIDIntegralReporter::ExtraIDData::names
std::vector< ExtraElementIDName > names
Definition:
ExtraIDIntegralReporter.h:27
ExtraIDIntegralReporter::execute
virtual void execute() override
Execute method.
Definition:
ExtraIDIntegralReporter.h:22
ExtraIDIntegralReporter
Definition:
ExtraIDIntegralReporter.h:15
GeneralReporter
Reporter object that has a single execution of the "execute" method for for each execute flag...
Definition:
GeneralReporter.h:18
GeneralReporter.h
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
ExtraIDIntegralReporter::ExtraIDData::variables
std::vector< VariableName > variables
Definition:
ExtraIDIntegralReporter.h:30
ExtraIDIntegralReporter::initialize
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition:
ExtraIDIntegralReporter.h:20
dataStore
void dataStore(std::ostream &, ExtraIDIntegralReporter::ExtraIDData &, void *)
Definition:
ExtraIDIntegralReporter.C:93
ExtraIDIntegralReporter::ExtraIDData::integrals
std::vector< VectorPostprocessorValue * > integrals
Definition:
ExtraIDIntegralReporter.h:31
ExtraIDIntegralReporter::_extra_id_data
ExtraIDData & _extra_id_data
Definition:
ExtraIDIntegralReporter.h:35
ExtraIDIntegralReporter::ExtraIDData::unique_ids
std::vector< std::vector< dof_id_type > > unique_ids
Definition:
ExtraIDIntegralReporter.h:28
ExtraIDIntegralReporter::validParams
static InputParameters validParams()
Definition:
ExtraIDIntegralReporter.C:15
ExtraIDIntegralReporter::finalize
virtual void finalize() override
Finalize.
Definition:
ExtraIDIntegralReporter.h:21
ExtraIDIntegralReporter::ExtraIDData::num_names
dof_id_type num_names
Definition:
ExtraIDIntegralReporter.h:26
ExtraIDIntegralVectorPostprocessor.h
ExtraIDIntegralReporter::ExtraIDIntegralReporter
ExtraIDIntegralReporter(const InputParameters ¶meters)
Definition:
ExtraIDIntegralReporter.C:29
ExtraIDIntegralReporter::_vpp_object
const ExtraIDIntegralVectorPostprocessor * _vpp_object
Definition:
ExtraIDIntegralReporter.h:36
ExtraIDIntegralReporter::ExtraIDData
Definition:
ExtraIDIntegralReporter.h:24
ExtraIDIntegralVectorPostprocessor
This ExtraIDIntegralVectorPostprocessor source code is to integrate variables based on parsed extra I...
Definition:
ExtraIDIntegralVectorPostprocessor.h:19
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
to_json
void to_json(nlohmann::json &json, const ExtraIDIntegralReporter::ExtraIDData &extra_id_data)
Definition:
ExtraIDIntegralReporter.C:75
dof_id_type
uint8_t dof_id_type
Generated on Thu Jul 17 2025 01:32:08 for https://mooseframework.inl.gov by
1.8.14