Nektar++
|
#include <DiffusionLDGNS.h>
Static Public Member Functions | |
static DiffusionSharedPtr | create (std::string diffType) |
Static Public Attributes | |
static std::string | type |
Protected Attributes | |
NekDouble | m_C11 |
Penalty coefficient for LDGNS. More... | |
Array< OneD, NekDouble > | m_traceOneOverH |
h scaling for penalty term More... | |
Array< OneD, Array< OneD, NekDouble > > | m_traceVel |
Array< OneD, Array< OneD, NekDouble > > | m_traceNormals |
LibUtilities::SessionReaderSharedPtr | m_session |
NekDouble | m_Twall |
EquationOfStateSharedPtr | m_eos |
Equation of system for computing temperature. More... | |
TensorOfArray3D< NekDouble > | m_viscTensor |
Array< OneD, Array< OneD, NekDouble > > | m_homoDerivs |
std::size_t | m_spaceDim |
std::size_t | m_diffDim |
![]() | |
DiffusionFluxVecCB | m_fluxVector |
DiffusionFluxVecCBNS | m_fluxVectorNS |
DiffusionFluxPenaltyNS | m_fluxPenaltyNS |
DiffusionFluxCons | m_FunctorDiffusionfluxCons |
DiffusionFluxCons | m_FunctorDiffusionfluxConsTrace |
SpecialBndTreat | m_SpecialBndTreat |
DiffusionSymmFluxCons | m_FunctorSymmetricfluxCons |
NekDouble | m_time = 0.0 |
Definition at line 49 of file DiffusionLDGNS.h.
|
protected |
Definition at line 50 of file DiffusionLDGNS.cpp.
|
protected |
Imposes appropriate bcs for the 1st order derivatives.
Definition at line 422 of file DiffusionLDGNS.cpp.
References Nektar::SpatialDomains::eDirichlet, Nektar::SpatialDomains::eNeumann, Nektar::SpatialDomains::ePeriodic, m_eos, m_traceNormals, m_Twall, Vmath::Smul(), Vmath::Vadd(), Vmath::Vcopy(), Vmath::Vdiv(), Vmath::Vmul(), Vmath::Vvtvp(), and Vmath::Zero().
Referenced by NumericalFluxO1().
|
protected |
Imposes appropriate bcs for the 2nd order derivatives.
Definition at line 733 of file DiffusionLDGNS.cpp.
References ASSERTL0, Nektar::SpatialDomains::eDirichlet, Nektar::SpatialDomains::eNeumann, Nektar::SpatialDomains::ePeriodic, m_spaceDim, m_traceNormals, Vmath::Vmul(), and Vmath::Zero().
Referenced by NumericalFluxO2().
|
inlinestatic |
Definition at line 52 of file DiffusionLDGNS.h.
|
protected |
Builds the numerical flux for the 1st order derivatives.
Definition at line 384 of file DiffusionLDGNS.cpp.
References ApplyBCsO1(), m_spaceDim, m_traceNormals, and Vmath::Vmul().
Referenced by v_DiffuseCalcDerivative().
|
protected |
Build the numerical flux for the 2nd order derivatives.
Definition at line 669 of file DiffusionLDGNS.cpp.
References ApplyBCsO2(), Nektar::SolverUtils::Diffusion::m_fluxPenaltyNS, m_traceNormals, m_traceOneOverH, Vmath::Vadd(), Vmath::Vcopy(), Vmath::Vmul(), and Vmath::Vvtvp().
Referenced by v_DiffuseTraceFlux().
|
overrideprotectedvirtual |
Calculate weak DG Diffusion in the LDG form for the Navier-Stokes (NS) equations:
\( \langle\psi, \hat{u}\cdot n\rangle - \langle\nabla\psi \cdot u\rangle \langle\phi, \hat{q}\cdot n\rangle - (\nabla \phi \cdot q) \rangle \)
The equations that need a diffusion operator are those related with the velocities and with the energy.
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 210 of file DiffusionLDGNS.cpp.
References v_DiffuseCoeffs().
|
overrideprotectedvirtual |
Diffusion Flux, calculate the physical derivatives.
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 305 of file DiffusionLDGNS.cpp.
References m_diffDim, m_homoDerivs, m_spaceDim, Vmath::Neg(), and NumericalFluxO1().
|
overrideprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 231 of file DiffusionLDGNS.cpp.
References Nektar::SolverUtils::Diffusion::DiffuseCalcDerivative(), Nektar::SolverUtils::Diffusion::DiffuseTraceFlux(), Nektar::SolverUtils::Diffusion::DiffuseVolumeFlux(), m_spaceDim, m_viscTensor, and Vmath::Neg().
Referenced by v_Diffuse().
|
overrideprotectedvirtual |
Diffusion term Trace Flux.
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 367 of file DiffusionLDGNS.cpp.
References NumericalFluxO2().
|
overrideprotectedvirtual |
Diffusion Volume Flux.
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 356 of file DiffusionLDGNS.cpp.
References Nektar::SolverUtils::Diffusion::m_fluxVectorNS.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 158 of file DiffusionLDGNS.h.
|
overrideprotectedvirtual |
Compute primary variables.
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 822 of file DiffusionLDGNS.cpp.
|
overrideprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 54 of file DiffusionLDGNS.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::SpatialDomains::ePeriodic, Vmath::Fill(), Nektar::GetEquationOfStateFactory(), Nektar::LocalRegions::Expansion1D::GetGeom1D(), m_C11, m_diffDim, m_eos, m_session, m_spaceDim, m_traceNormals, m_traceOneOverH, m_traceVel, m_Twall, Vmath::Sdiv(), Vmath::Svtsvtp(), and Vmath::Vcopy().
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Diffusion.
Definition at line 152 of file DiffusionLDGNS.h.
|
protected |
Penalty coefficient for LDGNS.
Definition at line 64 of file DiffusionLDGNS.h.
Referenced by v_InitObject().
|
protected |
Definition at line 81 of file DiffusionLDGNS.h.
Referenced by v_DiffuseCalcDerivative(), and v_InitObject().
|
protected |
Equation of system for computing temperature.
Definition at line 74 of file DiffusionLDGNS.h.
Referenced by ApplyBCsO1(), and v_InitObject().
Definition at line 78 of file DiffusionLDGNS.h.
Referenced by v_DiffuseCalcDerivative().
|
protected |
Definition at line 71 of file DiffusionLDGNS.h.
Referenced by v_InitObject().
|
protected |
Definition at line 80 of file DiffusionLDGNS.h.
Referenced by ApplyBCsO2(), NumericalFluxO1(), v_DiffuseCalcDerivative(), v_DiffuseCoeffs(), and v_InitObject().
Definition at line 70 of file DiffusionLDGNS.h.
Referenced by ApplyBCsO1(), ApplyBCsO2(), NumericalFluxO1(), NumericalFluxO2(), and v_InitObject().
h scaling for penalty term
Definition at line 67 of file DiffusionLDGNS.h.
Referenced by NumericalFluxO2(), and v_InitObject().
Definition at line 69 of file DiffusionLDGNS.h.
Referenced by v_InitObject().
|
protected |
Definition at line 72 of file DiffusionLDGNS.h.
Referenced by ApplyBCsO1(), and v_InitObject().
|
protected |
Definition at line 76 of file DiffusionLDGNS.h.
Referenced by v_DiffuseCoeffs().
|
static |
Definition at line 58 of file DiffusionLDGNS.h.