PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
petibm::delta Namespace Reference

A namespace of all kinds of discretized delta functions. More...

Typedefs

typedef std::function< PetscReal(const PetscReal &r, const PetscReal &dr)> DeltaKernel
 Typedef to choose the regularized delta kernel to use. More...
 

Functions

PetscReal Roma_et_al_1999 (const PetscReal &r, const PetscReal &dr)
 Regularized delta function from Roma et al. (1999). More...
 
PetscReal Peskin_2002 (const PetscReal &r, const PetscReal &dr)
 Regularized delta function from Peskin (2002). More...
 
PetscErrorCode getKernel (const std::string &name, DeltaKernel &kernel, PetscInt &size)
 Get the delta kernel and size providing the name. More...
 
PetscReal delta (const std::vector< PetscReal > &source, const std::vector< PetscReal > &target, const std::vector< PetscReal > &widths, const DeltaKernel &kernel)
 Discrete delta function. More...
 

Detailed Description

A namespace of all kinds of discretized delta functions.

Typedef Documentation

◆ DeltaKernel

typedef std::function<PetscReal(const PetscReal &r, const PetscReal &dr)> petibm::delta::DeltaKernel

Typedef to choose the regularized delta kernel to use.

Definition at line 47 of file delta.h.

Function Documentation

◆ getKernel()

PetscErrorCode petibm::delta::getKernel ( const std::string &  name,
DeltaKernel kernel,
PetscInt &  size 
)

Get the delta kernel and size providing the name.

Parameters
name[in] Name of the delta kernel
kernel[out] The regularized delta kernel
size[out] Size of the delta kernel

Definition at line 42 of file delta.cpp.