solver: Registered to database

This change lets the solver be looked up from the region database, so
that aspects of the solution algorithm can be accessed by
functionObjects and fvModels and similar. For example, a fluid solver
could be looked up as follows:

    const solvers::fluid& s =
        mesh().lookupObject<solvers::fluid>(solver::typeName);
This commit is contained in:
Will Bainbridge
2023-01-25 12:22:02 +00:00
parent b34e17784a
commit 0f5f4ed62c
18 changed files with 61 additions and 34 deletions

View File

@ -100,7 +100,7 @@ Foam::solvers::compressibleMultiphaseVoF::compressibleMultiphaseVoF
momentumTransport(momentumTransport_())
{
// Read the controls
read();
readControls();
if (correctPhi)
{