https://mooseframework.inl.gov
PiecewiseTabularBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 #include "LinearInterpolation.h"
14 
21 {
22 public:
24 
26 
28  void initialSetup() override;
29 
30 protected:
33 
35  int _axis;
36  const bool _has_axis;
38 
40  bool isRawDataLoaded() const { return _raw_data_loaded; };
41 
42 private:
44  void buildFromFile();
45 
47  void buildFromJSON();
48 
50  void buildFromXandY();
51 
53  void buildFromXY();
54 
57 };
Function base which provides a piecewise approximation to a specified (x,y) point data set...
Definition: PiecewiseBase.h:20
PiecewiseTabularBase(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Function base which provides a piecewise approximation to a provided (x,y) point data set via input p...
void buildFromFile()
Reads data from supplied CSV file.
static InputParameters validParams()
void buildFromXandY()
Builds data from 'x' and 'y' parameters.
void initialSetup() override
Needed to load data from user objects that are not available at construction.
bool isRawDataLoaded() const
Returns whether the raw data has been loaded already.
int _axis
if _has_axis is true point component to use as function argument, otherwise use t ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
const Real & _scale_factor
function value scale factor
void buildFromJSON()
Reads data from supplied JSON reader.
bool _raw_data_loaded
Boolean to keep track of whether the data has been loaded.
void buildFromXY()
Builds data from 'xy_data' parameter.