|
[Sponsors] |
[Other] A novel Chemistry Load Balancing Model for OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2024, 05:00 |
A novel Chemistry Load Balancing Model for OpenFOAM
|
#1 |
New Member
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9 |
Hello OpenFOAM Community,
I am excited to announce the release of a new load balancing library designed to enhance the performance of OpenFOAM's reacting solvers in parallel environments. This development is particularly significant for those working with reacting flows, where the computational cost of calculating chemical reaction rates can greatly surpass the costs associated with integrating convective and diffusive transport terms. Key Features and Benefits:
The library has been rigorously validated on various test cases, including extensive simulations on the HLRS Hawk super-computer using up to 8000 cores. Results show that the load-balanced models produce identical results to the original unbalanced models, with substantial speed-up factors:
Conclusion: This novel load balancing library is a robust solution for improving the efficiency of reacting flow simulations in OpenFOAM, especially in massively parallel computing environments. I encourage the community to explore and integrate this library into their simulations to take advantage of the significant performance enhancements it offers. Feel free to reach out for more information or if you have any questions. Your feedback and experiences with the library would be greatly appreciated! Best regards, Jan Gärtner GitHub Link: https://github.com/ITV-Stuttgart/loa...ChemistryModel Article Link: https://www.sciencedirect.com/scienc...10465524002455 |
|
August 26, 2024, 13:44 |
Add custom chemistry model to the load balancing library
|
#2 |
New Member
Join Date: May 2019
Posts: 10
Rep Power: 7 |
Dear Jan,
Thanks for your contribution. I tested the library on a simple test case and it worked well. I have my own custom chemistry model and would like to add it to the list of models available for the load balancing library. Do you know how much of an effort it would be for me to modify the source file for this task? Best regards, Pablo |
|
August 28, 2024, 04:52 |
|
#3 |
New Member
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9 |
Hello Pablo,
The chemistry model is the main part of the library. If you add additional functionalities on top of the StandardModel, hence you can derive from it, it should be fairly straight forward. Otherwise it will require substantial changes to your existing model to use these functions. On the other hand, if you modify the ODE solver it is plug-and-play. Best to see how it is done for the TDAC model, which builds on top of the StandardModel. Best, Jan |
|
August 28, 2024, 06:11 |
|
#4 |
New Member
Join Date: May 2019
Posts: 10
Rep Power: 7 |
Thanks for your quick answer.
My chemistry model is a copy of the StandardChemistryModel with some modification (it calls Cantera to calculate the reaction rates). So I was thinking that I could create a class like loadBalancedMyChemistryModel by copying the loadBalancedChemistryModel class, change the name in the files, modify the macro in makeLoadBalancedChemistrySolverTypes.H and try to compile the library. I'll give it a try and see if it works. Best, Pablo |
|
August 28, 2024, 06:30 |
|
#5 |
New Member
Jan Gaertner
Join Date: Nov 2017
Posts: 20
Rep Power: 9 |
Hello Pablo,
it seems you replace OpenFOAMs ODE integration by calling the Cantera function to solve the concentration. This should be then fairly easy to integrate. Copy the loadBalancedChemistryModel, call it e.g., loadBalancedCanteraChemistryModel and then replace in the solveCell function the solve command in Line 392-398 in LoadBalancedChemistryModel.C. Best of luck, Jan |
|
August 28, 2024, 10:20 |
|
#6 |
New Member
Join Date: May 2019
Posts: 10
Rep Power: 7 |
Hi Jan,
I just compiled the load balancing library with my chemistry model and it seems to work. I just tested it on 4 cores for a 1D flame simulation, I guess I have to try it with 100+ cores if I want to observe a speed up of the computational time. Thanks for your help and feedback! Pablo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Questions about solar load model ( How to define albedo, when is view factor needed?) | B_R_Khan | OpenFOAM Running, Solving & CFD | 0 | January 10, 2022 03:16 |
Does solar load model accommodate diffuse radiations? | B_R_Khan | OpenFOAM Verification & Validation | 2 | January 10, 2022 02:28 |
Load Balancing Algorithm | Accidental_Apoptosis | Main CFD Forum | 2 | June 15, 2017 13:57 |
The problem of Stiff Chemistry Solver in Multiphase model | shenzhou1987 | FLUENT | 1 | January 11, 2016 03:52 |
about Subgrid-scale model | impecca | OpenFOAM Running, Solving & CFD | 4 | December 20, 2013 11:36 |