HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
NavierStokes3DEigen.c File Reference

Contains the functions to compute left and right eigenvectors for the 3D Navier Stokes equations. More...

#include <stdlib.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <physicalmodels/navierstokes3d.h>
#include <hypar.h>

Go to the source code of this file.

Functions

int NavierStokes3DLeftEigenvectors (double *u, double *L, void *p, int dir)
 
int NavierStokes3DRightEigenvectors (double *u, double *R, void *p, int dir)
 

Detailed Description

Contains the functions to compute left and right eigenvectors for the 3D Navier Stokes equations.

Author
Debojyoti Ghosh

Definition in file NavierStokes3DEigen.c.

Function Documentation

◆ NavierStokes3DLeftEigenvectors()

int NavierStokes3DLeftEigenvectors ( double *  u,
double *  L,
void *  p,
int  dir 
)

Compute the left eigenvections for the 3D Navier Stokes equations. This function just calls the macro _NavierStokes3DLeftEigenvectors_ and is not used by any functions within the 3D Navier Stokes module. However, it's necessary to define it and provide it to the the solver object (HyPar) so that it can then send it to interpolation functions for a characteristic-based reconstruction.

Parameters
uConserved solution at a grid point
LArray of size nvar^2 = 5^2 to save the matrix of left eigenvectors in (row-major format).
pObject of type NavierStokes3D with physics-related variables
dirSpatial dimension (x, y, or z)

Definition at line 20 of file NavierStokes3DEigen.c.

27 {
28  NavierStokes3D *param = (NavierStokes3D*) p;
30  return(0);
31 }
#define _NavierStokes3DLeftEigenvectors_(u, stride, L, ga, dir)
Structure containing variables and parameters specific to the 3D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 3D Navier-Stokes equations.
static const int _NavierStokes3D_stride_

◆ NavierStokes3DRightEigenvectors()

int NavierStokes3DRightEigenvectors ( double *  u,
double *  R,
void *  p,
int  dir 
)

Compute the right eigenvections for the 3D Navier Stokes equations. This function just calls the macro _NavierStokes3DRightEigenvectors_ and is not used by any functions within the 3D Navier Stokes module. However, it's necessary to define it and provide it to the the solver object (HyPar) so that it can then send it to interpolation functions for a characteristic-based reconstruction.

Parameters
uConserved solution at a grid point
RArray of size nvar^2 = 5^2 to save the matrix of right eigenvectors in (row-major format).
pObject of type NavierStokes3D with physics-related variables
dirSpatial dimension (x, y, or z)

Definition at line 39 of file NavierStokes3DEigen.c.

46 {
47  NavierStokes3D *param = (NavierStokes3D*) p;
49  return(0);
50 }
#define _NavierStokes3DRightEigenvectors_(u, stride, R, ga, dir)
Structure containing variables and parameters specific to the 3D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 3D Navier-Stokes equations.
static const int _NavierStokes3D_stride_