57 m_session->MatchSolverInfo(
"MappingImplicitPressure",
"True",
59 m_session->MatchSolverInfo(
"MappingImplicitViscous",
"True",
80 size_t physTot =
m_fields[0]->GetTotPoints();
105 for (
size_t i = 0; i < nvel; i++)
113 for (
size_t i = 0; i < nvel; ++i)
119 m_fields[0]->HomogeneousBwdTrans(physTot, gradP[i], wk[i]);
131 for (
size_t i = 0; i < nvel; ++i)
133 Vmath::Vmul(physTot, correction[i], 1, Jac, 1, correction[i],
137 for (
size_t i = 0; i < nvel; ++i)
145 for (
size_t i = 0; i < nvel; ++i)
147 m_pressure->HomogeneousFwdTrans(physTot, correction[i],
152 for (
size_t i = 0; i < nvel; ++i)
154 Vmath::Vsub(physTot, gradP[i], 1, correction[i], 1, correction[i],
165 if (boost::iequals(
m_PBndConds[n]->GetUserDefined(),
"H"))
167 m_fields[0]->GetBndElmtExpansion(n, BndElmtExp);
172 m_fields[0]->ExtractPhysToBndElmt(n, correction[i],
180 m_fields[0]->ExtractElmtToBndPhys(n, correctionElmt[i],
183 m_PBndExp[n]->NormVectorIProductWRTBase(BndValues, Vals);
191 for (
size_t cnt = n = 0; n <
m_PBndConds.size(); ++n)
215 size_t physTot =
m_fields[0]->GetTotPoints();
240 for (i = 0; i < nvel; i++)
251 m_fields[0]->HomogeneousBwdTrans(physTot, N[i], N_new[i]);
257 Vmath::Vmul(physTot, Jac, 1, N_new[i], 1, N_new[i], 1);
260 m_fields[0]->HomogeneousFwdTrans(physTot, N_new[i], N_new[i]);
265 for (i = 0; i < nvel; i++)
269 m_fields[0]->HomogeneousBwdTrans(physTot, fields[i],
285 m_mapping->DotGradJacobian(fields_new, tmp);
288 bool wavespace =
m_fields[0]->GetWaveSpace();
294 Vmath::Vadd(physTot, Q_field[i], 1, tmp2, 1, Q_field[i], 1);
296 m_fields[0]->SetWaveSpace(wavespace);
302 Vmath::Vmul(physTot, Jac, 1, fields_new[i], 1, fields_new[i], 1);
303 Vmath::Vmul(physTot, Jac, 1, Q_field[i], 1, Q_field[i], 1);
306 m_fields[0]->HomogeneousFwdTrans(physTot, fields_new[i],
308 m_fields[0]->HomogeneousFwdTrans(physTot, Q_field[i],
317 if (boost::iequals(
m_PBndConds[n]->GetUserDefined(),
"H"))
319 m_fields[0]->GetBndElmtExpansion(n, BndElmtExp);
320 size_t nq = BndElmtExp->GetTotPoints();
325 m_fields[0]->ExtractPhysToBndElmt(n, fields_new[i],
327 m_fields[0]->ExtractPhysToBndElmt(n, N_new[i],
329 m_fields[0]->ExtractPhysToBndElmt(n, Q_field[i], Q[i]);
346 m_fields[0]->ExtractElmtToBndPhys(n, Q[i], BndValues[i]);
348 m_PBndExp[n]->NormVectorIProductWRTBase(BndValues, Pvals);
352 m_fields[0]->ExtractElmtToBndPhys(n, Velocity[i],
355 m_PBndExp[n]->NormVectorIProductWRTBase(BndValues, Uvals);
static GLOBAL_MAPPING_EXPORT MappingSharedPtr Load(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields)
Return a pointer to the mapping, creating it on first call.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
An abstract base class encapsulating the concept of advection of a vector field.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
MultiRegions::Direction const DirCartesianMap[]
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::shared_ptr< Advection > AdvectionSharedPtr
A shared pointer to an Advection object.
ExtrapolateFactory & GetExtrapolateFactory()
void Vmul(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x*y.
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 Vdiv(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x/y.
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.