forked from idaholab/moose
/
LineMaterialRealSampler.h
54 lines (46 loc) · 2.02 KB
/
LineMaterialRealSampler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#ifndef LINEMATERIALREALSAMPLER_H
#define LINEMATERIALREALSAMPLER_H
#include "LineMaterialSamplerBase.h"
//Forward Declarations
class LineMaterialRealSampler;
template<>
InputParameters validParams<LineMaterialRealSampler>();
/**
* This class samples Real material properties for the integration points
* in all elements that are intersected by a user-defined line.
*/
class LineMaterialRealSampler :
public LineMaterialSamplerBase<Real>
{
public:
/**
* Class constructor
* Sets up variables for output based on the properties to be output
* @param name The name of the class
* @param parameters The input parameters
*/
LineMaterialRealSampler(const std::string & name, InputParameters parameters);
virtual ~LineMaterialRealSampler() {}
/**
* Reduce the material property to a scalar for output
* In this case, the material property is a Real already, so just return it.
* @param property The material property
* @param curr_point The point corresponding to this material property
* @return A scalar value from this material property to be output
*/
virtual Real getScalarFromProperty(Real &property, const Point * /*curr_point*/);
};
#endif