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: |
7850422450df1da039b858673afca586 |
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: 5ad98a8817 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: 7850422450 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
17:45:56 | cmath is preferred to math.h check-in: e2526f63ef 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) |
︙ | ︙ |