2 Star 6 Fork 2

tttt/OpenFOAM编程学习

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
createFields.H 760 Bytes
一键复制 编辑 原始数据 按行查看 历史
tttt 提交于 2021-09-02 21:02 +08:00 . github上找的OpenFOAM编程学习资料
Info << "Reading transportProperties\n" << endl;
IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
dimensionedScalar nu
(
"nu",
dimViscosity,
transportProperties.lookup("nu")
);
Info<< "Reading field p\n" << endl;
volScalarField p
(
IOobject
(
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Reading field U\n" << endl;
volVectorField U
(
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tong_yan_jun/open-foam-programming-learning.git
git@gitee.com:tong_yan_jun/open-foam-programming-learning.git
tong_yan_jun
open-foam-programming-learning
OpenFOAM编程学习
master

搜索帮助