SphereLaplace Class Reference
[Some problems of mathematical physics.]

Spherical Laplace operator. More...

#include <laplace.h>

List of all members.

Public Member Functions

 SphereLaplace (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

Spherical Laplace operator.

\[ \Delta \psi(\varphi, \lambda)= \frac{1}{cos\varphi}\frac{\partial}{\partial\varphi}cos(\varphi)\frac{\partial}{\partial\varphi}\psi+ \frac{1}{cos^2\varphi}\frac{\partial^2}{\partial\lambda^2}\psi \]

Examples:

test_barvortex.cpp, and test_slaplace.cpp.

Definition at line 118 of file laplace.h.


Constructor & Destructor Documentation

SphereLaplace::SphereLaplace ( const Mesh m  ) 

Constructor.

Parameters:
m - mesh

Definition at line 227 of file sphere_laplace.cpp.


Member Function Documentation

void SphereLaplace::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 263 of file sphere_laplace.cpp.

void SphereLaplace::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 239 of file sphere_laplace.cpp.

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

Solve Laplace equation.

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

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

Definition at line 156 of file sphere_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