UnnamedMoose / BasicOpenFOAMProgrammingTutorials

Introduces basic C++ concepts to beginner users of the OpenFOAM open-source CFD libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial Request: Extending the lduMatrix class

klausbu opened this issue · comments

A tutorial about how to extend the lduMatrix class with kind of a vector or maybe just a variable to store some data for use across timesteps in e.g. PCG or GAMG would be very usefull. I am not talking about adding a new field through createFields.H for use in a solver, there are many examples on the web and on the forum.

I tried to adapt your Tutorial 6 "OFtutorial06_customClasses" without success and ran into a multitude of complexities and eventually failed to find the right place to add the member functions so data can be accessed and modified from within e.g. PCG.C and GPT4 was no use.