Commit 08767723 authored by andy's avatar andy
Browse files

ENH: Updated handling of source contributions in CHT solvers

parent ad124651
......@@ -45,7 +45,6 @@ Description
#include "solidRegionDiffNo.H"
#include "solidThermo.H"
#include "radiationModel.H"
#include "IOporosityModelList.H"
#include "IObasicSourceList.H"
......
......@@ -17,7 +17,7 @@
PtrList<dimensionedScalar> rhoMax(fluidRegions.size());
PtrList<dimensionedScalar> rhoMin(fluidRegions.size());
PtrList<IObasicSourceList> heatSources(fluidRegions.size());
PtrList<IObasicSourceList> fluidSources(fluidRegions.size());
// Populate fluid field pointer lists
forAll(fluidRegions, i)
......@@ -194,7 +194,7 @@
);
Info<< " Adding sources\n" << endl;
heatSources.set
fluidSources.set
(
i,
new IObasicSourceList(fluidRegions[i])
......
......@@ -12,7 +12,7 @@
volScalarField& p = thermo.p();
const volScalarField& psi = thermo.psi();
IObasicSourceList& sources = heatSources[i];
IObasicSourceList& sources = fluidSources[i];
const dimensionedScalar initialMass
(
......
......@@ -11,9 +11,6 @@
sources.constrain(UEqn());
// Add porous resistance
pZones.addResistance(UEqn());
if (momentumPredictor)
{
solve
......
......@@ -14,8 +14,7 @@
List<scalar> initialMassFluid(fluidRegions.size());
PtrList<IObasicSourceList> heatSources(fluidRegions.size());
PtrList<IOporosityModelList> porousZonesFluid(fluidRegions.size());
PtrList<IObasicSourceList> fluidSources(fluidRegions.size());
// Populate fluid field pointer lists
forAll(fluidRegions, i)
......@@ -192,16 +191,9 @@
);
Info<< " Adding sources\n" << endl;
heatSources.set
fluidSources.set
(
i,
new IObasicSourceList(fluidRegions[i])
);
Info<< " Adding porous zones\n" << endl;
porousZonesFluid.set
(
i,
new IOporosityModelList(fluidRegions[i])
);
}
......@@ -20,9 +20,7 @@
radiation::radiationModel& rad = radiation[i];
IObasicSourceList& sources = heatSources[i];
const IOporosityModelList& pZones = porousZonesFluid[i];
IObasicSourceList& sources = fluidSources[i];
const dimensionedScalar initialMass
(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment