WARPXM v1.10.0
Loading...
Searching...
No Matches
linear_interpolation_1d.h
Go to the documentation of this file.
1#pragma once
2
3// WARPXM includes
5
6// STL includes
7#include <vector>
8
9namespace wxm
10{
11namespace apps
12{
13namespace functions
14{
15namespace arbitrary
16{
17
28{
29public:
35
41
46 void setup(const WxCryptSet& wxc) override;
47
53 const std::vector<int>& getOutputVariableIndexes(int flag) const override
54 {
56 }
57
65 void evaluate_function(const real* q,
66 const real* aux,
67 const solverVariables_t* pSV,
68 real* result) const override;
69
70protected:
71 std::vector<int> _output_variable_idcs;
72
73 std::vector<real> _time_series;
74 std::vector<real> _field_series;
75
76private:
77 LinearInterpolation1D& operator=(const LinearInterpolation1D& var);
79};
80} // namespace arbitrary
81} // namespace functions
82} // namespace apps
83} // namespace wxm
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Given a set of monotonically increasing time values and a corresponding set of field values ,...
Definition: linear_interpolation_1d.h:28
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: linear_interpolation_1d.h:53
std::vector< real > _field_series
Definition: linear_interpolation_1d.h:74
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< real > _time_series
Definition: linear_interpolation_1d.h:73
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< int > _output_variable_idcs
Definition: linear_interpolation_1d.h:71
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11