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
00005
00006
00007
00008
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 }
00039 }
00040 }
00041
00042
00043 #endif