80 string name = diffType.substr(0, diffType.length()-15);
93 Array<OneD, MultiRegions::ExpListSharedPtr> pFields)
95 int nConvectiveFields = pFields.num_elements();
97 Array<OneD, MultiRegions::ExpListSharedPtr> pFields_plane0(
101 for (
int i = 0; i < nConvectiveFields; ++i)
103 pFields_plane0[i] = pFields[i]->GetPlane(0);
112 m_trans = pFields[0]->GetTransposition();
123 map<string, RSScalarFuncType> scalars =
m_riemann->GetScalars();
125 for (it1 = scalars.begin(); it1 != scalars.end(); ++it1)
127 boost::shared_ptr<HomoRSScalar> tmp =
141 (nConvectiveFields - 1);
164 for (
int i = 0; i < nConvectiveFields; ++i)
171 m_homoDerivPlane[i] = Array<OneD, Array<OneD, NekDouble> >(nConvectiveFields);
173 for (
int j = 0; j < nConvectiveFields; ++j)
175 m_homoDerivPlane[i][j] = Array<OneD, NekDouble>(
188 const int nConvectiveFields,
189 const Array<OneD, MultiRegions::ExpListSharedPtr> &fields,
190 const Array<
OneD, Array<OneD, NekDouble> > &inarray,
191 Array<
OneD, Array<OneD, NekDouble> > &outarray)
195 Array<OneD, Array<OneD, NekDouble> > viscHComp;
196 const int nPointsTot = fields[0]->GetNpoints();
203 viscHComp = Array<OneD, Array<OneD, NekDouble> >(nConvectiveFields);
204 for (i = 0; i < nConvectiveFields - 1; ++i)
207 viscHComp[i] = Array<OneD, NekDouble>(
m_numPoints);
216 for (
int j = 0; j < inarray.num_elements(); ++j)
222 for (
int j = 0; j < nConvectiveFields; ++j)
244 Array<OneD, Array<OneD, Array<OneD, NekDouble> > > &viscTensor =
m_planeDiff->GetFluxTensor();
247 for (
int j = 0; j < nConvectiveFields - 1; ++j)
250 viscTensor[2][j+1], 1,
260 for (j = 0; j < nConvectiveFields - 1; ++j)
262 fields[j+1]->PhysDeriv(2, viscHComp[j], tmp);
263 Vmath::Vadd(nPointsTot, outarray[j+1], 1, tmp, 1, outarray[j+1], 1);
268 for (j = 0; j < nConvectiveFields; ++j)
270 fields[j]->HomogeneousFwdTrans(inarray[j], tmp);
280 &tmp[0] + i*m_numPointsPlane, 1);
283 fields[0]->HomogeneousBwdTrans(tmp, tmp);