phelm::Mesh Struct Reference
[Mesh and mesh functions.]

Mesh class. More...

#include <phelm.h>

List of all members.

Public Types

typedef std::vector< Triangletriangles_t
 triangles container
typedef std::vector< MeshPointpoints_t
 points container
typedef std::vector< int > points_flags_t
 points properties container

Public Member Functions

bool load (FILE *f)
 Load mesh from file.
void prepare ()
 Prepare all of mesh triangles.
void info ()
 Print mesh information to stdout.

Public Attributes

triangles_t tr
 triangles array
points_t ps
 points array
points_flags_t ps_flags
 Properties array/
  • 0 - inner point
  • 1 - boundary point.

std::vector< std::vector< int > > adj
 mapping: point -> triangle in point.
std::vector< int > inner
 Sequence numbers of inner points.
std::vector< int > outer
 Sequence numbers of boundary points.
std::vector< int > p2io
 mapping: global point number -> inner point number or outer point number.


Detailed Description

Mesh class.
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 441 of file phelm.h.


Member Function Documentation

bool phelm::Mesh::load ( FILE *  f  ) 

Load mesh from file.

Parameters:
f - file
Returns:
true if success
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 53 of file phelm.cpp.


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

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