80 string name = diffType.substr(0, diffType.length()-15);
95 int nConvectiveFields = pFields.num_elements();
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)
173 for (
int j = 0; j < nConvectiveFields; ++j)
188 const int nConvectiveFields,
196 const int nPointsTot = fields[0]->GetNpoints();
204 for (i = 0; i < nConvectiveFields - 1; ++i)
216 for (
int j = 0; j < inarray.num_elements(); ++j)
222 for (
int j = 0; j < nConvectiveFields; ++j)
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);
LibUtilities::TranspositionSharedPtr m_trans
tBaseSharedPtr CreateInstance(tKey idKey BOOST_PP_COMMA_IF(MAX_PARAM) BOOST_PP_ENUM_BINARY_PARAMS(MAX_PARAM, tParam, x))
Create an instance of the class referred to by idKey.
static std::string type[]
static DiffusionSharedPtr create(std::string diffType)
Array< OneD, Array< OneD, NekDouble > > m_inarrayPlane
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
Array< OneD, Array< OneD, Array< OneD, NekDouble > > > m_homoDerivPlane
const Array< OneD, const NekDouble > & Exec()
Array< OneD, unsigned int > m_planePos
DiffusionFactory & GetDiffusionFactory()
Array< OneD, MultiRegions::ExpListSharedPtr > m_fieldsPlane
DiffusionFluxVecCBNS m_fluxVectorNS
Diffusion3DHomogeneous1D(std::string diffType)
Diffusion3DHomogeneous1D uses the 2D WeakDG approach to compute the diffusion term looping on the pla...
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
RiemannSolverSharedPtr m_riemann
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*y.
void Vsub(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Subtract vector z = x-y.
Array< OneD, Array< OneD, NekDouble > > m_homoDerivStore
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
virtual void v_Diffuse(const int nConvective, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray)
Calculate WeakDG Diffusion for the linear problems using an LDG interface flux and the the flux in th...
SolverUtils::DiffusionSharedPtr m_planeDiff
virtual void v_InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields)
Initiliase Diffusion3DHomogeneous1D objects and store them before starting the time-stepping.
Array< OneD, Array< OneD, NekDouble > > m_outarrayPlane
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Array< OneD, unsigned int > m_planes
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.