Documentation 6b54b78464
Loading...
Searching...
No Matches
variables.hpp File Reference

Collection of types to store physical variables. More...

#include "../CNumericsSIMD.hpp"
#include "../util.hpp"

Go to the source code of this file.

Classes

struct  CCompressiblePrimitives< nDim_, nVar_ >
 Type to store compressible primitive variables and access them by name. More...
 
struct  CCompressibleConservatives< nDim_ >
 Type to store compressible conservative (i.e. solution) variables. More...
 
struct  CRoeVariables< nDim >
 Roe-averaged variables. More...
 

Functions

template<size_t nDim, size_t N>
CCompressibleConservatives< nDim > compressibleConservatives (const CCompressiblePrimitives< nDim, N > &V)
 Primitive to conservative conversion.
 
template<size_t nDim, class PrimVarType >
CRoeVariables< nDim > roeAveragedVariables (const Double &gamma, const CPair< PrimVarType > &V, const VectorDbl< nDim > &normal)
 Compute Roe-averaged variables from pair of primitive variables.
 

Detailed Description

Collection of types to store physical variables.

Author
P. Gomes
Version
8.5.0 "Harrier"

SU2 Project Website: https://su2code.github.io

The SU2 Project is maintained by the SU2 Foundation (http://su2foundation.org)

Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)

SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.

Function Documentation

◆ compressibleConservatives()

template<size_t nDim, size_t N>
CCompressibleConservatives< nDim > compressibleConservatives ( const CCompressiblePrimitives< nDim, N > &  V)
inline

Primitive to conservative conversion.

◆ roeAveragedVariables()

template<size_t nDim, class PrimVarType >
CRoeVariables< nDim > roeAveragedVariables ( const Double &  gamma,
const CPair< PrimVarType > &  V,
const VectorDbl< nDim > &  normal 
)
inline

Compute Roe-averaged variables from pair of primitive variables.