mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
moved construction of carrier props to reacting cloud constructor
This commit is contained in:
@ -1,35 +1,3 @@
|
||||
Info<< "\nConstructing interpolation" << endl;
|
||||
|
||||
Info << "\nConstructing gas properties" << endl;
|
||||
/*
|
||||
PtrList<specieConstProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieConstProperties
|
||||
(
|
||||
dynamic_cast<const multiComponentMixture<constTransport<
|
||||
specieThermo<hConstThermo<perfectGas> > > >&>
|
||||
(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
*/
|
||||
PtrList<specieReactingProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieReactingProperties
|
||||
(
|
||||
dynamic_cast<const reactingMixture&>(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Info<< "\nConstructing coal cloud" << endl;
|
||||
CoalCloud<specieReactingProperties> coalParcels
|
||||
(
|
||||
@ -37,8 +5,7 @@ CoalCloud<specieReactingProperties> coalParcels
|
||||
rho,
|
||||
U,
|
||||
g,
|
||||
thermo(),
|
||||
gasProperties
|
||||
thermo()
|
||||
);
|
||||
|
||||
Info<< "\nConstructing limestone cloud" << endl;
|
||||
|
||||
@ -1,33 +1,3 @@
|
||||
Info << "\nConstructing gas properties" << endl;
|
||||
/*
|
||||
PtrList<specieConstProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieConstProperties
|
||||
(
|
||||
dynamic_cast<const multiComponentMixture<constTransport<
|
||||
specieThermo<hConstThermo<perfectGas> > > >&>
|
||||
(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
*/
|
||||
PtrList<specieReactingProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieReactingProperties
|
||||
(
|
||||
dynamic_cast<const reactingMixture&>(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Info<< "\nConstructing reacting cloud" << endl;
|
||||
BasicReactingCloud<specieReactingProperties> parcels
|
||||
(
|
||||
@ -35,6 +5,5 @@ BasicReactingCloud<specieReactingProperties> parcels
|
||||
rho,
|
||||
U,
|
||||
g,
|
||||
thermo(),
|
||||
gasProperties
|
||||
thermo()
|
||||
);
|
||||
|
||||
@ -1,42 +1,9 @@
|
||||
Info<< "\nConstructing interpolation" << endl;
|
||||
|
||||
Info << "\nConstructing gas properties" << endl;
|
||||
/*
|
||||
PtrList<specieConstProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieConstProperties
|
||||
(
|
||||
dynamic_cast<const multiComponentMixture<constTransport<
|
||||
specieThermo<hConstThermo<perfectGas> > > >&>
|
||||
(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
*/
|
||||
PtrList<specieReactingProperties> gasProperties(Y.size());
|
||||
forAll(gasProperties, i)
|
||||
{
|
||||
gasProperties.set
|
||||
(
|
||||
i,
|
||||
new specieReactingProperties
|
||||
(
|
||||
dynamic_cast<const reactingMixture&>(thermo()).speciesData()[i]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Info<< "\nConstructing reacting cloud" << endl;
|
||||
trackedReactingCloud reactingParcels
|
||||
BasicTrackedReactingCloud<specieReactingProperties> reactingParcels
|
||||
(
|
||||
"reactingCloud1",
|
||||
rho,
|
||||
U,
|
||||
g,
|
||||
thermo(),
|
||||
gasProperties
|
||||
thermo()
|
||||
);
|
||||
|
||||
@ -31,10 +31,10 @@ Description
|
||||
#include "fvCFD.H"
|
||||
#include "hCombustionThermo.H"
|
||||
#include "turbulenceModel.H"
|
||||
#include "trackedReactingCloud.H"
|
||||
#include "BasicTrackedReactingCloud.H"
|
||||
#include "chemistryModel.H"
|
||||
#include "chemistrySolver.H"
|
||||
#include "ReactingCloudThermoTypes.H"
|
||||
#include "reactingThermoTypes.H"
|
||||
#include "radiationModel.H"
|
||||
#include "porousZones.H"
|
||||
#include "timeActivatedExplicitMulticomponentPointSource.H"
|
||||
|
||||
Reference in New Issue
Block a user