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

Definition of functions creating divergence operator. More...

#include <functional>
#include <petscmat.h>
#include <petibm/boundary.h>
#include <petibm/mesh.h>
#include <petibm/type.h>
#include "../private/private.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.
 

Functions

PetscErrorCode petibm::operators::createDivergence (const type::Mesh &mesh, const type::Boundary &bc, Mat &D, Mat &DCorrection, const PetscBool &normalize=PETSC_TRUE)
 Create a divergence operator, $D$, and corresponding boundary correction, $D_{bc}$, for velocity fields. More...
 

Detailed Description

Definition of functions creating divergence operator.

License
BSD 3-Clause License.

Definition in file createdivergence.cpp.