78 m_diffType = diffType.substr(0, diffType.length() - 15);
93 int nConvectiveFields = pFields.size();
99 for (
int i = 0; i < nConvectiveFields; ++i)
101 pFields_plane0[i] = pFields[i]->GetPlane(0);
109 m_trans = pFields[0]->GetTransposition();
158 for (
int i = 0; i < nConvectiveFields; ++i)
168 for (
int j = 0; j < nConvectiveFields; ++j)
182 const std::size_t nConvectiveFields,
191 const int nPointsTot = fields[0]->GetNpoints();
197 for (
int i = 0; i < nConvectiveFields - 1; ++i)
208 for (
int j = 0; j < inarray.size(); ++j)
214 for (
int j = 0; j < nConvectiveFields; ++j)
229 std::size_t nTracePts =
235 for (std::size_t k = 0; k < nScalar; ++k)
259 for (
int j = 0; j < nConvectiveFields - 1; ++j)
269 for (
int j = 0; j < nConvectiveFields - 1; ++j)
271 fields[j + 1]->PhysDeriv(2, viscHComp[j], tmp);
272 Vmath::Vadd(nPointsTot, outarray[j + 1], 1, tmp, 1, outarray[j + 1],
278 for (
int j = 0; j < nConvectiveFields; ++j)
280 fields[j]->HomogeneousFwdTrans(
m_numPoints, inarray[j], tmp);
292 fields[0]->HomogeneousBwdTrans(
m_numPoints, tmp, tmp);
294 Vmath::Vsub(nPointsTot, outarray[j], 1, tmp, 1, outarray[j], 1);
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
Diffusion3DHomogeneous1D(std::string diffType)
Diffusion3DHomogeneous1D uses the 2D WeakDG approach to compute the diffusion term looping on the pla...
LibUtilities::TranspositionSharedPtr m_trans
Array< OneD, MultiRegions::ExpListSharedPtr > m_fieldsPlane
static DiffusionSharedPtr create(std::string diffType)
void v_InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields) override
Initiliase Diffusion3DHomogeneous1D objects and store them before starting the time-stepping.
Array< OneD, Array< OneD, Array< OneD, NekDouble > > > m_homoDerivPlane
Array< OneD, Array< OneD, NekDouble > > m_outarrayPlane
Array< OneD, unsigned int > m_planePos
Array< OneD, Array< OneD, NekDouble > > m_homoDerivStore
static std::string type[]
Array< OneD, Array< OneD, NekDouble > > m_inarrayPlane
SolverUtils::DiffusionSharedPtr m_planeDiff
void v_Diffuse(const size_t nConvective, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const Array< OneD, Array< OneD, NekDouble > > &pFwd=NullNekDoubleArrayOfArray, const Array< OneD, Array< OneD, NekDouble > > &pBwd=NullNekDoubleArrayOfArray) override
Calculate WeakDG Diffusion for the linear problems using an LDG interface flux and the the flux in th...
DiffusionFluxVecCBNS m_fluxVectorNS
DiffusionFluxPenaltyNS m_fluxPenaltyNS
DiffusionFluxVecCB m_fluxVector
std::shared_ptr< SessionReader > SessionReaderSharedPtr
@ beta
Gauss Radau pinned at x=-1,.
DiffusionFactory & GetDiffusionFactory()
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.
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*x.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
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.