CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Tutorials] OpenFOAM programming tutorials for beginners

Register Blogs Community New Posts Updated Threads Search

Like Tree195Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2021, 06:12
Default hashtable insert
  #81
New Member
 
Bill
Join Date: Jun 2017
Posts: 17
Rep Power: 9
Bill_Yang is on a distinguished road
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.
Bill_Yang is offline   Reply With Quote

Old   October 29, 2021, 07:03
Default
  #82
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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.
Artur is offline   Reply With Quote

Old   October 29, 2021, 07:12
Default
  #83
New Member
 
Bill
Join Date: Jun 2017
Posts: 17
Rep Power: 9
Bill_Yang is on a distinguished road
Quote:
Originally Posted by Artur View Post
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.
Thanks for your reply, Artur. It is very helpful.
Bill_Yang is offline   Reply With Quote

Old   November 2, 2021, 14:56
Default 3 more processes have sent help message help-btl-vader.txt
  #84
New Member
 
Bill
Join Date: Jun 2017
Posts: 17
Rep Power: 9
Bill_Yang is on a distinguished road
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
I don't understand why I receive this message '3 more processes have sent help message help-btl-vader.txt '? Could you help with this?

Many thanks in advance.
Bill
Bill_Yang is offline   Reply With Quote

Old   November 28, 2021, 15:24
Default
  #85
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   November 29, 2021, 06:11
Default
  #86
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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
Artur is offline   Reply With Quote

Old   November 29, 2021, 18:18
Default
  #87
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   November 30, 2021, 05:29
Default
  #88
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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!
Tobi likes this.
Artur is offline   Reply With Quote

Old   March 11, 2022, 00:25
Default
  #89
New Member
 
Dilshan Casseer
Join Date: Jan 2018
Posts: 15
Rep Power: 8
casseer15 is on a distinguished road
Thank you Artur. This will be very helpful for beginners like me.
casseer15 is offline   Reply With Quote

Old   January 13, 2023, 20:35
Default
  #90
New Member
 
Join Date: Sep 2022
Posts: 6
Rep Power: 4
chrisyang is on a distinguished road
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
chrisyang is offline   Reply With Quote

Reply

Tags
turorial files, 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 11:19
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
Openfoam Programming from scratch shovan OpenFOAM Programming & Development 1 July 9, 2015 13:38


All times are GMT -4. The time now is 10:33.