www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AccumulateAux Class Reference

Accumulate values from one auxiliary variable into another. More...

#include <AccumulateAux.h>

Inheritance diagram for AccumulateAux:
[legend]

Public Member Functions

 AccumulateAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

std::vector< const VariableValue * > _values
 

Detailed Description

Accumulate values from one auxiliary variable into another.

Definition at line 21 of file AccumulateAux.h.

Constructor & Destructor Documentation

AccumulateAux::AccumulateAux ( const InputParameters &  parameters)

Definition at line 21 of file AccumulateAux.C.

22  : AuxKernel(parameters), _values(coupledComponents("accumulate_from_variable"))
23 {
24  for (auto i = beginIndex(_values); i < _values.size(); ++i)
25  _values[i] = &coupledValue("accumulate_from_variable", i);
26 }
std::vector< const VariableValue * > _values
Definition: AccumulateAux.h:30

Member Function Documentation

Real AccumulateAux::computeValue ( )
protectedvirtual

Definition at line 29 of file AccumulateAux.C.

30 {
31  Real ret = _u_old[_qp];
32  for (const auto & value : _values)
33  ret += (*value)[_qp];
34  return ret;
35 }
std::vector< const VariableValue * > _values
Definition: AccumulateAux.h:30

Member Data Documentation

std::vector<const VariableValue *> AccumulateAux::_values
protected

Definition at line 30 of file AccumulateAux.h.

Referenced by AccumulateAux(), and computeValue().


The documentation for this class was generated from the following files: