• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/dynamics/fem/fem_uniform_young.h

Go to the documentation of this file.
00001 #ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
00002 #define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
00003 //
00004 // OpenTissue Template Library
00005 // - A generic toolbox for physics-based modeling and simulation.
00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
00007 //
00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php
00009 //
00010 #include <OpenTissue/configuration.h>
00011 
00012 namespace OpenTissue
00013 {
00014   namespace fem
00015   {
00016     namespace detail
00017     {
00018 
00025       template<typename real_type, typename tetrahedron_iterator>
00026       inline void uniform_young(
00027         tetrahedron_iterator const & begin
00028         , tetrahedron_iterator const & end
00029         ,real_type const & young
00030         )
00031       {
00032         assert(young>=0 || !"uniform_young(): Young modulus must not be negative");
00033 
00034         for (tetrahedron_iterator T = begin;T!=end;++T)
00035           T->m_young = young;
00036       }
00037 
00038     } // namespace detail
00039   } // namespace fem
00040 } // namespace OpenTissue
00041 
00042 //OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
00043 #endif

Generated on Thu Dec 1 2011 12:52:20 for HUMIM Tracker by  doxygen 1.7.1