|
[Sponsors] |
[Tutorials] OpenFOAM programming tutorials for beginners |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#81 |
New Member
Bill
Join Date: Jun 2017
Posts: 13
Rep Power: 9 ![]() |
Hi Arthur,
After running the tutorial 01, the hashtable insert of newKey is placed between key0 and key1. Is it possible to insert newKey in other location, i.e. after key1? Many thanks. |
|
![]() |
![]() |
![]() |
![]() |
#82 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 ![]() |
Hash tables are unordered by definition, I'm afraid: https://en.wikipedia.org/wiki/Hash_table
You may always use two lists of different data types to associate strings and other data types, if needed. |
|
![]() |
![]() |
![]() |
![]() |
#83 | |
New Member
Bill
Join Date: Jun 2017
Posts: 13
Rep Power: 9 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#84 |
New Member
Bill
Join Date: Jun 2017
Posts: 13
Rep Power: 9 ![]() |
Hi Artur,
I run the tutorial 5. At the end of parallel running. The computation reminds me: Code:
... Finalising parallel run 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages Many thanks in advance. Bill |
|
![]() |
![]() |
![]() |
![]() |
#85 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51 ![]() ![]() ![]() |
Hi Arthur,
again, many thanks for your tutorials. I love them and - honestly - I am starting to get ready for parallel programming using your stuff. Would be nice to have more parallel stuff out (or maybe its already most covered) ![]() Thanks, Tobi
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#86 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 ![]() |
Thanks for the kind words Tobi, glad you like the materials. I'd be happy to add more parallel materials, maybe even as a separate follow-up tutorial, but I'm not sure what would be the most useful to people. Perhaps the fvMatrix and how that is handled? (I don't honestly know that much about it myself, so would be interesting to learn that). Or maybe details of decomposition? If you have any thoughts, please feel free to share.
In any case, happy foaming! A |
|
![]() |
![]() |
![]() |
![]() |
#87 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51 ![]() ![]() ![]() |
Some more advanced stuff. E.g. We use the sumOp<Type>() operator or maxOp<Type>() guy. So maybe some words about them. In patchProbes.C we have another one. So even though I am not familiar with parallel programming, it would be nice to know if these operators are coming from OF or e.g, openmpi and if we can reduce any kind of classes (with probably an own xyOp<Type> operator...)
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#88 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 ![]() |
Oh right, that's a good idea. I have written some custom operators like that, in fact, so might just be a case of copy and paste. I'll put that on my to-do list. Thanks for the suggestion!
|
|
![]() |
![]() |
![]() |
![]() |
#89 |
New Member
Dilshan Casseer
Join Date: Jan 2018
Posts: 15
Rep Power: 8 ![]() |
Thank you Artur. This will be very helpful for beginners like me.
|
|
![]() |
![]() |
![]() |
![]() |
#90 |
New Member
Join Date: Sep 2022
Posts: 6
Rep Power: 3 ![]() |
Hi Artur,
Thanks so much for your great work! This saves me tons of time for struggling around different function object and class embedded under hood. Looking for your new upcoming tutorials! Cheers, Chris |
|
![]() |
![]() |
![]() |
Tags |
turorial files, tutorial |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 05:40 |
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 14, 2016 10:19 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
Openfoam Programming from scratch | shovan | OpenFOAM Programming & Development | 1 | July 9, 2015 12:38 |