PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
misc.cpp File Reference

Implementations of some miscellaneous functions. More...

#include <petibm/mesh.h>
#include <petibm/misc.h>
#include <petscsys.h>
#include "../private/private.h"

Go to the source code of this file.

Namespaces

namespace  petibm
 A toolbox for building flow solvers.
 
namespace  petibm::misc
 A namespace holding miscellaneous functions.
 

Functions

PetscErrorCode petibm::misc::checkPeriodicBC (const type::IntVec2D &bcTypes, type::BoolVec2D &periodic)
 Check if there is any periodic boundary condition and if these periodic BCs make sense. More...
 
PetscErrorCode petibm::misc::checkBoundaryProc (const DM &da, const type::IntVec1D &n, const type::BCLoc &loc, PetscBool &onThisProc)
 Check if a boundary is on this process. More...
 
PetscErrorCode petibm::misc::getGhostPointList (const type::Mesh &mesh, const type::Field &field, const type::BCLoc &loc, type::GhostPointsList &points)
 Get a list of ghost points on a desired boundary. More...
 
PetscErrorCode petibm::misc::getPerpendAxes (const PetscInt &self, type::IntVec1D &pAxes)
 An utility to get the perpendicular axes of a desired axis. More...
 
PetscErrorCode petibm::misc::getGhostTargetStencil (const type::IntVec1D &n, const type::BCLoc &loc, const type::IntVec1D &pIdx, MatStencil &ghost, MatStencil &target)
 Get the stencils of a desired ghost point and its corresponding boundary point. More...
 

Detailed Description

Implementations of some miscellaneous functions.

License
BSD 3-Clause License.

Definition in file misc.cpp.