00001 #ifndef OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_MUCUS_H 00002 #define OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_MUCUS_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 #include <OpenTissue/dynamics/sph/sph_material.h> 00013 00014 namespace OpenTissue 00015 { 00016 namespace sph 00017 { 00018 00023 template< typename Types > 00024 class Mucus : public Material<Types> 00025 { 00026 public: 00027 typedef Material<Types> base_type; 00028 typedef typename Types::real_type real_type; 00029 00030 public: 00034 Mucus() : base_type() 00035 { 00036 base_type::m_name = "Mucus"; 00037 00038 base_type::m_density = 1000.0; 00039 base_type::m_pressure = 1.0; 00040 base_type::m_particle_mass = 0.04; 00041 00042 base_type::m_tension = 6.0; 00043 base_type::m_viscosity = 36.0; 00044 // base_typem_gas_stiffness = 7.0; 00045 base_type::m_gas_stiffness = 5.0; 00046 00047 base_type::m_timestep = 0.01; 00048 base_type::m_kernel_particles = 40.0; 00049 base_type::m_restitution = 0.5; 00050 00051 base_type::m_red = 0.06; 00052 base_type::m_green = 0.8; 00053 base_type::m_blue = 0.4; 00054 } 00055 00056 }; // End class Mucus 00057 00058 } // namespace sph 00059 } // namespace OpenTissue 00060 00061 // OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_MUCUS_H 00062 #endif