29 #ifndef SRC_HEADERS_VALVE_H_
30 #define SRC_HEADERS_VALVE_H_
49 template <
int tab_size>
86 &static_cast<table1d&>(tubetable_12AX7[0]),
87 &static_cast<table1d&>(tubetable_12AX7[1]),
88 &static_cast<table1d&>(tubetable_6V6[0]),
89 &static_cast<table1d&>(tubetable_6V6[1]),
90 &static_cast<table1d&>(tubetable_12AU7[0]),
91 &static_cast<table1d&>(tubetable_12AU7[1]),
92 &static_cast<table1d&>(tubetable_6DJ8[0]),
93 &static_cast<table1d&>(tubetable_6DJ8[1]),
94 &static_cast<table1d&>(tubetable_12AT7[0]),
95 &static_cast<table1d&>(tubetable_12AT7[1]),
96 &static_cast<table1d&>(tubetable_6C16[0]),
97 &static_cast<table1d&>(tubetable_6C16[1]),
105 static inline double Ftube(
int table,
double Vgk) {
107 double f = (Vgk - tab.
low) * tab.
istep;
108 int i = static_cast<int>(f);
114 return tab.
data[i]*(1-f) + tab.
data[i+1]*f;
117 #endif // SRC_HEADERS_VALVE_H_