diff --git a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/createFields.H b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/createFields.H index 87a9b2bbc0..c6bde4234f 100644 --- a/applications/solvers/multiphase/interCondensatingEvaporatingFoam/createFields.H +++ b/applications/solvers/multiphase/interCondensatingEvaporatingFoam/createFields.H @@ -29,8 +29,10 @@ volVectorField U #include "createPhi.H" // Creating e based thermo -autoPtr thermo; -thermo.set(new twoPhaseMixtureEThermo(U, phi)); +autoPtr thermo +( + new twoPhaseMixtureEThermo(U, phi) +); // Create mixture and Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n" << endl; diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/ThermoPhaseModel/ThermoPhaseModel.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/ThermoPhaseModel/ThermoPhaseModel.C index 2367cda414..7298516f13 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/ThermoPhaseModel/ThermoPhaseModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/ThermoPhaseModel/ThermoPhaseModel.C @@ -49,7 +49,7 @@ Foam::ThermoPhaseModel::ThermoPhaseModel { if (createThermo) { - thermoPtr_.set + thermoPtr_.reset ( ThermoType::New(fluid.mesh(), this->name()).ptr() ); diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C index dfba987a97..cc089e347e 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -76,7 +76,7 @@ Foam::BlendedInterfacialModel::BlendedInterfacialModel { if (modelTable.found(pair_)) { - model_.set + model_.reset ( modelType::New ( @@ -88,7 +88,7 @@ Foam::BlendedInterfacialModel::BlendedInterfacialModel if (modelTable.found(pair1In2_)) { - model1In2_.set + model1In2_.reset ( modelType::New ( @@ -100,7 +100,7 @@ Foam::BlendedInterfacialModel::BlendedInterfacialModel if (modelTable.found(pair2In1_)) { - model2In1_.set + model2In1_.reset ( modelType::New ( diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/orderedPhasePair/orderedPhasePair.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/orderedPhasePair/orderedPhasePair.C index 5e983b7c19..eb3fde52ca 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/orderedPhasePair/orderedPhasePair.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/orderedPhasePair/orderedPhasePair.C @@ -41,7 +41,7 @@ Foam::orderedPhasePair::orderedPhasePair { if (aspectRatioTable.found(*this)) { - aspectRatio_.set + aspectRatio_.reset ( aspectRatioModel::New ( diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C index c6861dcf2c..5a99c32ae2 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C @@ -132,7 +132,7 @@ Foam::twoPhaseSystem::twoPhaseSystem phasePair::scalarTable sigmaTable(lookup("sigma")); phasePair::dictTable aspectRatioTable(lookup("aspectRatio")); - pair_.set + pair_.reset ( new phasePair ( @@ -143,7 +143,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - pair1In2_.set + pair1In2_.reset ( new orderedPhasePair ( @@ -155,7 +155,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - pair2In1_.set + pair2In1_.reset ( new orderedPhasePair ( @@ -170,7 +170,7 @@ Foam::twoPhaseSystem::twoPhaseSystem // Models - drag_.set + drag_.reset ( new BlendedInterfacialModel ( @@ -187,7 +187,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - virtualMass_.set + virtualMass_.reset ( new BlendedInterfacialModel ( @@ -203,7 +203,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - heatTransfer_.set + heatTransfer_.reset ( new BlendedInterfacialModel ( @@ -219,7 +219,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - lift_.set + lift_.reset ( new BlendedInterfacialModel ( @@ -235,7 +235,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - wallLubrication_.set + wallLubrication_.reset ( new BlendedInterfacialModel ( @@ -251,7 +251,7 @@ Foam::twoPhaseSystem::twoPhaseSystem ) ); - turbulentDispersion_.set + turbulentDispersion_.reset ( new BlendedInterfacialModel ( diff --git a/applications/utilities/mesh/advanced/collapseEdges/collapseEdges.C b/applications/utilities/mesh/advanced/collapseEdges/collapseEdges.C index 7cbfa6d9cb..b675b15b3c 100644 --- a/applications/utilities/mesh/advanced/collapseEdges/collapseEdges.C +++ b/applications/utilities/mesh/advanced/collapseEdges/collapseEdges.C @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) { - meshFilterPtr.set + meshFilterPtr.reset ( new polyMeshFilter(mesh, pointPriority, collapseDict) ); diff --git a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C index 8f9b9b8868..701f63c0ce 100644 --- a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C +++ b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) if (surfaceFormat == MESHEDSURFACE) { - fMesh.set(new MeshedSurface("MeshedSurface.obj")); + fMesh.reset(new MeshedSurface("MeshedSurface.obj")); EdgeMap