Chi-Tech
chi_ffinter_line.h
Go to the documentation of this file.
1#ifndef CHI_FFINTER_LINE_H
2#define CHI_FFINTER_LINE_H
3
4#include "../chi_ffinterpolation.h"
5#include "mesh/chi_mesh.h"
6
7#include <petscksp.h>
8
9namespace chi_mesh
10{
12 {
13 std::shared_ptr<chi_physics::FieldFunctionGridBased> ref_ff;
14 std::vector<double> interpolation_points_values;
15 std::vector<uint64_t> interpolation_points_ass_cell;
17 };
18}
19
20namespace chi_mesh
21{
22//###################################################################
23/** A line based interpolation function.*/
26{
27protected:
30
31 std::vector<std::vector<double>> custom_arrays_;
32 std::vector<chi_mesh::Vector3> interpolation_points_;
33 std::vector<FieldFunctionContext> ff_contexts_;
34
35 double delta_d_ = 1.0;
36
37public:
39 FieldFunctionInterpolation(ff_interpolation::Type::LINE)
40 { }
41
45 std::vector<std::vector<double>>& GetCustomArrays() {return custom_arrays_;}
46 std::vector<chi_mesh::Vector3>& GetInterpolationPoints()
47 {return interpolation_points_;}
48 std::vector<FieldFunctionContext>& GetFFContexts()
49 {return ff_contexts_;}
50 //01
51 void Initialize() override;
52
53 //02
54 void Execute() override;
55
56public:
57 std::string GetDefaultFileBaseName() const override
58 {return "ZLFFI";}
59 void ExportPython(std::string base_name) override;
60};
61}//namespace chi_mesh
62
63
64
65#endif
ff_interpolation::Type Type() const
std::vector< FieldFunctionContext > & GetFFContexts()
void ExportPython(std::string base_name) override
std::string GetDefaultFileBaseName() const override
std::vector< chi_mesh::Vector3 > interpolation_points_
std::vector< std::vector< double > > & GetCustomArrays()
std::vector< std::vector< double > > custom_arrays_
std::vector< chi_mesh::Vector3 > & GetInterpolationPoints()
std::vector< FieldFunctionContext > ff_contexts_
std::vector< double > interpolation_points_values
std::vector< uint64_t > interpolation_points_ass_cell
std::vector< bool > interpolation_points_has_ass_cell
std::shared_ptr< chi_physics::FieldFunctionGridBased > ref_ff