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

Definition of functions creating gradient operator. More...

#include <functional>
#include <petscmat.h>
#include <petibm/mesh.h>
#include <petibm/type.h>

Go to the source code of this file.

Namespaces

namespace  petibm
 A toolbox for building flow solvers.
 
namespace  petibm::operators
 Collections of factory functions of operators.
 

Typedefs

typedef std::vector< MatStencil > petibm::operators::StencilVec
 STL vector holding MatStencil. More...
 
typedef std::function< StencilVec(const PetscInt &, const PetscInt &, const PetscInt &)> petibm::operators::GetNeighborFunc
 a function type for functions returning neighbors' stencils. More...
 
typedef std::function< type::RealVec1D(const PetscInt &, const PetscInt &, const PetscInt &)> petibm::operators::Kernel
 a function type for functions computing matrix entries' values. More...
 

Functions

PetscErrorCode petibm::operators::createGradient (const type::Mesh &mesh, Mat &G, const PetscBool &normalize=PETSC_TRUE)
 Create a gradient operator, $G$, for pressure field. More...
 

Detailed Description

Definition of functions creating gradient operator.

License
BSD 3-Clause License.

Definition in file creategradient.cpp.