avatar
C++ object-oriented for CFD# Computation - 科学计算
f*n
1
Anybody writing CFD code using C++ Object Oriented programing?
Could you explain the merits and demerits of
Object-Oriented Programming for CFD codes?
avatar
x*u
2
it's becoming better for scientific computation.
have a look at blitz++ which can be as fast as fortran.
and, you don't have to Object Oriented programe. C++!=OOP.

【在 f*******n 的大作中提到】
: Anybody writing CFD code using C++ Object Oriented programing?
: Could you explain the merits and demerits of
: Object-Oriented Programming for CFD codes?

avatar
f*n
3
Thanks, XiaoZhu,
Yes, C++ would run faster than Fortran in the near future for
there are not too many people working on Fortran compiler these days.
The problem I am thinking is if I want to write CFD code in OO style,
How should I implement a class, a grid node or a domain.

【在 x*****u 的大作中提到】
: it's becoming better for scientific computation.
: have a look at blitz++ which can be as fast as fortran.
: and, you don't have to Object Oriented programe. C++!=OOP.

avatar
x*u
4
a domian could be a class that has functions like generate, locate... and
members like grid nodes or anything you need. It's actually a good way because
they are like globe variables in the class and safe to outside.

【在 f*******n 的大作中提到】
: Thanks, XiaoZhu,
: Yes, C++ would run faster than Fortran in the near future for
: there are not too many people working on Fortran compiler these days.
: The problem I am thinking is if I want to write CFD code in OO style,
: How should I implement a class, a grid node or a domain.

avatar
l*G
5

You can google and download OpenFOAM, it's entirely C++ and OO,

【在 f*******n 的大作中提到】
: Anybody writing CFD code using C++ Object Oriented programing?
: Could you explain the merits and demerits of
: Object-Oriented Programming for CFD codes?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。