www.mooseframework.org
SideValueSampler.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef SIDEVALUESAMPLER_H
16 #define SIDEVALUESAMPLER_H
17 
19 #include "SamplerBase.h"
20 
21 // Forward Declarations
22 class SideValueSampler;
23 
24 template <>
26 
28 {
29 public:
31 
32  virtual void initialize() override;
33  virtual void execute() override;
34  virtual void finalize() override;
35 
36  // Let the SamplerBase version of threadJoin() take part in the
37  // overload resolution process, otherwise we get warnings about
38  // overloaded virtual functions and "hiding" in debug mode.
40 
41  virtual void threadJoin(const UserObject & y) override;
42 
43 protected:
45  std::vector<Real> _values;
46 
47  unsigned int _qp;
48 };
49 
50 #endif
Base class for VectorPostprocessors that need to do "sampling" of values in the domain.
Definition: SamplerBase.h:46
SideValueSampler(const InputParameters &parameters)
std::vector< Real > _values
So we don&#39;t have to create and destroy this vector over and over again.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void finalize() override
Finalize the values.
InputParameters validParams< SideValueSampler >()
unsigned int _qp
virtual void threadJoin(const SamplerBase &y)
Join the values.
Definition: SamplerBase.C:141
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void threadJoin(const UserObject &y) override
Must override.
virtual void execute() override
Execute method.
virtual void initialize() override
Initialize the datastructures.
Base class for user-specific data.
Definition: UserObject.h:42