• 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/sph/materials/sph_steam.h

Go to the documentation of this file.
00001 #ifndef OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_STEAM_H
00002 #define OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_STEAM_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 
00022     template< typename Types >
00023     class Steam : public Material<Types>
00024     {
00025     public:
00026       typedef Material<Types>  base_type;
00027       typedef typename Types::real_type  real_type;
00028 
00029     public:
00033       Steam() : base_type()
00034       {
00035         base_type::m_name             = "Steam";
00036 
00037         base_type::m_density          =      0.59;    // [kg/m^3]
00038         base_type::m_particle_mass    =      0.00005; // [kg]
00039         base_type::m_pressure         = 101325.0;     // [Pa = N/m^2 = kg/m.s^2]
00040 
00041         base_type::m_buoyancy         =      5.0;     // [??]
00042         base_type::m_viscosity        =      0.01;    // [Pa.s = N.s/m^2 = kg/m.s]
00043         //      base_type::m_gas_stiffness    =      8.0;     // [J = N.m = kg.m^2/s^2]
00044         base_type::m_gas_stiffness    =      4.0;     // [J = N.m = kg.m^2/s^2]
00045 
00046         base_type::m_timestep         =      0.01;    // [s]
00047         base_type::m_kernel_particles =     12.0;
00048         base_type::m_restitution      =      0.0;
00049 
00050         base_type::m_red              =      0.75;
00051         base_type::m_green            =      0.75;
00052         base_type::m_blue             =      0.75;
00053       }
00054 
00058       ~Steam()
00059       {
00060       }
00061 
00062     }; // End class Steam
00063 
00064   } // namespace sph
00065 } // namespace OpenTissue
00066 
00067 // OPENTISSUE_DYNAMICS_SPH_MATERIALS_SPH_STEAM_H
00068 #endif

Generated on Thu Dec 1 2011 12:53:11 for HUMIM Tracker by  doxygen 1.7.1