Main Page | Class Hierarchy | Class List | File List | Class Members

state_equation.h

00001 /***************************************************************************
00002                           state_equation.h  -  description
00003                              -------------------
00004     begin                : Sun Jan 12 2003
00005     copyright            : (C) 2003 by Moritz Franosch
00006     email                : mail@Franosch.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef STATE_EQUATION_H
00019 #define STATE_EQUATION_H
00020 
00021 
00026 class State_Equation {
00027 
00028 private:
00029 
00030   double rho_0; // equilibrium density
00031   double c; // velocity of sound
00032 
00033 public: 
00034 
00037   State_Equation(const double velocity_of_sound, const double rho_0);
00038 
00041   double get_pressure_from_density(const double rho) const;
00042 
00045   double get_energy(const double m, const double rho) const;
00046 
00049   void set_rho_0(const double rho_0);
00050 
00053   void set_velocity_of_sound(const double c);
00054 
00057   double get_rho_0() const;
00058 
00061   double get_velocity_of_sound() const;
00062 
00063 };
00064 
00065 
00066 #endif // STATE_EQUATION_H

Generated on Fri Apr 22 11:06:42 2005 for partsim.kdevelop by doxygen 1.3.6