https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
15
20{
21public:
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
32protected:
35
38
43};
const std::vector< double > y
Real PostprocessorValue
const InputParameters & parameters() const
Average a variable value using a weight mask given by a material property.
virtual void initialize() override
static InputParameters validParams()
virtual void finalize() override
virtual PostprocessorValue getValue() const override
virtual void threadJoin(const UserObject &y) override
Real _var_integral
integtals for vomputimng the average - computed in execute()
virtual void execute() override
const MaterialProperty< Real > & _w
weight mask for averaging
const VariableValue & _v
variable to average
VariableValueTempl< false > VariableValue