utilities.hpp

00001 // This file is part of the imaging2 class library.
00002 //
00003 // University of Innsbruck, Infmath Imaging, 2009.
00004 // http://infmath.uibk.ac.at
00005 //
00006 // All rights reserved.
00007 
00008 
00009 #ifndef FEM_UTILITIES_H
00010 #define FEM_UTILITIES_H
00011 
00012 #include <fem/Grid.hpp>
00013 #include <fem/fem_2d_triangle_types.hpp>
00014 #include <fem/fem_1d_types.hpp>
00015 
00016 namespace imaging
00017 {
00023   void uniform_grid(float_t lower_bound, float_t upper_bound, std::size_t n_elements, Grid<fem_1d_types> & grid, ublas::compressed_matrix<float_t> & stiffness_matrix_prototype, std::size_t system_size = 1);
00024   
00031   void circle_grid(float_t radius, std::size_t n_rings, Grid<fem_2d_triangle_types> & grid, ublas::compressed_matrix<float_t> & stiffness_matrix_prototype, std::size_t system_size = 1);
00032   
00039   void ellipse_grid(float_t a, float_t b, std::size_t n_rings, Grid<fem_2d_triangle_types> & grid, ublas::compressed_matrix<float_t> & stiffness_matrix_prototype, std::size_t system_size = 1);
00040   
00047   void triangulate_shape(const BoundaryDiscretizer<2> & shape_discretizer, float_t max_triangle_area, Grid<fem_2d_triangle_types> & grid, ublas::compressed_matrix<float_t> & stiffness_matrix_prototype, std::size_t system_size = 1);
00048 }
00049 
00050 #endif
00051 

Generated on Tue Feb 10 10:01:29 2009 for imaging2 by  doxygen 1.5.5