|
METHOD
|
#include <parallelBoundaryConds.h>


Public Member Functions | |
| ParallelOutflow (Data *data, ParallelEnv *env) | |
| virtual | ~ParallelOutflow () |
| void | apply (double *cons, double *prims=NULL, double *aux=NULL) |
| void | setXBoundary (double *stateVector, int nVars) |
| void | setYBoundary (double *stateVector, int nVars) |
| void | setZBoundary (double *stateVector, int nVars) |
Public Member Functions inherited from ParallelBcs | |
| ParallelBcs (Data *data, ParallelEnv *env) | |
| virtual | ~ParallelBcs () |
| void | swapGhostBuffers (double *sendToLeftBuf, double *sendToRightBuf, double *recvFromLeftBuf, double *recvFromRightBuf, int leftNeighbour, int rightNeighbour, int numCellsSent) |
| void | packXBuffer (double *sendToLeftBuf, double *sendToRightBuf, double *stateVector, int nVars) |
| void | unpackXBuffer (double *recvFromLeftBuf, double *recfFromRightBuf, double *stateVector, int nVars) |
| void | packYBuffer (double *sendToLeftBuf, double *sendToRightBuf, double *stateVector, int nVars) |
| void | unpackYBuffer (double *recvFromLeftBuf, double *recfFromRightBuf, double *stateVector, int nVars) |
| void | packZBuffer (double *sendToLeftBuf, double *sendToRightBuf, double *stateVector, int nVars) |
| void | unpackZBuffer (double *recvFromLeftBuf, double *recfFromRightBuf, double *stateVector, int nVars) |
Additional Inherited Members | |
Public Attributes inherited from ParallelBcs | |
| ParallelEnv * | env |
Protected Member Functions inherited from Bcs | |
| Bcs (Data *data) | |
| virtual | ~Bcs () |
Protected Attributes inherited from Bcs | |
| Data * | data |
Outflow boundary conditions for a data structure that has been distributed across ranks
Imposes flows that exit the domain freely at all boundaries, analogous to a domain that extends to infinity in each direction. All ghost cells are identical to their nearest physical cell.
For left-right reconstruction:
Before...
______________________________
|0|1|2|3|4||5|6|..... |12||13||14|15|16|17|
|0|1|2|3|4||5|6|..... |12||13||14|15|16|17|
After....
______________________________
|4|4|4|4||4|5|6|..... |12||13||13|13|13|13|
|4|4|4|4||4|5|6|..... |12||13||13|13|13|13|
..and similar in other directions.
Definition at line 155 of file parallelBoundaryConds.h.
|
inline |
Constructor.
Definition at line 165 of file parallelBoundaryConds.h.
|
inlinevirtual |
Destructor.
Definition at line 167 of file parallelBoundaryConds.h.
|
virtual |
Application function.
Applies the Outflow boundary conditions to the ghost cells.
| [in,out] | *cons | pointer to the conservative (sized) vector |
| [in,out] | *prims | optional pointer to the primitive vector |
| [in,out] | *aux | optional pointer to the primitive vector |
Implements Bcs.
| void ParallelOutflow::setXBoundary | ( | double * | stateVector, |
| int | nVars | ||
| ) |
Applies the Outflow boundary conditions to the ghost cells of subdomains that have an external face along the x dimension.
| [in,out] | *stateVector | pointer to one of cons, prims, aux |
| [in] | nVars | number of variables in the cons, prims or aux array |
| void ParallelOutflow::setYBoundary | ( | double * | stateVector, |
| int | nVars | ||
| ) |
Applies the Outflow boundary conditions to the ghost cells of subdomains that have an external face along the y dimension.
| [in,out] | *stateVector | pointer to one of cons, prims, aux |
| [in] | nVars | number of variables in the cons, prims or aux array |
| void ParallelOutflow::setZBoundary | ( | double * | stateVector, |
| int | nVars | ||
| ) |
Applies the Outflow boundary conditions to the ghost cells of subdomains that have an external face along the z dimension.
| [in,out] | *stateVector | pointer to one of cons, prims, aux |
| [in] | nVars | number of variables in the cons, prims or aux array |