Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | List of all members
alsfvm::boundary::BoundaryCUDA< BoundaryConditions > Class Template Reference

#include <alsfvm/boundary/BoundaryCUDA.hpp>

Inheritance diagram for alsfvm::boundary::BoundaryCUDA< BoundaryConditions >:
alsfvm::boundary::Boundary

Public Member Functions

 BoundaryCUDA (size_t numberOfGhostCells)
 
virtual void applyBoundaryConditions (volume::Volume &volume, const grid::Grid &grid)
 
- Public Member Functions inherited from alsfvm::boundary::Boundary
virtual ~Boundary ()
 Since we inherit, we have an empty virtual constructor. More...
 

Constructor & Destructor Documentation

◆ BoundaryCUDA()

template<class BoundaryConditions >
alsfvm::boundary::BoundaryCUDA< BoundaryConditions >::BoundaryCUDA ( size_t  numberOfGhostCells)

Constructs a new instance

Parameters
numberOfGhostCellsthe number of ghost cells on each side to use.

Member Function Documentation

◆ applyBoundaryConditions()

template<class BoundaryConditions >
virtual void alsfvm::boundary::BoundaryCUDA< BoundaryConditions >::applyBoundaryConditions ( volume::Volume volume,
const grid::Grid grid 
)
virtual

Applies the neumann boundary to the volumes supplied. For a ghost size of 1, we set

\[U_0 = U_1\qquad\mathrm{and}\qquad U_N=U_{N-1}\]

Applies the boundary conditions to the volumes supplied.

Parameters
volumethe volume to apply the boundary condition to
gridthe active grid
Todo:
Better handling of corners.

Implements alsfvm::boundary::Boundary.


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