www.mooseframework.org
AverageGrainVolume.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 
12 #include "GeneralPostprocessor.h"
13 #include "Coupleable.h"
15 
16 // Forward Declarations
17 class FeatureFloodCount;
18 class MooseMesh;
19 
24  public Coupleable,
26 {
27 public:
29 
31  virtual void initialize() override;
32  virtual void execute() override;
33  virtual void finalize() override;
34  virtual Real getValue() const override;
35 
36 protected:
37  void accumulateVolumes(const std::vector<unsigned int> & var_to_features,
38  std::size_t libmesh_dbg_var(num_features));
39  Real computeIntegral(std::size_t var_index) const;
40 
41 private:
45  std::vector<unsigned int> _static_var_to_feature;
46  std::vector<const VariableValue *> _vals;
47  std::vector<Real> _feature_volumes;
49  const QBase * const & _qrule;
53 };
std::vector< unsigned int > _static_var_to_feature
const QBase *const & _qrule
AverageGrainVolume(const InputParameters &parameters)
virtual void execute() override
const MooseArray< Point > & _q_point
Real computeIntegral(std::size_t var_index) const
virtual Real getValue() const override
void accumulateVolumes(const std::vector< unsigned int > &var_to_features, std::size_t libmesh_dbg_var(num_features))
const MooseArray< Real > & _coord
std::vector< Real > _feature_volumes
const MooseArray< Real > & _JxW
virtual void initialize() override
This object will mark nodes or elements of continuous regions all with a unique number for the purpos...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void finalize() override
MooseMesh & _mesh
A reference to the mesh.
const FeatureFloodCount *const _feature_counter
Compute the average grain area in a polycrystal.
std::vector< const VariableValue * > _vals
static InputParameters validParams()