METHOD
ParallelOutflow Class Reference

#include <parallelBoundaryConds.h>

Inheritance diagram for ParallelOutflow:
Collaboration diagram for ParallelOutflow:

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
ParallelEnvenv
 
- Protected Member Functions inherited from Bcs
 Bcs (Data *data)
 
virtual ~Bcs ()
 
- Protected Attributes inherited from Bcs
Datadata
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ParallelOutflow()

ParallelOutflow::ParallelOutflow ( Data data,
ParallelEnv env 
)
inline

Constructor.

Definition at line 165 of file parallelBoundaryConds.h.

◆ ~ParallelOutflow()

virtual ParallelOutflow::~ParallelOutflow ( )
inlinevirtual

Destructor.

Definition at line 167 of file parallelBoundaryConds.h.

Member Function Documentation

◆ apply()

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

Application function.

Applies the Outflow 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.

◆ setXBoundary()

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.

Parameters
[in,out]*stateVectorpointer to one of cons, prims, aux
[in]nVarsnumber of variables in the cons, prims or aux array

◆ setYBoundary()

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.

Parameters
[in,out]*stateVectorpointer to one of cons, prims, aux
[in]nVarsnumber of variables in the cons, prims or aux array

◆ setZBoundary()

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.

Parameters
[in,out]*stateVectorpointer to one of cons, prims, aux
[in]nVarsnumber of variables in the cons, prims or aux array

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