|
METHOD
|
#include <parallelBoundaryConds.h>


Public Member Functions | |
| ParallelPeriodic (Data *data, ParallelEnv *env) | |
| virtual | ~ParallelPeriodic () |
| void | apply (double *cons, double *prims=NULL, double *aux=NULL) |
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 |
Periodic boundary conditions for a data structure that has been distributed across ranks
Flows that exit across one domain boundary re-enter at the opposing end. I.e. the N ghost cells at one edge of the domain are set to the values of the N physical cells before the ghost cells at the opposing edge.
For left-right reconstruction:
(Note that the lower and upper halves of each row will lie on different ranks)
Before...
____________________________
|0|1|2|3||4|5|6|..... |13||14|15|16|17|
|0|1|2|3||4|5|6|..... |13||14|15|16|17|
After....
____________________________
|10|11|12|13||4|5|6|..... |13||4|5|6|7|
|10|11|12|13||4|5|6|..... |13||4|5|6|7|
..and similar in other directions.
Definition at line 230 of file parallelBoundaryConds.h.
|
inline |
Constructor.
Calls constructor of base class to store the pointer to the Data class and ParallelEnv class.
| [in] | *data | pointer to Data class |
| [in] | *env | pointer to ParallelEnv class |
Definition at line 242 of file parallelBoundaryConds.h.
|
inlinevirtual |
Destructor.
Definition at line 244 of file parallelBoundaryConds.h.
|
virtual |
Application function.
Applies the Periodic 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.