www.mooseframework.org
NodalValueSampler.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 NODALVALUESAMPLER_H
16 #define NODALVALUESAMPLER_H
17 
19 #include "SamplerBase.h"
20 
21 // Forward Declarations
22 class NodalValueSampler;
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 
48  std::vector<unsigned int> _has_values;
49 };
50 
51 #endif
Base class for VectorPostprocessors that need to do "sampling" of values in the domain.
Definition: SamplerBase.h:46
virtual void execute() override
Execute method.
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 initialize() override
Initialize the datastructures.
NodalValueSampler(const InputParameters &parameters)
virtual void threadJoin(const UserObject &y) override
Must override.
InputParameters validParams< NodalValueSampler >()
virtual void threadJoin(const SamplerBase &y)
Join the values.
Definition: SamplerBase.C:141
std::vector< unsigned int > _has_values
Vector of 0 and 1 values which records whether values are present at the current node.
virtual void finalize() override
Finalize the values.
Base class VectorPostprocessors operating on nodal variables.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Base class for user-specific data.
Definition: UserObject.h:42