AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Variable.hpp File Reference

Virtual variables environment to allow the user define/manipulate the variables used in the simulation externally. (see Aqua::InpuOutput::Variable and Aqua::InpuOutput::Variables) More...

#include <Python.h>
#include <string>
#include <vector>
#include <numpy/npy_no_deprecated_api.h>
#include <numpy/ndarraytypes.h>
#include <numpy/ufuncobject.h>
#include <numpy/npy_3kcompat.h>
#include "sphPrerequisites.hpp"
#include "Tokenizer/Tokenizer.hpp"
Include dependency graph for Variable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Aqua::InputOutput::Variable
 A generic variable. Almost useless, use the overloaded classes instead of this one. More...
class  Aqua::InputOutput::ScalarVariable< T >
 A generic Scalar variable. More...
class  Aqua::InputOutput::ScalarNumberVariable< T >
class  Aqua::InputOutput::IntVariable
 An integer variable. More...
class  Aqua::InputOutput::LongVariable
 A 64bits integer variable. More...
class  Aqua::InputOutput::UIntVariable
 An unsigned integer variable. More...
class  Aqua::InputOutput::ULongVariable
 An integer variable. More...
class  Aqua::InputOutput::FloatVariable
 A float variable. More...
class  Aqua::InputOutput::DoubleVariable
 A double variable. More...
class  Aqua::InputOutput::ScalarVecVariable< T >
 A generic Scalar variable, of 2 or more components. More...
class  Aqua::InputOutput::ArrayVariable
 An array variable. More...
class  Aqua::InputOutput::Variables
 Variables manager, which can interpret the types on the fly. More...

Namespaces

namespace  Aqua
 Main AQUAgpusph namespace.
namespace  Aqua::InputOutput
 Input/Output data interfaces.

Macros

#define PY_ARRAY_UNIQUE_SYMBOL   AQUA_ARRAY_API
 Define the extension module which this Python stuff should be linked to.
#define NO_IMPORT_ARRAY
 Set this file as a helper of the group AQUA_ARRAY_API.
#define MAX_TYPE_NAME_LEN   128
#define __DECLARE_AQUA_VEC(NAME, TYPE)

Typedefs

Variable aliases

Some alias to make easier to create preprocessor directives

typedef IntVariable Aqua::InputOutput::iclVariable
typedef LongVariable Aqua::InputOutput::lclVariable
typedef UIntVariable Aqua::InputOutput::uiclVariable
typedef ULongVariable Aqua::InputOutput::ulclVariable
typedef FloatVariable Aqua::InputOutput::fclVariable
typedef DoubleVariable Aqua::InputOutput::dclVariable
typedef IVec2Variable Aqua::InputOutput::ivec2Variable
typedef IVec3Variable Aqua::InputOutput::ivec3Variable
typedef IVec4Variable Aqua::InputOutput::ivec4Variable
typedef IVec8Variable Aqua::InputOutput::ivec8Variable
typedef LVec2Variable Aqua::InputOutput::lvec2Variable
typedef LVec3Variable Aqua::InputOutput::lvec3Variable
typedef LVec4Variable Aqua::InputOutput::lvec4Variable
typedef LVec8Variable Aqua::InputOutput::lvec8Variable
typedef UIVec2Variable Aqua::InputOutput::uivec2Variable
typedef UIVec3Variable Aqua::InputOutput::uivec3Variable
typedef UIVec4Variable Aqua::InputOutput::uivec4Variable
typedef UIVec8Variable Aqua::InputOutput::uivec8Variable
typedef ULVec2Variable Aqua::InputOutput::ulvec2Variable
typedef ULVec3Variable Aqua::InputOutput::ulvec3Variable
typedef ULVec4Variable Aqua::InputOutput::ulvec4Variable
typedef ULVec8Variable Aqua::InputOutput::ulvec8Variable
typedef Vec2Variable Aqua::InputOutput::vec2Variable
typedef Vec3Variable Aqua::InputOutput::vec3Variable
typedef Vec4Variable Aqua::InputOutput::vec4Variable
typedef Vec8Variable Aqua::InputOutput::vec8Variable
typedef DVec2Variable Aqua::InputOutput::dvec2Variable
typedef DVec3Variable Aqua::InputOutput::dvec3Variable
typedef DVec4Variable Aqua::InputOutput::dvec4Variable
typedef DVec8Variable Aqua::InputOutput::dvec8Variable

Detailed Description

Virtual variables environment to allow the user define/manipulate the variables used in the simulation externally. (see Aqua::InpuOutput::Variable and Aqua::InpuOutput::Variables)

Macro Definition Documentation

◆ __DECLARE_AQUA_VEC

#define __DECLARE_AQUA_VEC ( NAME,
TYPE )
Value:
class DECLDIR NAME final : public ScalarVecVariable<TYPE> \
{ \
public: \
NAME(const std::string varname); \
~NAME(){}; \
};
#define DECLDIR
Prefix to export C functions on the compiled library.
Definition sphPrerequisites.hpp:65

◆ MAX_TYPE_NAME_LEN

#define MAX_TYPE_NAME_LEN   128

◆ NO_IMPORT_ARRAY

#define NO_IMPORT_ARRAY

Set this file as a helper of the group AQUA_ARRAY_API.

See also
http://docs.scipy.org/doc/numpy/reference/c-api.array.html#importing-the-api

◆ PY_ARRAY_UNIQUE_SYMBOL

#define PY_ARRAY_UNIQUE_SYMBOL   AQUA_ARRAY_API

Define the extension module which this Python stuff should be linked to.

In AQUAgpusph all the Python stuff is linked in the same group AQUA_ARRAY_API

See also
http://docs.scipy.org/doc/numpy/reference/c-api.array.html#importing-the-api