https://mooseframework.inl.gov
BlockOrientationFromUserObject.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
13 #include "libmesh/communicator.h"
14 #include "Coupleable.h"
17 
18 // Forward Declarations
19 class MooseMesh;
20 
22 {
23 public:
25 
27 
28  virtual void initialize() override;
29  virtual void execute() override;
30  virtual void finalize() override;
31 
32 protected:
35 
37  const UserObjectName & _uo_name;
39 
41  int _num_cols;
42 
44  int _num_rows;
45 
47  std::vector<VectorPostprocessorValue *> _output_vector;
48 };
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable in each block...
int _num_cols
Number of columns, representing the number of features in the VectorPostprocessor.
const InputParameters & parameters() const
MooseMesh & _mesh
Reference to the mesh.
int _num_rows
Number of rows, representing the number of data entries in the VectorPostprocessor.
Computes the average value of a variable on each block.
BlockOrientationFromUserObject(const InputParameters &parameters)
const ComputeBlockOrientationBase * _uo
const UserObjectName & _uo_name
User object to grab average value from.