Laplace Class Reference
[Some problems of mathematical physics.]

Laplace operator on a flat domain. More...

#include <laplace.h>

List of all members.

Public Member Functions

 Laplace (const Mesh &m)
 Constructor.
void calc1 (double *Ans, const double *F, const double *bnd)
 Calculate the value of Laplace operator for F in the inner points of the mesh.
void calc2 (double *Ans, const double *F)
 Calculate the value of Laplace operator for F in the inner points of the mesh.
void solve (double *Ans, const double *F, const double *bnd)
 Solve Laplace equation.


Detailed Description

Laplace operator on a flat domain.
Examples:

test_laplace.cpp.

Definition at line 228 of file laplace.h.


Constructor & Destructor Documentation

Laplace::Laplace ( const Mesh m  ) 

Constructor.

Parameters:
m - mesh

Definition at line 276 of file laplace.cpp.


Member Function Documentation

void Laplace::calc1 ( double *  Ans,
const double *  F,
const double *  bnd 
)

Calculate the value of Laplace operator for F in the inner points of the mesh.

Set the value of boundary points from bnd.

Parameters:
Ans - the answer (the value of Laplace operator in all mesh points)
F - vector F
bnd - needed boundary condition

Definition at line 330 of file laplace.cpp.

void Laplace::calc2 ( double *  Ans,
const double *  F 
)

Calculate the value of Laplace operator for F in the inner points of the mesh.

Returns vector of inner points.

Parameters:
Ans - the answer (the value of Laplace operator in the inner points)
F - vector F

Definition at line 291 of file laplace.cpp.

void Laplace::solve ( double *  Ans,
const double *  F,
const double *  bnd 
)

Solve Laplace equation.

\begin{eqnarray*} \Delta u &=& f(x, y) \\ \psi|_{\partial\Omega}&=&u_0 \end{eqnarray*}

Parameters:
Ans - the answer
F - right part
bnd - boundary condition

Definition at line 132 of file laplace.cpp.


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

Phelm Library
Copyright © 2009 Alexey Ozeritsky. All rights reserved.
http://resetius.ru