5 #ifndef _ONEDCONDUCTION_H_
6 #define _ONEDCONDUCTION_H_
14 for(
int i=1; i<n; i++)
16 const T m(aw[i]/ap[i-1]);
20 x[n-1] = -b[n-1]/ap[n-1];
21 for(
int i=n-2; i>=0; i--)
22 x[i] = (b[i] - ae[i]*x[i+1])/ap[i];
51 for(
int nf=0; nf<=
_nCells; nf++)
81 cout <<
" ae[0] " << ae[0] << endl;
92 boost::shared_ptr<Array<T> >
_x;
boost::shared_ptr< Array< T > > _x
boost::shared_ptr< Array< T > > getSolution()
void TDMA(Array< T > &ap, Array< T > &ae, Array< T > &aw, Array< T > &b, Array< T > &x)
OneDConduction(const int nCells, const T &kConst)