CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Programming guide for custom data types

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2018, 07:49
Default Programming guide for custom data types
  #1
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 8
fmilicchio is on a distinguished road
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.
fmilicchio is offline   Reply With Quote

Old   June 21, 2018, 09:25
Default
  #2
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
https://sourceforge.net/p/foam-exten...c/cudaSolvers/
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Old   July 3, 2018, 10:09
Default
  #3
New Member
 
Join Date: May 2018
Posts: 6
Rep Power: 8
fmilicchio is on a distinguished road
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
fmilicchio is offline   Reply With Quote

Old   July 4, 2018, 00:35
Default
  #4
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12
zhangyan is on a distinguished road
Sorry, I haven't used it.
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Reply

Tags
cuda, custom types, gpu, tutorial


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:43.