SPI
SLEPc PETSc Interface is used for rapid development and intuitive matrix operations similar to MatLab or NumPy style of operations
SPIparams.cpp
Go to the documentation of this file.
1 #include "SPIparams.hpp"
2 
3 namespace SPI{
4 
7  std::string _name
8  ){
9  this->name = _name;
10  }
12  PetscInt SPIparams::printSPI(){
13  SPI::printfc("Re = %g+%gi",Re);
14  SPI::printfc("β = %g+%gi",beta);
15  SPI::printfc("α = %g+%gi",alpha);
16  SPI::printfc("ω = %g+%gi",omega);
17  SPI::printfc("x_start = %g+%gi",x_start);
18  SPI::printfc("x = %g+%gi",x);
19  SPI::printfc("x_prev = %g+%gi",x_prev);
20  return 0;
21  }
23  PetscInt SPIparams::print(){
24  PetscPrintf(PETSC_COMM_WORLD,("\n---------------- "+name+"---start------\n").c_str());
25  printSPI();
26  //SPI::printfc("h = %g+%gi",h);
27  PetscPrintf(PETSC_COMM_WORLD,("---------------- "+name+"---done-------\n\n").c_str());
28  return 0;
29  }
30 
31 
32 }
SPI::SPIparams::Re
PetscScalar Re
Reynolds number.
Definition: SPIparams.hpp:13
SPIparams.hpp
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::printfc
PetscInt printfc(std::string msg, const PetscScalar val)
Definition: SPIprint.cpp:29
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