ENH: phaseSystemModels: new namespaces for various submodels

Co-authored-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
This commit is contained in:
sergio
2022-06-14 13:49:20 +01:00
committed by Kutalmis Bercin
parent 9a80d0d5ef
commit 45c3ba0e8e
83 changed files with 860 additions and 455 deletions

View File

@ -1,5 +1,5 @@
{
for (phaseModel& phase : fluid.phases())
for (multiphaseInter::phaseModel& phase : fluid.phases())
{
PtrList<volScalarField>& Y = phase.Y();

View File

@ -63,9 +63,10 @@
Info<< "Creating multiphaseSystem\n" << endl;
autoPtr<multiphaseSystem> fluidPtr = multiphaseSystem::New(mesh);
autoPtr<multiphaseInter::multiphaseSystem> fluidPtr =
multiphaseInter::multiphaseSystem::New(mesh);
multiphaseSystem& fluid = fluidPtr();
multiphaseInter::multiphaseSystem& fluid = fluidPtr();
if (!fluid.incompressible())
{
@ -118,9 +119,12 @@
surfaceScalarField& rhoPhi = fluid.rhoPhi();
// Construct incompressible turbulence model
autoPtr<CompressibleTurbulenceModel<multiphaseSystem>> turbulence
autoPtr
<
CompressibleTurbulenceModel<multiphaseInter::multiphaseSystem>
> turbulence
(
CompressibleTurbulenceModel<multiphaseSystem>::New
CompressibleTurbulenceModel<multiphaseInter::multiphaseSystem>::New
(
rho,
U,
@ -129,6 +133,8 @@
)
);
fluid.setTurbulence(turbulence());
// Creating radiation model
autoPtr<radiation::radiationModel> radiation
(