|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Initializes the WENO-type schemes. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <arrayfunctions_gpu.h>#include <interpolation.h>#include <mpivars.h>#include <hypar.h>Go to the source code of this file.
Functions | |
| int | WENOFifthOrderInitializeWeights (double *const, double *const, double *const, const int *const, int, void *, void *) |
| int | WENOFifthOrderCalculateWeights (double *, double *, double *, int, void *, void *) |
| int | WENOFifthOrderCalculateWeightsChar (double *, double *, double *, int, void *, void *) |
| int | gpuWENOFifthOrderCalculateWeights (double *, double *, double *, int, void *, void *) |
| int | WENOInitialize (void *s, void *m, char *scheme, char *type) |
Initializes the WENO-type schemes.
Definition in file WENOInitialize.c.
| int WENOFifthOrderInitializeWeights | ( | double *const | a_w1, |
| double *const | a_w2, | ||
| double *const | a_w3, | ||
| const int *const | a_offset, | ||
| int | dir, | ||
| void * | s, | ||
| void * | m | ||
| ) |
This function initializes the arrays to store the nonlinear weights for fifth order WENO-type schemes to their optimal values (i.e. values of the weights for a perfectly smooth solution). 5th order methods need three weights at each grid interface.
Notes:
| a_w1 | Weight array |
| a_w2 | Weight array |
| a_w3 | Weight array |
| a_offset | Offset array |
| dir | Spatial dimension |
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
Definition at line 33 of file WENOFifthOrderInitializeWeights.c.
| int WENOFifthOrderCalculateWeights | ( | double * | fC, |
| double * | uC, | ||
| double * | x, | ||
| int | dir, | ||
| void * | s, | ||
| void * | m | ||
| ) |
Compute the nonlinear weights for 5th order WENO-type schemes. This function is a wrapper that calls the appropriate function, depending on the type of WENO weights.
| fC | Array of cell-centered values of the function \({\bf f}\left({\bf u}\right)\) |
| uC | Array of cell-centered values of the solution \({\bf u}\) |
| x | Grid coordinates |
| dir | Spatial dimension along which to interpolation |
| s | Object of type HyPar containing solver-related variables |
| m | Object of type MPIVariables containing MPI-related variables |
Definition at line 40 of file WENOFifthOrderCalculateWeights.c.
| int WENOFifthOrderCalculateWeightsChar | ( | double * | fC, |
| double * | uC, | ||
| double * | x, | ||
| int | dir, | ||
| void * | s, | ||
| void * | m | ||
| ) |
Compute the nonlinear weights for 5th order WENO-type schemes. This function is a wrapper that calls the appropriate function, depending on the type of WENO weights.
| fC | Array of cell-centered values of the function \({\bf f}\left({\bf u}\right)\) |
| uC | Array of cell-centered values of the solution \({\bf u}\) |
| x | Grid coordinates |
| dir | Spatial dimension along which to interpolation |
| s | Object of type HyPar containing solver-related variables |
| m | Object of type MPIVariables containing MPI-related variables |
Definition at line 66 of file WENOFifthOrderCalculateWeights.c.
| int gpuWENOFifthOrderCalculateWeights | ( | double * | fC, |
| double * | uC, | ||
| double * | x, | ||
| int | dir, | ||
| void * | s, | ||
| void * | m | ||
| ) |
Compute the nonlinear weights for 5th order WENO-type schemes. This function is a wrapper that calls the appropriate function, depending on the type of WENO weights.
| fC | Array of cell-centered values of the function \({\bf f}\left({\bf u}\right)\) |
| uC | Array of cell-centered values of the solution \({\bf u}\) |
| x | Grid coordinates |
| dir | Spatial dimension along which to interpolation |
| s | Object of type HyPar containing solver-related variables |
| m | Object of type MPIVariables containing MPI-related variables |
Definition at line 30 of file WENOFifthOrderCalculateWeights_GPU.cu.
| int WENOInitialize | ( | void * | s, |
| void * | m, | ||
| char * | scheme, | ||
| char * | type | ||
| ) |
This function initializes the WENO-type methods.
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| scheme | Name of scheme |
| type | Type of interpolation |
Definition at line 34 of file WENOInitialize.c.