Mimetic Operators Library Enhanced 4.0
Loading...
Searching...
No Matches
Laplacian Class Reference

Mimetic Laplacian operator. More...

#include <laplacian.h>

Inheritance diagram for Laplacian:

Public Member Functions

 Laplacian (u16 k, u32 m, Real dx)
 1-D Mimetic Laplacian Constructor
 
 Laplacian (u16 k, u32 m, u32 n, Real dx, Real dy)
 2-D Mimetic Laplacian Constructor
 
 Laplacian (u16 k, u32 m, u32 n, u32 o, Real dx, Real dy, Real dz)
 3-D Mimetic Laplacian Constructor
 

Detailed Description

Mimetic Laplacian operator.

Definition at line 25 of file laplacian.h.

Constructor & Destructor Documentation

◆ Laplacian() [1/3]

Laplacian::Laplacian ( u16 k,
u32 m,
Real dx )

1-D Mimetic Laplacian Constructor

Parameters
kOrder of accuracy
mNumber of cells
dxSpacing between cells

Definition at line 21 of file laplacian.cpp.

21 {
22 Divergence div(k, m, dx);
23 Gradient grad(k, m, dx);
24
25 // Dimensions = m+2, m+2
26 *this = (sp_mat)div * (sp_mat)grad;
27}

◆ Laplacian() [2/3]

Laplacian::Laplacian ( u16 k,
u32 m,
u32 n,
Real dx,
Real dy )

2-D Mimetic Laplacian Constructor

Parameters
kOrder of accuracy
mNumber of cells in x-direction
nNumber of cells in y-direction
dxSpacing between cells in x-direction
dySpacing between cells in y-direction

Definition at line 30 of file laplacian.cpp.

30 {
31 Divergence div(k, m, n, dx, dy);
32 Gradient grad(k, m, n, dx, dy);
33
34 // Dimensions = (m+2)*(n+2), (m+2)*(n+2)
35 *this = (sp_mat)div * (sp_mat)grad;
36}

◆ Laplacian() [3/3]

Laplacian::Laplacian ( u16 k,
u32 m,
u32 n,
u32 o,
Real dx,
Real dy,
Real dz )

3-D Mimetic Laplacian Constructor

Parameters
kOrder of accuracy
mNumber of cells in x-direction
nNumber of cells in y-direction
oNumber of cells in z-direction
dxSpacing between cells in x-direction
dySpacing between cells in y-direction
dzSpacing between cells in z-direction

Definition at line 39 of file laplacian.cpp.

39 {
40 Divergence div(k, m, n, o, dx, dy, dz);
41 Gradient grad(k, m, n, o, dx, dy, dz);
42
43 // Dimensions = (m+2)*(n+2)*(o+2), (m+2)*(n+2)*(o+2)
44 *this = (sp_mat)div * (sp_mat)grad;
45}

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