f*******n 发帖数: 4 | 1 Anybody writing CFD code using C++ Object Oriented programing?
Could you explain the merits and demerits of
Object-Oriented Programming for CFD codes? | x*****u 发帖数: 3419 | 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?
| f*******n 发帖数: 4 | 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.
| x*****u 发帖数: 3419 | 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.
| l*******G 发帖数: 1191 | 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?
|
|