freesteam

码农软件 · 软件分类 · 其他开发相关 · 2019-10-29 23:13:12

软件介绍

Freesteam是一个库,让您使用业界标准IAPWS - IF97计算水和水蒸汽性质蒸汽表。这是C + +类库,可到您的代码中。插件允许 freesteam能与电子表格和其他应用的集成正在开发中。所包含的单元测试确保与出版属性值的情况。 IAPWS - 95(科学使用)的相关性也包括在内,并作为此验证的一部分使用。

示例代码:

#include <freesteam/steam_ps.h>
#include <freesteam/steam_pT.h>
#include <freesteam/region4.h>
#include <stdio.h>

int main(void){

fprintf(stderr,"\nThis example demonstrates use of a few of the basic"
" capabilities of freesteam. It calculates the rise in temperature"
" seen in isentropic compression of a sample of steam initially at"
" 1 bar, 400 K, to a final pressure of 10 bar. It also calculates"
" the saturation temperature for steam at that final pressure.\n\n"
);

double T = 400.; /* in Kelvin! */
double p = 1e5; /* = 1 bar */

fprintf(stderr,"Initial temperature = %f K, pressure = %f bar\n", T, p/1e5);

/* set a steam state of 1 bar, 400 K */
SteamState S = freesteam_set_pT(1e5, 400);

double s = freesteam_s(S);
fprintf(stderr,"Entropy at initial state is %f kJ/kgK\n",s/1e3);

/* calculate a steam state with entropy from above and 10 bar pressure */
SteamState S2 = freesteam_set_ps(10e5, s);

double T2 = freesteam_T(S2);
double p2 = freesteam_p(S2);

/* output the new temperature */
fprintf(stderr,"New temperature is %f K at %f bar\n", T2, p2/1e5);

fprintf(stderr,"Check: final entropy is %f kJ/kgK\n", freesteam_s(S2)/1e3);

/* saturation temperature at final pressure */
double Tsat = freesteam_region4_Tsat_p(p2);
fprintf(stderr,"Saturation temperature at %f bar is %f K.\n\n",p2/1e5, Tsat);

return 0;
}

本文地址:https://codercto.com/soft/d/17857.html

Google

Google

托马斯·舒尔茨(Thomas·Schulz) / 严孟然、陈琴 / 当代中国出版社 / 2016-11-1 / CNY 49.80

想要掌握未来,必须了解谷歌 1998年从车库起家,短短数年研发上千项专利,2016年力压苹果、亚马逊,成为“世界最具价值品牌”“最佳雇主”,谷歌无疑是互联网时代的最大赢家,这家公司有能力通过巨额广告利润收获现在,更有意愿在人工智能层面创造未来。 据说谷歌势不可挡,永不餍足。从互联网搜索到智能翻译再到地图导航,谷歌是我们通向世界的门户。不仅如此,就像管理全世界的数据流一样,谷歌还要在不久......一起来看看 《Google》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具