Converters and projectors.
[Mesh and mesh functions.]


Typedefs

typedef double(* phelm::f_xy_t )(double x, double y)
 Function.
typedef double(* phelm::f_xyt_t )(double x, double y, double t)
 Function.

Functions

void phelm::p2u (double *u, const double *p, const double *bnd, const Mesh &m)
 Add boundary conditions to p.
void phelm::u2p (double *p, const double *u, const Mesh &m)
 Remove boundary conditions from u.
void phelm::proj (double *F, const Mesh &mesh, f_xy_t f)
 Project function f(x,y) to the mesh.
void phelm::proj_bnd (double *F, const Mesh &m, f_xy_t f)
 Project function f(x,y) to the boundary of the mesh.
void phelm::proj_bnd (double *F, const double *F1, const Mesh &m)
 Project vector F1 to the boundary of the mesh.
void phelm::set_bnd (double *F, const double *bnd, const Mesh &m)
 Set the boundary value of vector F.
void phelm::proj (double *F, const Mesh &mesh, f_xyt_t f, double t)
 Project function f(x,y,t) to the mesh.
void phelm::proj_bnd (double *F, const Mesh &m, f_xyt_t f, double t)
 Project function f(x,y,t) to the boundary of the mesh.

Typedef Documentation

typedef double(* phelm::f_xy_t)(double x, double y)

Function.

Parameters:
x - x coordinate
y - y coordinate
Returns:
value

Definition at line 646 of file phelm.h.

typedef double(* phelm::f_xyt_t)(double x, double y, double t)

Function.

Parameters:
x - x coordinate
y - y cooddinate
t - time
Returns:
value

Definition at line 655 of file phelm.h.


Function Documentation

void phelm::p2u ( double *  u,
const double *  p,
const double *  bnd,
const Mesh &  m 
)

Add boundary conditions to p.

Parameters:
p - the value of u on the inner mesh points
u - (output) mesh function
bnd - the value of u on the boundary mesh points
m - mesh
Examples:
test_barvortex.cpp, and test_system_laplace.cpp.

Definition at line 352 of file phelm.cpp.

void phelm::proj ( double *  F,
const Mesh &  mesh,
f_xyt_t  f,
double  t 
)

Project function f(x,y,t) to the mesh.

Parameters:
F - (output) the value of f(x,y) on mesh points
mesh - the mesh
f - function f(x, y)
t - time

Definition at line 455 of file phelm.cpp.

void phelm::proj ( double *  F,
const Mesh &  mesh,
f_xy_t  f 
)

Project function f(x,y) to the mesh.

Parameters:
F - (output) the value of f(x,y) on mesh points
mesh - the mesh
f - function f(x, y)
Examples:
test_baroclin.cpp, test_barvortex.cpp, test_chafe.cpp, test_laplace.cpp, test_schafe.cpp, test_slaplace.cpp, and test_system_laplace.cpp.

Definition at line 427 of file phelm.cpp.

void phelm::proj_bnd ( double *  F,
const Mesh &  m,
f_xyt_t  f,
double  t 
)

Project function f(x,y,t) to the boundary of the mesh.

Parameters:
F - (output) the value of f(x,y) on boundary points
m - the mesh
f - function f(x, y)
t - time

Definition at line 463 of file phelm.cpp.

void phelm::proj_bnd ( double *  F,
const double *  F1,
const Mesh &  m 
)

Project vector F1 to the boundary of the mesh.

Parameters:
F - (output) the value of F1 on boundary points
m - the mesh
F1 - mesh vector

Definition at line 446 of file phelm.cpp.

void phelm::proj_bnd ( double *  F,
const Mesh &  m,
f_xy_t  f 
)

Project function f(x,y) to the boundary of the mesh.

Parameters:
F - (output) the value of f(x,y) on boundary points
m - the mesh
f - function f(x, y)
Examples:
test_barvortex.cpp, test_chafe.cpp, test_laplace.cpp, test_schafe.cpp, test_slaplace.cpp, and test_system_laplace.cpp.

Definition at line 437 of file phelm.cpp.

void phelm::set_bnd ( double *  F,
const double *  bnd,
const Mesh &  m 
)

Set the boundary value of vector F.

Parameters:
F - (input/output) mesh vector
bnd - boundary value
m - mesh

Definition at line 382 of file phelm.cpp.

void phelm::u2p ( double *  p,
const double *  u,
const Mesh &  m 
)

Remove boundary conditions from u.

Parameters:
p - (output) the value of u on the inner mesh points
u - mesh function
m - mesh
Examples:
test_barvortex.cpp.

Definition at line 373 of file phelm.cpp.


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