Skip to content

Commit

Permalink
Save with UTF-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Dec 3, 2019
1 parent 7108b03 commit c9b34e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions IF97.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace IF97
// IF97 Constants
const double Tcrit = 647.096; // K
const double Pcrit = 22.064*p_fact; // Pa
const double Rhocrit = 322.0; // kg/m³
const double Rhocrit = 322.0; // kg/m³
const double Scrit = 4.41202148223476*R_fact; // J/kg-K (needed for backward eqn. in Region 3(a)(b)
const double Ttrip = 273.16; // K
const double Ptrip = 0.000611656*p_fact; // Pa
Expand Down Expand Up @@ -2388,7 +2388,7 @@ namespace IF97
// The equation is rearranged to solve for rho and turned
// into functions f(T,P,rho0) and f'(T,P,rho0) for the
// Newton-Raphson technique. Functions for
// dphi/ddelta and d²phi/ddelta² were also required. These
// dphi/ddelta and d²phi/ddelta² were also required. These
// additional Taylor functions are defined above.
//
double f(double T, double p, double rho0) const{
Expand Down Expand Up @@ -4162,7 +4162,7 @@ namespace IF97
return RegionOutput( IF97_HMASS,RegionOutputBackward(Pmax,s,IF97_SMASS),Pmax, NONE);
else {
// Determining H(s) along Tmax is difficult because there is no direct p(T,s) formulation.
// This linear combination fit h(s)=a*ln(s)+b/s+c/s²+d is not perfect, but it's close
// This linear combination fit h(s)=a*ln(s)+b/s+c/s²+d is not perfect, but it's close
// and can serve as a limit along that Tmax boundary. Coefficients in HTmaxdata above.
// There is a better way to do this using Newton-Raphson on Tmax = T(p,s), but it is iterative and slow.
double ETA = Hmax_n[0]*log(sigma) + Hmax_n[1]/sigma + Hmax_n[2]/pow(sigma,2) +Hmax_n[3];
Expand Down Expand Up @@ -4313,14 +4313,14 @@ namespace IF97
inline double cvmass_Tp(double T, double p){ return RegionOutput( IF97_CVMASS, T, p, NONE); };
/// Get the speed of sound [m/s] as a function of T [K] and p [Pa]
inline double speed_sound_Tp(double T, double p){ return RegionOutput( IF97_W, T, p, NONE); };
/// Get the [d(rho)/d(p)]T [kg/m³/Pa] as a function of T [K] and p [Pa]
/// Get the [d(rho)/d(p)]T [kg/m³/Pa] as a function of T [K] and p [Pa]
inline double drhodp_Tp(double T, double p){ return RegionOutput( IF97_DRHODP, T, p, NONE); };

// ******************************************************************************** //
// Transport Properties //
// ******************************************************************************** //

/// Get the viscosity [Pa-s] as a function of T [K] and Rho [kg/m³]
/// Get the viscosity [Pa-s] as a function of T [K] and Rho [kg/m³]
inline double visc_TRho(double T, double rho) {
// Since we have density, we don't need to determine the region for viscosity.
static Region1 R1; // All regions use base region equations for visc(T,rho).
Expand Down

2 comments on commit c9b34e0

@henningjp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibell - Not sure what you did here. Can you explain? It obviously deals with the unicode characters, ² and ³, but I can't see a difference. Just want to make sure my VS settings don't automatically undo this with future updates, and I have a patch to push out. Thanks.

@ibell
Copy link
Contributor Author

@ibell ibell commented on c9b34e0 Apr 24, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.