METHOD
Periodic Class Reference

#include <boundaryConds.h>

Inheritance diagram for Periodic:
Collaboration diagram for Periodic:

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
Datadata
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Periodic()

Periodic::Periodic ( Data data)
inline

Constructor.

Calls constructor of base class to store the pointer to the Data class.

Parameters
[in]*datapointer to Data class
See also
Bcs::Bcs

Definition at line 163 of file boundaryConds.h.

◆ ~Periodic()

virtual Periodic::~Periodic ( )
inlinevirtual

Destructor.

Definition at line 165 of file boundaryConds.h.

Member Function Documentation

◆ apply()

void Periodic::apply ( double *  cons,
double *  prims = NULL,
double *  aux = NULL 
)
virtual

Application function.

Applies the Periodic boundary conditions to the ghost cells.

Parameters
[in,out]*conspointer to the conservative (sized) vector
[in,out]*primsoptional pointer to the primitive vector
[in,out]*auxoptional pointer to the primitive vector
See also
Bcs::apply

Implements Bcs.


The documentation for this class was generated from the following file: