www.mooseframework.org
Piecewise.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "PiecewiseBase.h"
13 
14 class Piecewise;
15 
16 template <>
18 
25 class Piecewise : public PiecewiseBase
26 {
27 public:
29 
30 protected:
34  std::pair<std::vector<Real>, std::vector<Real>> buildFromFile();
35 
39  std::pair<std::vector<Real>, std::vector<Real>> buildFromXandY();
40 
44  std::pair<std::vector<Real>, std::vector<Real>> buildFromXY();
45 
46  const Real _scale_factor;
47 };
48 
Function base which provides a piecewise approximation to a provided (x,y) point data set...
Definition: PiecewiseBase.h:26
const Real _scale_factor
Definition: Piecewise.h:46
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::pair< std::vector< Real >, std::vector< Real > > buildFromXY()
Builds data from &#39;xy_data&#39; parameter.
Definition: Piecewise.C:138
InputParameters validParams< Piecewise >()
Definition: Piecewise.C:15
std::pair< std::vector< Real >, std::vector< Real > > buildFromXandY()
Builds data from &#39;x&#39; and &#39;y&#39; parameters.
Definition: Piecewise.C:125
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
std::pair< std::vector< Real >, std::vector< Real > > buildFromFile()
Reads data from supplied CSV file.
Definition: Piecewise.C:59
Piecewise(const InputParameters &parameters)
Definition: Piecewise.C:36
Function which provides a piecewise approximation to a provided (x,y) point data set generated from f...
Definition: Piecewise.h:25