https://mooseframework.inl.gov
WeightedVariableAverage.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 "ElementPostprocessor.h"
13 
15 
20 {
21 public:
23 
25 
26  virtual void initialize() override;
27  virtual void execute() override;
28  virtual void finalize() override;
29  virtual PostprocessorValue getValue() const override;
30  virtual void threadJoin(const UserObject & y) override;
31 
32 protected:
34  const VariableValue & _v;
35 
38 
43 };
const MaterialProperty< Real > & _w
weight mask for averaging
virtual void execute() override
const std::vector< double > y
Average a variable value using a weight mask given by a material property.
virtual void initialize() override
Real PostprocessorValue
OutputTools< Real >::VariableValue VariableValue
virtual void threadJoin(const UserObject &y) override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
WeightedVariableAverage(const InputParameters &parameters)
virtual PostprocessorValue getValue() const override
const InputParameters & parameters() const
Real _var_integral
integtals for vomputimng the average - computed in execute()
const VariableValue & _v
variable to average
virtual void finalize() override