https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WeightedAverageAux.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 "AuxKernel.h"
13
24{
25public:
27
28protected:
29 virtual Real computeValue();
30
31 const unsigned int _n_values;
32 std::vector<const VariableValue *> _values;
33 std::vector<const VariableValue *> _weights;
34
35public:
37};
const InputParameters & parameters() const
Weighted average of an aux variable using another aux variable as the weights.
std::vector< const VariableValue * > _values
const unsigned int _n_values
virtual Real computeValue()
static InputParameters validParams()
std::vector< const VariableValue * > _weights