SU2
Namespaces | Macros | Typedefs | Functions
datatype_structure.hpp File Reference

Headers for generalized datatypes. The subroutines and functions are in the datatype_structure.cpp file. More...

#include <iostream>
#include <complex>
#include <cstdio>
#include "datatypes/primitive_structure.hpp"
#include "ad_structure.hpp"
#include "datatype_structure.inl"

Go to the source code of this file.

Namespaces

 SU2_TYPE
 Namespace for defining the datatype wrapper routines; this class features as a base class for type interfaces for non-primitive dataypes e.g. used by AD, complex etc.
 

Macros

#define SPRINTF   sprintf
 

Typedefs

typedef double passivedouble
 

Functions

void SU2_TYPE::SetValue (su2double &data, const double &val)
 Set the (primitive) value of the datatype (needs to be implemented for each new type). More...
 
void SU2_TYPE::SetSecondary (su2double &data, const double &val)
 Set the secondary value of the datatype (needs to be implemented for each new type). More...
 
double SU2_TYPE::GetValue (const su2double &data)
 Get the (primitive) value of the datatype (needs to be implemented for each new type). More...
 
double SU2_TYPE::GetSecondary (const su2double &data)
 Get the secondary value of the datatype (needs to be implemented for each new type). More...
 
double SU2_TYPE::GetDerivative (const su2double &data)
 Get the derivative value of the datatype (needs to be implemented for each new type). More...
 
void SU2_TYPE::SetDerivative (su2double &data, const double &val)
 Set the derivative value of the datatype (needs to be implemented for each new type). More...
 
int SU2_TYPE::Int (const su2double &data)
 Casts the primitive value to int (uses GetValue, already implemented for each type). More...
 
short SU2_TYPE::Short (const su2double &data)
 Casts the primitive value to short (uses GetValue, already implemented for each type). More...
 

Detailed Description

Headers for generalized datatypes. The subroutines and functions are in the datatype_structure.cpp file.

Author
T. Albring
Version
5.0.0 "Raven"

SU2 Original Developers: Dr. Francisco D. Palacios. Dr. Thomas D. Economon.

SU2 Developers: Prof. Juan J. Alonso's group at Stanford University. Prof. Piero Colonna's group at Delft University of Technology. Prof. Nicolas R. Gauger's group at Kaiserslautern University of Technology. Prof. Alberto Guardone's group at Polytechnic University of Milan. Prof. Rafael Palacios' group at Imperial College London. Prof. Edwin van der Weide's group at the University of Twente. Prof. Vincent Terrapon's group at the University of Liege.

Copyright (C) 2012-2017 SU2, the open-source CFD code.

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/.