47               const int pSpaceDim, 
const int bcRegion, 
const int cnt)
 
   48    : 
CFSBndCond(pSession, pFields, pTraceNormals, pGridVelocity, pSpaceDim,
 
   59    int nVariables = physarray.size();
 
   65    int e, id1, id2, nBCEdgePts, eMax;
 
   69    for (e = 0; e < eMax; ++e)
 
   83            Vmath::Zero(nBCEdgePts, &Fwd[nVariables - 1][id2], 1);
 
   95        if (
m_fields[0]->GetGraph()->GetMovement()->GetMoveFlag())
 
  100                for (
int j = 0; j < nBCEdgePts; ++j)
 
  102                    Fwd[i + 1][id2 + j] +=
 
  116        Vmath::Smul(nBCEdgePts, -2.0, &tmp[0], 1, &tmp[0], 1);
 
  122                         &Fwd[1 + i][id2], 1, &Fwd[1 + i][id2], 1);
 
  126        for (i = 0; i < nVariables; ++i)
 
  131                               ->UpdatePhys())[id1],
 
Encapsulates the user-defined boundary conditions for compressible flow solver.
 
NekDouble m_diffusionAveWeight
Weight for average calculation of diffusion term.
 
int m_spacedim
Space dimension.
 
Array< OneD, Array< OneD, NekDouble > > m_gridVelocityTrace
Grid Velocity.
 
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
Trace normals.
 
int m_bcRegion
Id of the boundary region.
 
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
 
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
 
void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time) override
 
static std::string className
Name of the class.
 
static CFSBndCondSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, Array< OneD, NekDouble > > &pTraceNormals, const Array< OneD, Array< OneD, NekDouble > > &pGridVelocity, const int pSpaceDim, const int bcRegion, const int cnt)
Creates an instance of this class.
 
WallBC(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, Array< OneD, NekDouble > > &pTraceNormals, const Array< OneD, Array< OneD, NekDouble > > &pGridVelocity, const int pSpaceDim, const int bcRegion, const int cnt)
 
std::shared_ptr< SessionReader > SessionReaderSharedPtr
 
CFSBndCondFactory & GetCFSBndCondFactory()
Declaration of the boundary condition factory singleton.
 
void Vvtvp(int n, const T *w, const int incw, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
vvtvp (vector times vector plus vector): z = w*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 Zero(int n, T *x, const int incx)
Zero vector.
 
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)