|
METHOD
|
#include <boundaryConds.h>


Public Member Functions | |
| Periodic (Data *data) | |
| virtual | ~Periodic () |
| void | apply (double *cons, double *prims=NULL, double *aux=NULL) |
Additional Inherited Members | |
Protected Member Functions inherited from Bcs | |
| Bcs (Data *data) | |
| virtual | ~Bcs () |
Protected Attributes inherited from Bcs | |
| Data * | data |
Periodic boundary conditions
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:
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 151 of file boundaryConds.h.
|
inline |
Constructor.
Calls constructor of base class to store the pointer to the Data class.
| [in] | *data | pointer to Data class |
Definition at line 163 of file boundaryConds.h.
|
inlinevirtual |
Destructor.
Definition at line 165 of file boundaryConds.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.