|
[Sponsors] |
June 21, 2018, 07:49 |
Programming guide for custom data types
|
#1 |
New Member
Join Date: May 2018
Posts: 6
Rep Power: 8 |
Dear all,
I have played with OpenFOAM and customized my very basic first solver (icoFoam) as suggested by the tutorials I have found online. Now my basic knowledge isn't enough to move forward. I've searched online but no tutorial/source code is available (*) that answers this question: How can I implement custom matrix/vector classes?For instance, I'd like to use CUDA to perform some computations, and a tutorial on how to achieve this would be quite useful. Of course, I'd like my classes to be used by OpenFOAM's algorithms, but I don't know if it's technically feasible (being also performant is another step). Thanks for any pointers! (*) PS. I am aware of RapidCFD, but it seems a fork of OpenFOAM, too much probably to begin with. |
|
June 21, 2018, 09:25 |
|
#2 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
__________________
https://openfoam.top |
|
July 3, 2018, 10:09 |
|
#3 |
New Member
Join Date: May 2018
Posts: 6
Rep Power: 8 |
Thanks, zhangyan.
I have successfully compiled foam-extend-4.0, and CUDA solvers in src/. It seems, though, I cannot find any tutorial on how to use the included CUDA solvers. Any hints about this? Thanks! Franco |
|
July 4, 2018, 00:35 |
|
#4 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
Sorry, I haven't used it.
__________________
https://openfoam.top |
|
Tags |
cuda, custom types, gpu, tutorial |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with exporting data to Tecplot | v.jab | OpenFOAM Post-Processing | 2 | January 11, 2017 09:56 |
paraview - cell data or point data on plot over line | bye bye my blue | OpenFOAM | 0 | December 13, 2016 07:07 |
Error when reading data file. | WJXu | FLUENT | 7 | September 1, 2015 20:34 |
[General] Warping Cells by Vectors? | ronwelty | ParaView | 10 | April 29, 2014 06:52 |
Fluent 5.5. What the differences with fluent 5.3?? | confused | FLUENT | 2 | July 29, 2001 22:58 |