SPI
SLEPc PETSc Interface is used for rapid development and intuitive matrix operations similar to MatLab or NumPy style of operations
SPIparams.hpp
Go to the documentation of this file.
1 #ifndef SPIPARAMS_H
2 #define SPIPARAMS_H
3 #include <petscksp.h>
4 #include <string>
5 #include "SPIprint.hpp"
6 namespace SPI{
7 
8  struct SPIparams{
9  SPIparams(std::string _name="parameters"); // constructor with no arguments
10  PetscInt printSPI();// print SPI parameters
11  virtual PetscInt print();// print all parameters
12  std::string name;
13  PetscScalar Re,
14  beta,
18  x,
20  nu;
21 
22  };
23 
24 }
25 
26 #endif
SPIprint.hpp
SPI::SPIparams::Re
PetscScalar Re
Reynolds number.
Definition: SPIparams.hpp:13
SPI::SPIparams::printSPI
PetscInt printSPI()
print all variables in SPIparams
Definition: SPIparams.cpp:12
SPI::SPIparams::alpha
PetscScalar alpha
alpha streamwise wavenumber
Definition: SPIparams.hpp:15
SPI::SPIparams::omega
PetscScalar omega
omega, temporal frequency (rad/s)
Definition: SPIparams.hpp:16
SPI
Definition: SPIbaseflow.hpp:16
SPI::SPIparams::x_prev
PetscScalar x_prev
previous streamwise position
Definition: SPIparams.hpp:19
SPI::SPIparams::name
std::string name
name of parameter class
Definition: SPIparams.hpp:12
SPI::SPIparams::print
virtual PetscInt print()
print all variables in SPIparams
Definition: SPIparams.cpp:23
SPI::SPIparams::x
PetscScalar x
current streamwise position
Definition: SPIparams.hpp:18
SPI::SPIparams::nu
PetscScalar nu
kinematic viscosity (typically 1/Re)
Definition: SPIparams.hpp:20
SPI::SPIparams
Definition: SPIparams.hpp:8
SPI::SPIparams::beta
PetscScalar beta
beta spanwise wavenumber
Definition: SPIparams.hpp:14
SPI::SPIparams::x_start
PetscScalar x_start
streamwise starting location
Definition: SPIparams.hpp:17
SPI::SPIparams::SPIparams
SPIparams(std::string _name="parameters")
constructor with no arguments
Definition: SPIparams.cpp:6