Overview
Comment: | Declarations of class string prepended with std:: to satisfy g++. cmath is preferred to math.h |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
01ef22d887d7f588c959e9750d81db22 |
User & Date: | geraint@users.sourceforge.net on 2004-08-09 17:46:52 |
Other Links: | branch diff | manifest | tags |
Context
2004-08-09
| ||
17:49:06 |
Prepended std:: to iostream classes to satisfy g++. cmath is preferred to math.h check-in: 8ae6d2d4de user: geraint@users.sourceforge.net tags: origin/master, trunk | |
17:46:52 |
Declarations of class string prepended with std:: to satisfy g++. cmath is preferred to math.h check-in: 01ef22d887 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
17:45:56 | cmath is preferred to math.h check-in: b22e319862 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/cr/hh/pressuredrop.hh from [378b136495] to [6e65549995].
1 2 3 | #ifndef PRESSUREDROP_HH #define PRESSUREDROP_HH | > | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #ifndef PRESSUREDROP_HH #define PRESSUREDROP_HH #include <cmath> // fabs, pow #include <string> #include "constants.hh" #include "frictionfactor.hh" #include "kinematicviscosity.hh" #include "sign.hh" inline double pressuredrop(const std::string fluid, const double d, const double l, const double r, const double rho, const double T, const double Q) { double nu = kinematicviscosity(fluid, T); double Re = 4.0 * fabs(Q) / (pi * d * nu); double f = frictionfactor(Re, r); double k = 4.0 * f * l / d; double dP = k * 8.0 * rho * pow(Q, 2) / (pi2 * pow(d, 4)); return (dP * sign(Q)); } inline double pressuredrop(const std::string fluid, const double d, const double l, const double r, const double rho, const double T, const causality_t effort_causality, const int port, const double Q, const causality_t flow_causality, const int port_in) |
︙ | ︙ |