mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: phaseSystemModels: new namespaces for various submodels
Co-authored-by: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
{
|
||||
for (phaseModel& phase : fluid.phases())
|
||||
for (multiphaseInter::phaseModel& phase : fluid.phases())
|
||||
{
|
||||
PtrList<volScalarField>& Y = phase.Y();
|
||||
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user