STYLE: partial revert for 5cfa97624e

This commit is contained in:
Mark Olesen
2010-04-23 10:23:08 +02:00
parent f7f6faa851
commit 03338b9ea9
113 changed files with 228 additions and 504 deletions

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::PDRDragModel>
Foam::PDRDragModel::New
Foam::autoPtr<Foam::PDRDragModel> Foam::PDRDragModel::New
(
const dictionary& PDRProperties,
const compressible::RASModel& turbulence,
@ -37,10 +36,7 @@ Foam::PDRDragModel::New
const surfaceScalarField& phi
)
{
const word modelType
(
PDRProperties.lookup("PDRDragModel")
);
const word modelType(PDRProperties.lookup("PDRDragModel"));
Info<< "Selecting flame-wrinkling model " << modelType << endl;

View File

@ -27,19 +27,15 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::XiEqModel>
Foam::XiEqModel::New
Foam::autoPtr<Foam::XiEqModel> Foam::XiEqModel::New
(
const dictionary& XiEqProperties,
const dictionary& propDict,
const hhuCombustionThermo& thermo,
const compressible::RASModel& turbulence,
const volScalarField& Su
)
{
const word modelType
(
XiEqProperties.lookup("XiEqModel")
);
const word modelType(propDict.lookup("XiEqModel"));
Info<< "Selecting flame-wrinkling model " << modelType << endl;
@ -63,8 +59,7 @@ Foam::XiEqModel::New
<< exit(FatalError);
}
return autoPtr<XiEqModel>
(cstrIter()(XiEqProperties, thermo, turbulence, Su));
return autoPtr<XiEqModel>(cstrIter()(propDict, thermo, turbulence, Su));
}

View File

@ -27,19 +27,15 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::XiGModel>
Foam::XiGModel::New
Foam::autoPtr<Foam::XiGModel> Foam::XiGModel::New
(
const dictionary& XiGProperties,
const dictionary& propDict,
const hhuCombustionThermo& thermo,
const compressible::RASModel& turbulence,
const volScalarField& Su
)
{
const word modelType
(
XiGProperties.lookup("XiGModel")
);
const word modelType(propDict.lookup("XiGModel"));
Info<< "Selecting flame-wrinkling model " << modelType << endl;
@ -63,8 +59,7 @@ Foam::XiGModel::New
<< exit(FatalError);
}
return autoPtr<XiGModel>
(cstrIter()(XiGProperties, thermo, turbulence, Su));
return autoPtr<XiGModel>(cstrIter()(propDict, thermo, turbulence, Su));
}

View File

@ -27,10 +27,9 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::XiModel>
Foam::XiModel::New
Foam::autoPtr<Foam::XiModel> Foam::XiModel::New
(
const dictionary& XiProperties,
const dictionary& propDict,
const hhuCombustionThermo& thermo,
const compressible::RASModel& turbulence,
const volScalarField& Su,
@ -39,10 +38,7 @@ Foam::XiModel::New
const surfaceScalarField& phi
)
{
const word modelType
(
XiProperties.lookup("XiModel")
);
const word modelType(propDict.lookup("XiModel"));
Info<< "Selecting flame-wrinkling model " << modelType << endl;
@ -62,7 +58,7 @@ Foam::XiModel::New
}
return autoPtr<XiModel>
(cstrIter()(XiProperties, thermo, turbulence, Su, rho, b, phi));
(cstrIter()(propDict, thermo, turbulence, Su, rho, b, phi));
}

View File

@ -27,23 +27,16 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::combustionModel>
Foam::combustionModel::New
Foam::autoPtr<Foam::combustionModel> Foam::combustionModel::New
(
const dictionary& combustionProperties,
const dictionary& propDict,
const hsCombustionThermo& thermo,
const compressible::turbulenceModel& turbulence,
const surfaceScalarField& phi,
const volScalarField& rho
)
{
const word modelType
(
combustionProperties.lookup
(
"combustionModel"
)
);
const word modelType(propDict.lookup("combustionModel"));
Info<< "Selecting combustion model " << modelType << endl;
@ -63,7 +56,7 @@ Foam::combustionModel::New
}
return autoPtr<combustionModel>
(cstrIter()(combustionProperties, thermo, turbulence, phi, rho));
(cstrIter()(propDict, thermo, turbulence, phi, rho));
}

View File

@ -49,7 +49,7 @@ int main(int argc, char *argv[])
Info<< "\nStarting time loop\n" << endl;
autoPtr<Foam::motionSolver> motionPtr = motionSolver::New(mesh);
autoPtr<motionSolver> motionPtr = motionSolver::New(mesh);
while (runTime.loop())
{

View File

@ -37,7 +37,7 @@ Foam::phaseChangeTwoPhaseMixture::New
)
{
// get model name, but do not register the dictionary
const word phaseChangeTwoPhaseMixtureTypeName
const word mixtureType
(
IOdictionary
(
@ -53,12 +53,10 @@ Foam::phaseChangeTwoPhaseMixture::New
).lookup("phaseChangeTwoPhaseMixture")
);
Info<< "Selecting phaseChange model "
<< phaseChangeTwoPhaseMixtureTypeName << endl;
Info<< "Selecting phaseChange model " << mixtureType << endl;
componentsConstructorTable::iterator cstrIter =
componentsConstructorTablePtr_
->find(phaseChangeTwoPhaseMixtureTypeName);
componentsConstructorTablePtr_->find(mixtureType);
if (cstrIter == componentsConstructorTablePtr_->end())
{
@ -66,7 +64,7 @@ Foam::phaseChangeTwoPhaseMixture::New
(
"phaseChangeTwoPhaseMixture::New"
) << "Unknown phaseChangeTwoPhaseMixture type "
<< phaseChangeTwoPhaseMixtureTypeName << nl << nl
<< mixtureType << nl << nl
<< "Valid phaseChangeTwoPhaseMixture types are : " << endl
<< componentsConstructorTablePtr_->sortedToc()
<< exit(FatalError);

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::dragModel>
Foam::dragModel::New
Foam::autoPtr<Foam::dragModel> Foam::dragModel::New
(
const dictionary& interfaceDict,
const volScalarField& alpha,
@ -36,15 +35,10 @@ Foam::dragModel::New
const phaseModel& phaseb
)
{
const word modelType
(
interfaceDict.lookup("dragModel" + phasea.name())
);
const word modelType(interfaceDict.lookup("dragModel" + phasea.name()));
Info<< "Selecting dragModel for phase "
<< phasea.name()
<< ": "
<< modelType << endl;
Info<< "Selecting dragModel for phase " << phasea.name()
<< ": " << modelType << endl;
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(modelType);

View File

@ -27,16 +27,12 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::conductivityModel>
Foam::conductivityModel::New
Foam::autoPtr<Foam::conductivityModel> Foam::conductivityModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("conductivityModel")
);
const word modelType(dict.lookup("conductivityModel"));
Info<< "Selecting conductivityModel " << modelType << endl;

View File

@ -27,16 +27,12 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::frictionalStressModel>
Foam::frictionalStressModel::New
Foam::autoPtr<Foam::frictionalStressModel> Foam::frictionalStressModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("frictionalStressModel")
);
const word modelType(dict.lookup("frictionalStressModel"));
Info<< "Selecting frictionalStressModel " << modelType << endl;

View File

@ -27,16 +27,12 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::granularPressureModel>
Foam::granularPressureModel::New
Foam::autoPtr<Foam::granularPressureModel> Foam::granularPressureModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("granularPressureModel")
);
const word modelType(dict.lookup("granularPressureModel"));
Info<< "Selecting granularPressureModel " << modelType << endl;

View File

@ -27,16 +27,12 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::radialModel>
Foam::radialModel::New
Foam::autoPtr<Foam::radialModel> Foam::radialModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("radialModel")
);
const word modelType(dict.lookup("radialModel"));
Info<< "Selecting radialModel " << modelType << endl;

View File

@ -33,10 +33,7 @@ Foam::kineticTheoryModels::viscosityModel::New
const dictionary& dict
)
{
const word modelType
(
dict.lookup("viscosityModel")
);
const word modelType(dict.lookup("viscosityModel"));
Info<< "Selecting viscosityModel " << modelType << endl;

View File

@ -134,8 +134,7 @@ Foam::phaseModel::phaseModel
}
Foam::autoPtr<Foam::phaseModel>
Foam::phaseModel::New
Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::New
(
const fvMesh& mesh,
const dictionary& transportProperties,

View File

@ -27,16 +27,12 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::extrudeModel>
Foam::extrudeModel::New
Foam::autoPtr<Foam::extrudeModel> Foam::extrudeModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("extrudeModel")
);
const word modelType(dict.lookup("extrudeModel"));
Info<< "Selecting extrudeModel " << modelType << endl;

View File

@ -43,7 +43,7 @@ int main(int argc, char *argv[])
# include "createTime.H"
# include "createMesh.H"
autoPtr<Foam::motionSolver> motionPtr = motionSolver::New(mesh);
autoPtr<motionSolver> motionPtr = motionSolver::New(mesh);
while (runTime.loop())
{

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::ODESolver>
Foam::ODESolver::New
Foam::autoPtr<Foam::ODESolver> Foam::ODESolver::New
(
const Foam::word& ODESolverTypeName,
const Foam::ODE& ode

View File

@ -52,8 +52,7 @@ Foam::token::compound::~compound()
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::token::compound>
Foam::token::compound::New
Foam::autoPtr<Foam::token::compound> Foam::token::compound::New
(
const word& compoundType,
Istream& is

View File

@ -118,8 +118,7 @@ Foam::dictionary::dictionary(Istream& is)
}
Foam::autoPtr<Foam::dictionary>
Foam::dictionary::New(Istream& is)
Foam::autoPtr<Foam::dictionary> Foam::dictionary::New(Istream& is)
{
return autoPtr<dictionary>(new dictionary(is));
}

View File

@ -191,8 +191,7 @@ bool Foam::entry::New(dictionary& parentDict, Istream& is)
}
Foam::autoPtr<Foam::entry>
Foam::entry::New(Istream& is)
Foam::autoPtr<Foam::entry> Foam::entry::New(Istream& is)
{
is.fatalCheck("entry::New(Istream&)");

View File

@ -43,8 +43,7 @@ Foam::functionObject::functionObject(const word& name)
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::functionObject>
Foam::functionObject::New
Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
(
const word& name,
const Time& t,

View File

@ -26,8 +26,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
Foam::autoPtr< Foam::pointPatchField<Type> >
Foam::pointPatchField<Type>::New
Foam::autoPtr<Foam::pointPatchField<Type> > Foam::pointPatchField<Type>::New
(
const word& patchFieldType,
const word& actualPatchType,
@ -96,8 +95,7 @@ Foam::pointPatchField<Type>::New
template<class Type>
Foam::autoPtr< Foam::pointPatchField<Type> >
Foam::pointPatchField<Type>::New
Foam::autoPtr<Foam::pointPatchField<Type> > Foam::pointPatchField<Type>::New
(
const word& patchFieldType,
const pointPatch& p,
@ -109,8 +107,7 @@ Foam::pointPatchField<Type>::New
template<class Type>
Foam::autoPtr< Foam::pointPatchField<Type> >
Foam::pointPatchField<Type>::New
Foam::autoPtr<Foam::pointPatchField<Type> > Foam::pointPatchField<Type>::New
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -196,8 +193,7 @@ Foam::pointPatchField<Type>::New
// Return a pointer to a new patch created on freestore from
// a given pointPatchField<Type> mapped onto a new patch
template<class Type>
Foam::autoPtr< Foam::pointPatchField<Type> >
Foam::pointPatchField<Type>::New
Foam::autoPtr<Foam::pointPatchField<Type> > Foam::pointPatchField<Type>::New
(
const pointPatchField<Type>& ptf,
const pointPatch& p,

View File

@ -143,8 +143,10 @@ Foam::scalarField& Foam::graph::y()
}
Foam::autoPtr<Foam::graph::writer>
Foam::graph::writer::New(const word& graphFormat)
Foam::autoPtr<Foam::graph::writer> Foam::graph::writer::New
(
const word& graphFormat
)
{
if (!wordConstructorTablePtr_)
{

View File

@ -36,8 +36,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::word
Foam::lduMatrix::preconditioner::getName
Foam::word Foam::lduMatrix::preconditioner::getName
(
const dictionary& solverControls
)

View File

@ -58,8 +58,7 @@ Foam::lduMatrix::smoother::getName
}
Foam::autoPtr<Foam::lduMatrix::smoother>
Foam::lduMatrix::smoother::New
Foam::autoPtr<Foam::lduMatrix::smoother> Foam::lduMatrix::smoother::New
(
const word& fieldName,
const lduMatrix& matrix,

View File

@ -37,8 +37,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::lduMatrix::solver>
Foam::lduMatrix::solver::New
Foam::autoPtr<Foam::lduMatrix::solver> Foam::lduMatrix::solver::New
(
const word& fieldName,
const lduMatrix& matrix,

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::GAMGInterfaceField>
Foam::GAMGInterfaceField::New
Foam::autoPtr<Foam::GAMGInterfaceField> Foam::GAMGInterfaceField::New
(
const GAMGInterface& GAMGCp,
const lduInterfaceField& fineInterface

View File

@ -29,8 +29,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::GAMGInterface>
Foam::GAMGInterface::New
Foam::autoPtr<Foam::GAMGInterface> Foam::GAMGInterface::New
(
const lduInterface& fineInterface,
const labelField& localRestrictAddressing,

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::facePointPatch>
Foam::facePointPatch::New
Foam::autoPtr<Foam::facePointPatch> Foam::facePointPatch::New
(
const polyPatch& patch,
const pointBoundaryMesh& bm

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::polyPatch>
Foam::polyPatch::New
Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
(
const word& patchType,
const word& name,
@ -67,8 +66,7 @@ Foam::polyPatch::New
}
Foam::autoPtr<Foam::polyPatch>
Foam::polyPatch::New
Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
(
const word& name,
const dictionary& dict,

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::cellZone>
Foam::cellZone::New
Foam::autoPtr<Foam::cellZone> Foam::cellZone::New
(
const word& name,
const dictionary& dict,
@ -44,10 +43,7 @@ Foam::cellZone::New
<< endl;
}
const word zoneType
(
dict.lookup("type")
);
const word zoneType(dict.lookup("type"));
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(zoneType);

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::faceZone>
Foam::faceZone::New
Foam::autoPtr<Foam::faceZone> Foam::faceZone::New
(
const word& name,
const dictionary& dict,
@ -44,10 +43,7 @@ Foam::faceZone::New
<< endl;
}
const word zoneType
(
dict.lookup("type")
);
const word zoneType(dict.lookup("type"));
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(zoneType);

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::pointZone>
Foam::pointZone::New
Foam::autoPtr<Foam::pointZone> Foam::pointZone::New
(
const word& name,
const dictionary& dict,
@ -44,10 +43,7 @@ Foam::pointZone::New
<< endl;
}
const word zoneType
(
dict.lookup("type")
);
const word zoneType(dict.lookup("type"));
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(zoneType);

View File

@ -126,8 +126,7 @@ Foam::ensightPart::ensightPart(const ensightPart& part)
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::ensightPart>
Foam::ensightPart::New(Istream& is)
Foam::autoPtr<Foam::ensightPart> Foam::ensightPart::New(Istream& is)
{
const word partType(is);

View File

@ -29,8 +29,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::dynamicFvMesh>
Foam::dynamicFvMesh::New(const IOobject& io)
Foam::autoPtr<Foam::dynamicFvMesh> Foam::dynamicFvMesh::New(const IOobject& io)
{
// do not register the dictionary
IOdictionary dict

View File

@ -1078,9 +1078,9 @@ bool Foam::dynamicRefineFvMesh::update()
<< exit(FatalError);
}
word field(refineDict.lookup("field"));
const word fieldName(refineDict.lookup("field"));
const volScalarField& vFld = lookupObject<volScalarField>(field);
const volScalarField& vFld = lookupObject<volScalarField>(fieldName);
const scalar lowerRefineLevel =
readScalar(refineDict.lookup("lowerRefineLevel"));

View File

@ -27,17 +27,13 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::solidBodyMotionFunction>
Foam::solidBodyMotionFunction::New
Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::New
(
const dictionary& SBMFCoeffs,
const Time& runTime
)
{
const word motionType
(
SBMFCoeffs.lookup("solidBodyMotionFunction")
);
const word motionType(SBMFCoeffs.lookup("solidBodyMotionFunction"));
Info<< "Selecting solid-body motion function " << motionType << endl;

View File

@ -39,8 +39,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::cellLooper>
Foam::cellLooper::New
Foam::autoPtr<Foam::cellLooper> Foam::cellLooper::New
(
const word& type,
const polyMesh& mesh

View File

@ -58,8 +58,7 @@ Foam::motionSolver::motionSolver(const polyMesh& mesh)
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::motionSolver>
Foam::motionSolver::New(const polyMesh& mesh)
Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New(const polyMesh& mesh)
{
IOdictionary solverDict
(

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::polyMeshModifier>
Foam::polyMeshModifier::New
Foam::autoPtr<Foam::polyMeshModifier> Foam::polyMeshModifier::New
(
const word& name,
const dictionary& dict,

View File

@ -27,8 +27,11 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr< Foam::edgeMesh >
Foam::edgeMesh::New(const fileName& name, const word& ext)
Foam::autoPtr<Foam::edgeMesh> Foam::edgeMesh::New
(
const fileName& name,
const word& ext
)
{
fileExtensionConstructorTable::iterator cstrIter =
fileExtensionConstructorTablePtr_->find(ext);
@ -49,8 +52,10 @@ Foam::edgeMesh::New(const fileName& name, const word& ext)
}
Foam::autoPtr< Foam::edgeMesh >
Foam::edgeMesh::New(const fileName& name)
Foam::autoPtr<Foam::edgeMesh> Foam::edgeMesh::New
(
const fileName& name
)
{
word ext = name.ext();
if (ext == "gz")

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::engineMesh>
Foam::engineMesh::New
Foam::autoPtr<Foam::engineMesh> Foam::engineMesh::New
(
const Foam::IOobject& io
)

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::SRF::SRFModel>
Foam::SRF::SRFModel::New
Foam::autoPtr<Foam::SRF::SRFModel> Foam::SRF::SRFModel::New
(
const volVectorField& Urel
)

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::fvPatch>
Foam::fvPatch::New
Foam::autoPtr<Foam::fvPatch> Foam::fvPatch::New
(
const polyPatch& patch,
const fvBoundaryMesh& bm

View File

@ -29,16 +29,14 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
Foam::autoPtr<Foam::interpolation<Type> >
Foam::interpolation<Type>::New
Foam::autoPtr<Foam::interpolation<Type> > Foam::interpolation<Type>::New
(
const word& interpolationType,
const GeometricField<Type, fvPatchField, volMesh>& psi
)
{
typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_
->find(interpolationType);
dictionaryConstructorTablePtr_->find(interpolationType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
{
@ -58,8 +56,7 @@ Foam::interpolation<Type>::New
template<class Type>
Foam::autoPtr<Foam::interpolation<Type> >
Foam::interpolation<Type>::New
Foam::autoPtr<Foam::interpolation<Type> > Foam::interpolation<Type>::New
(
const dictionary& interpolationSchemes,
const GeometricField<Type, fvPatchField, volMesh>& psi

View File

@ -221,7 +221,7 @@ Foam::displacementLayeredMotionFvMotionSolver::faceZoneEvaluate
tmp<vectorField> tfld(new vectorField(meshPoints.size()));
vectorField& fld = tfld();
const word& type = dict.lookup("type");
const word type(dict.lookup("type"));
if (type == "fixedValue")
{

View File

@ -44,8 +44,7 @@ Foam::motionDiffusivity::motionDiffusivity(const fvMotionSolver& mSolver)
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::motionDiffusivity>
Foam::motionDiffusivity::New
Foam::autoPtr<Foam::motionDiffusivity> Foam::motionDiffusivity::New
(
const fvMotionSolver& mSolver,
Istream& mdData

View File

@ -46,17 +46,13 @@ Foam::injectorType::injectorType
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::injectorType>
Foam::injectorType::New
Foam::autoPtr<Foam::injectorType> Foam::injectorType::New
(
const Time& t,
const dictionary& dict
)
{
const word modelType
(
dict.lookup("injectorType")
);
const word modelType(dict.lookup("injectorType"));
Info<< "Selecting injectorType " << modelType << endl;

View File

@ -31,17 +31,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::atomizationModel>
Foam::atomizationModel::New
Foam::autoPtr<Foam::atomizationModel> Foam::atomizationModel::New
(
const dictionary& dict,
spray& sm
)
{
const word modelType
(
dict.lookup("atomizationModel")
);
const word modelType(dict.lookup("atomizationModel"));
Info<< "Selecting atomizationModel " << modelType << endl;

View File

@ -31,17 +31,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::breakupModel>
Foam::breakupModel::New
Foam::autoPtr<Foam::breakupModel> Foam::breakupModel::New
(
const dictionary& dict,
spray& sm
)
{
const word modelType
(
dict.lookup("breakupModel")
);
const word modelType(dict.lookup("breakupModel"));
Info<< "Selecting breakupModel " << modelType << endl;

View File

@ -33,18 +33,14 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::collisionModel>
Foam::collisionModel::New
Foam::autoPtr<Foam::collisionModel> Foam::collisionModel::New
(
const dictionary& dict,
spray& sm,
Random& rndGen
)
{
const word modelType
(
dict.lookup("collisionModel")
);
const word modelType(dict.lookup("collisionModel"));
Info<< "Selecting collisionModel " << modelType << endl;

View File

@ -30,17 +30,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::dispersionModel>
Foam::dispersionModel::New
Foam::autoPtr<Foam::dispersionModel> Foam::dispersionModel::New
(
const dictionary& dict,
spray& sm
)
{
const word modelType
(
dict.lookup("dispersionModel")
);
const word modelType(dict.lookup("dispersionModel"));
Info<< "Selecting dispersionModel " << modelType << endl;

View File

@ -30,13 +30,9 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::dragModel>
Foam::dragModel::New(const dictionary& dict)
Foam::autoPtr<Foam::dragModel> Foam::dragModel::New(const dictionary& dict)
{
const word modelType
(
dict.lookup("dragModel")
);
const word modelType(dict.lookup("dragModel"));
Info<< "Selecting dragModel " << modelType << endl;

View File

@ -31,13 +31,12 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::evaporationModel>
Foam::evaporationModel::New(const dictionary& dict)
Foam::autoPtr<Foam::evaporationModel> Foam::evaporationModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("evaporationModel")
);
const word modelType(dict.lookup("evaporationModel"));
Info<< "Selecting evaporationModel " << modelType << endl;

View File

@ -31,16 +31,12 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::heatTransferModel>
Foam::heatTransferModel::New
Foam::autoPtr<Foam::heatTransferModel> Foam::heatTransferModel::New
(
const dictionary& dict
)
{
const word modelType
(
dict.lookup("heatTransferModel")
);
const word modelType(dict.lookup("heatTransferModel"));
Info<< "Selecting heatTransferModel " << modelType << endl;

View File

@ -31,17 +31,13 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::injectorModel>
Foam::injectorModel::New
Foam::autoPtr<Foam::injectorModel> Foam::injectorModel::New
(
const dictionary& dict,
spray& sm
)
{
const word modelType
(
dict.lookup("injectorModel")
);
const word modelType(dict.lookup("injectorModel"));
Info<< "Selecting injectorModel " << modelType << endl;

View File

@ -29,18 +29,14 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::wallModel>
Foam::wallModel::New
Foam::autoPtr<Foam::wallModel> Foam::wallModel::New
(
const dictionary& dict,
const volVectorField& U,
spray& sm
)
{
const word modelType
(
dict.lookup("wallModel")
);
const word modelType(dict.lookup("wallModel"));
Info<< "Selecting wallModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::BinaryCollisionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("BinaryCollisionModel")
);
const word modelType(dict.lookup("BinaryCollisionModel"));
Info<< "Selecting BinaryCollisionModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::InflowBoundaryModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("InflowBoundaryModel")
);
const word modelType(dict.lookup("InflowBoundaryModel"));
Info<< "Selecting InflowBoundaryModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::WallInteractionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("WallInteractionModel")
);
const word modelType(dict.lookup("WallInteractionModel"));
Info<< "Selecting WallInteractionModel " << modelType << endl;

View File

@ -36,15 +36,13 @@ Foam::IntegrationScheme<Type>::New
const dictionary& dict
)
{
word IntegrationSchemeTypeName;
dict.lookup(phiName) >> IntegrationSchemeTypeName;
const word schemeName(dict.lookup(phiName));
Info<< "Selecting " << phiName << " IntegrationScheme "
<< IntegrationSchemeTypeName << endl;
<< schemeName << endl;
typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(IntegrationSchemeTypeName);
dictionaryConstructorTablePtr_->find(schemeName);
if (cstrIter == dictionaryConstructorTablePtr_->end())
{
@ -52,7 +50,7 @@ Foam::IntegrationScheme<Type>::New
(
"IntegrationScheme::New(const dictionary&)"
) << "Unknown IntegrationScheme type "
<< IntegrationSchemeTypeName << nl << nl
<< schemeName << nl << nl
<< "Valid IntegrationScheme types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << nl
<< exit(FatalError);

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
Foam::autoPtr< Foam::DataEntry<Type> >
Foam::DataEntry<Type>::New
Foam::autoPtr<Foam::DataEntry<Type> > Foam::DataEntry<Type>::New
(
const word& entryName,
const dictionary& dict

View File

@ -35,10 +35,7 @@ Foam::DispersionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("DispersionModel")
);
const word modelType(dict.lookup("DispersionModel"));
Info<< "Selecting DispersionModel " << modelType << endl;

View File

@ -28,17 +28,13 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class CloudType>
Foam::autoPtr<Foam::DragModel<CloudType> >
Foam::DragModel<CloudType>::New
Foam::autoPtr<Foam::DragModel<CloudType> > Foam::DragModel<CloudType>::New
(
const dictionary& dict,
CloudType& owner
)
{
const word modelType
(
dict.lookup("DragModel")
);
const word modelType(dict.lookup("DragModel"));
Info<< "Selecting DragModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::InjectionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("InjectionModel")
);
const word modelType(dict.lookup("InjectionModel"));
Info<< "Selecting InjectionModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::PatchInteractionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("PatchInteractionModel")
);
const word modelType(dict.lookup("PatchInteractionModel"));
Info<< "Selecting PatchInteractionModel " << modelType << endl;

View File

@ -46,7 +46,7 @@ Foam::StandardWallInteraction<CloudType>::StandardWallInteraction
{
case PatchInteractionModel<CloudType>::itOther:
{
word interactionTypeName(this->coeffDict().lookup("type"));
const word interactionTypeName(this->coeffDict().lookup("type"));
FatalErrorIn
(

View File

@ -35,10 +35,7 @@ Foam::PostProcessingModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("PostProcessingModel")
);
const word modelType(dict.lookup("PostProcessingModel"));
Info<< "Selecting PostProcessingModel " << modelType << endl;

View File

@ -36,10 +36,7 @@ Foam::SurfaceFilmModel<CloudType>::New
const dimensionedVector& g
)
{
const word modelType
(
dict.lookup("SurfaceFilmModel")
);
const word modelType(dict.lookup("SurfaceFilmModel"));
Info<< "Selecting SurfaceFilmModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::CompositionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("CompositionModel")
);
const word modelType(dict.lookup("CompositionModel"));
Info<< "Selecting CompositionModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::PhaseChangeModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("PhaseChangeModel")
);
const word modelType(dict.lookup("PhaseChangeModel"));
Info<< "Selecting PhaseChangeModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::DevolatilisationModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("DevolatilisationModel")
);
const word modelType(dict.lookup("DevolatilisationModel"));
Info<< "Selecting DevolatilisationModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::SurfaceReactionModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("SurfaceReactionModel")
);
const word modelType(dict.lookup("SurfaceReactionModel"));
Info<< "Selecting SurfaceReactionModel " << modelType << endl;

View File

@ -35,10 +35,7 @@ Foam::HeatTransferModel<CloudType>::New
CloudType& owner
)
{
const word modelType
(
dict.lookup("HeatTransferModel")
);
const word modelType(dict.lookup("HeatTransferModel"));
Info<< "Selecting HeatTransferModel " << modelType << endl;

View File

@ -28,18 +28,14 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::energyScalingFunction>
Foam::energyScalingFunction::New
Foam::autoPtr<Foam::energyScalingFunction> Foam::energyScalingFunction::New
(
const word& name,
const dictionary& energyScalingFunctionProperties,
const dictionary& propDict,
const pairPotential& pairPot
)
{
const word scalingType
(
energyScalingFunctionProperties.lookup("energyScalingFunction")
);
const word scalingType(propDict.lookup("energyScalingFunction"));
Info<< "Selecting energy scaling function "
<< scalingType << " for "
@ -60,8 +56,7 @@ Foam::energyScalingFunction::New
<< exit(FatalError);
}
return autoPtr<energyScalingFunction>
(cstrIter()(name, energyScalingFunctionProperties, pairPot));
return autoPtr<energyScalingFunction>(cstrIter()(name, propDict, pairPot));
}

View File

@ -28,17 +28,13 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::pairPotential>
Foam::pairPotential::New
Foam::autoPtr<Foam::pairPotential> Foam::pairPotential::New
(
const word& name,
const dictionary& pairPotentialProperties
const dictionary& propDict
)
{
const word potentialType
(
pairPotentialProperties.lookup("pairPotential")
);
const word potentialType(propDict.lookup("pairPotential"));
Info<< nl << "Selecting intermolecular pair potential "
<< potentialType << " for "
@ -59,8 +55,7 @@ Foam::pairPotential::New
<< exit(FatalError);
}
return autoPtr<pairPotential>
(cstrIter()(name, pairPotentialProperties));
return autoPtr<pairPotential>(cstrIter()(name, propDict));
}

View File

@ -27,21 +27,16 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::tetherPotential>
Foam::tetherPotential::New
Foam::autoPtr<Foam::tetherPotential> Foam::tetherPotential::New
(
const word& name,
const dictionary& tetherPotentialProperties
const dictionary& propDict
)
{
const word potentialType
(
tetherPotentialProperties.lookup("tetherPotential")
);
const word potentialType(propDict.lookup("tetherPotential"));
Info<< nl << "Selecting tether potential "
<< potentialType << " for "
<< name << endl;
Info<< nl << "Selecting tether potential " << potentialType
<< " for " << name << endl;
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(potentialType);
@ -58,8 +53,7 @@ Foam::tetherPotential::New
<< exit(FatalError);
}
return autoPtr<tetherPotential>
(cstrIter()(name, tetherPotentialProperties));
return autoPtr<tetherPotential>(cstrIter()(name, propDict));
}

View File

@ -30,7 +30,6 @@ License
namespace Foam
{
defineTypeNameAndDebug(curvedEdge, 0);
defineRunTimeSelectionTable(curvedEdge, Istream);
}
@ -74,8 +73,7 @@ Foam::autoPtr<Foam::curvedEdge> Foam::curvedEdge::clone() const
}
Foam::autoPtr<Foam::curvedEdge>
Foam::curvedEdge::New
Foam::autoPtr<Foam::curvedEdge> Foam::curvedEdge::New
(
const pointField& points,
Istream& is

View File

@ -127,8 +127,7 @@ Foam::coordinateRotation::coordinateRotation
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::coordinateRotation>
Foam::coordinateRotation::New
Foam::autoPtr<Foam::coordinateRotation> Foam::coordinateRotation::New
(
const dictionary& dict
)

View File

@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::coordinateSystem>
Foam::coordinateSystem::New
Foam::autoPtr<Foam::coordinateSystem> Foam::coordinateSystem::New
(
const word& name,
const dictionary& dict
@ -75,8 +74,7 @@ Foam::coordinateSystem::New
}
Foam::autoPtr<Foam::coordinateSystem>
Foam::coordinateSystem::New
Foam::autoPtr<Foam::coordinateSystem> Foam::coordinateSystem::New
(
const word& coordType,
const word& name,
@ -113,14 +111,13 @@ Foam::coordinateSystem::New
}
Foam::autoPtr<Foam::coordinateSystem>
Foam::coordinateSystem::New
Foam::autoPtr<Foam::coordinateSystem> Foam::coordinateSystem::New
(
Istream& is
)
{
word name(is);
dictionary dict(is);
const word name(is);
const dictionary dict(is);
return New(name, dict);
}

View File

@ -38,8 +38,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::searchableSurface>
Foam::searchableSurface::New
Foam::autoPtr<Foam::searchableSurface> Foam::searchableSurface::New
(
const word& searchableSurfaceType,
const IOobject& io,
@ -47,15 +46,14 @@ Foam::searchableSurface::New
)
{
dictConstructorTable::iterator cstrIter =
dictConstructorTablePtr_
->find(searchableSurfaceType);
dictConstructorTablePtr_->find(searchableSurfaceType);
if (cstrIter == dictConstructorTablePtr_->end())
{
FatalErrorIn
(
"searchableSurface::New(const word&, const word&"
", const IOobject&, const dictionary&)"
"searchableSurface::New(const word&,"
" const IOobject&, const dictionary&)"
) << "Unknown searchableSurface type " << searchableSurfaceType
<< endl << endl
<< "Valid searchableSurface types : " << endl

View File

@ -66,8 +66,7 @@ const Foam::string Foam::topoSetSource::illegalSource_
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::topoSetSource>
Foam::topoSetSource::New
Foam::autoPtr<Foam::topoSetSource> Foam::topoSetSource::New
(
const word& topoSetSourceType,
const polyMesh& mesh,
@ -75,8 +74,7 @@ Foam::topoSetSource::New
)
{
wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_
->find(topoSetSourceType);
wordConstructorTablePtr_->find(topoSetSourceType);
if (cstrIter == wordConstructorTablePtr_->end())
{
@ -95,8 +93,7 @@ Foam::topoSetSource::New
}
Foam::autoPtr<Foam::topoSetSource>
Foam::topoSetSource::New
Foam::autoPtr<Foam::topoSetSource> Foam::topoSetSource::New
(
const word& topoSetSourceType,
const polyMesh& mesh,
@ -104,8 +101,7 @@ Foam::topoSetSource::New
)
{
istreamConstructorTable::iterator cstrIter =
istreamConstructorTablePtr_
->find(topoSetSourceType);
istreamConstructorTablePtr_->find(topoSetSourceType);
if (cstrIter == istreamConstructorTablePtr_->end())
{

View File

@ -42,8 +42,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::topoSet>
Foam::topoSet::New
Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
(
const word& setType,
const polyMesh& mesh,
@ -53,8 +52,7 @@ Foam::topoSet::New
)
{
wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_
->find(setType);
wordConstructorTablePtr_->find(setType);
if (cstrIter == wordConstructorTablePtr_->end())
{
@ -73,8 +71,7 @@ Foam::topoSet::New
}
Foam::autoPtr<Foam::topoSet>
Foam::topoSet::New
Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
(
const word& setType,
const polyMesh& mesh,
@ -84,8 +81,7 @@ Foam::topoSet::New
)
{
sizeConstructorTable::iterator cstrIter =
sizeConstructorTablePtr_
->find(setType);
sizeConstructorTablePtr_->find(setType);
if (cstrIter == sizeConstructorTablePtr_->end())
{
@ -104,8 +100,7 @@ Foam::topoSet::New
}
Foam::autoPtr<Foam::topoSet>
Foam::topoSet::New
Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
(
const word& setType,
const polyMesh& mesh,
@ -115,8 +110,7 @@ Foam::topoSet::New
)
{
setConstructorTable::iterator cstrIter =
setConstructorTablePtr_
->find(setType);
setConstructorTablePtr_->find(setType);
if (cstrIter == setConstructorTablePtr_->end())
{

View File

@ -42,16 +42,12 @@ namespace Foam
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::decompositionMethod>
Foam::decompositionMethod::New
Foam::autoPtr<Foam::decompositionMethod> Foam::decompositionMethod::New
(
const dictionary& decompositionDict
)
{
const word methodType
(
decompositionDict.lookup("method")
);
const word methodType(decompositionDict.lookup("method"));
Info<< "Selecting decompositionMethod " << methodType << endl;
@ -75,17 +71,13 @@ Foam::decompositionMethod::New
}
Foam::autoPtr<Foam::decompositionMethod>
Foam::decompositionMethod::New
Foam::autoPtr<Foam::decompositionMethod> Foam::decompositionMethod::New
(
const dictionary& decompositionDict,
const polyMesh& mesh
)
{
const word methodType
(
decompositionDict.lookup("method")
);
const word methodType(decompositionDict.lookup("method"));
Info<< "Selecting decompositionMethod " << methodType << endl;

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::calcType>
Foam::calcType::New
Foam::autoPtr<Foam::calcType> Foam::calcType::New
(
const word& calcTypeName
)

View File

@ -39,7 +39,7 @@ Foam::sixDoFRigidBodyMotionRestraint::New(const dictionary& sDoFRBMRDict)
// << restraintType << endl;
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(restraintType);
dictionaryConstructorTablePtr_->find(restraintType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
{

View File

@ -406,8 +406,7 @@ Foam::sampledSet::~sampledSet()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::autoPtr<Foam::sampledSet>
Foam::sampledSet::New
Foam::autoPtr<Foam::sampledSet> Foam::sampledSet::New
(
const word& name,
const polyMesh& mesh,
@ -415,10 +414,7 @@ Foam::sampledSet::New
const dictionary& dict
)
{
const word sampleType
(
dict.lookup("type")
);
const word sampleType(dict.lookup("type"));
wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_->find(sampleType);

View File

@ -31,15 +31,13 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<class Type>
Foam::autoPtr< Foam::writer<Type> >
Foam::writer<Type>::New
Foam::autoPtr< Foam::writer<Type> > Foam::writer<Type>::New
(
const word& writeType
)
{
typename wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_
->find(writeType);
wordConstructorTablePtr_->find(writeType);
if (cstrIter == wordConstructorTablePtr_->end())
{

View File

@ -113,19 +113,15 @@ void Foam::sampledSurface::makeCf() const
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::sampledSurface>
Foam::sampledSurface::New
Foam::autoPtr<Foam::sampledSurface> Foam::sampledSurface::New
(
const word& name,
const polyMesh& mesh,
const dictionary& dict
)
{
const word sampleType
(
dict.lookup("type")
);
const word sampleType(dict.lookup("type"));
if (debug)
{
Info<< "Selecting sampledType " << sampleType << endl;
@ -150,6 +146,7 @@ Foam::sampledSurface::New
return autoPtr<sampledSurface>(cstrIter()(name, mesh, dict));
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::sampledSurface::sampledSurface
@ -168,7 +165,6 @@ Foam::sampledSurface::sampledSurface
{}
// Construct from dictionary
Foam::sampledSurface::sampledSurface
(
const word& name,

View File

@ -34,10 +34,7 @@ Foam::surfaceFilmModels::injectionModel::New
const dictionary& dict
)
{
const word modelType
(
dict.lookup("injectionModel")
);
const word modelType(dict.lookup("injectionModel"));
Info<< " Selecting injectionModel " << modelType << endl;

View File

@ -34,10 +34,7 @@ Foam::surfaceFilmModels::phaseChangeModel::New
const dictionary& dict
)
{
const word modelType
(
dict.lookup("phaseChangeModel")
);
const word modelType(dict.lookup("phaseChangeModel"));
Info<< " Selecting phaseChangeModel " << modelType << endl;

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::basicPsiThermo>
Foam::basicPsiThermo::New
Foam::autoPtr<Foam::basicPsiThermo> Foam::basicPsiThermo::New
(
const fvMesh& mesh
)

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::basicRhoThermo>
Foam::basicRhoThermo::New
Foam::autoPtr<Foam::basicRhoThermo> Foam::basicRhoThermo::New
(
const fvMesh& mesh
)

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::psiChemistryModel>
Foam::psiChemistryModel::New
Foam::autoPtr<Foam::psiChemistryModel> Foam::psiChemistryModel::New
(
const fvMesh& mesh
)

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::rhoChemistryModel>
Foam::rhoChemistryModel::New
Foam::autoPtr<Foam::rhoChemistryModel> Foam::rhoChemistryModel::New
(
const fvMesh& mesh
)

View File

@ -36,10 +36,7 @@ Foam::chemistrySolver<CompType, ThermoType>::New
const word& thermoTypeName
)
{
const word modelName
(
model.lookup("chemistrySolver")
);
const word modelName(model.lookup("chemistrySolver"));
const word chemistrySolverType =
modelName + '<' + compTypeName + ',' + thermoTypeName + '>';

View File

@ -27,8 +27,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::laminarFlameSpeed>
Foam::laminarFlameSpeed::New
Foam::autoPtr<Foam::laminarFlameSpeed> Foam::laminarFlameSpeed::New
(
const hhuCombustionThermo& ct
)
@ -47,16 +46,12 @@ Foam::laminarFlameSpeed::New
)
);
const word laminarFlameSpeedType
(
propDict.lookup("laminarFlameSpeedCorrelation")
);
const word corrType(propDict.lookup("laminarFlameSpeedCorrelation"));
Info<< "Selecting laminar flame speed correlation "
<< laminarFlameSpeedType << endl;
Info<< "Selecting laminar flame speed correlation " << corrType << endl;
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(laminarFlameSpeedType);
dictionaryConstructorTablePtr_->find(corrType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
{
@ -65,7 +60,7 @@ Foam::laminarFlameSpeed::New
"laminarFlameSpeed::New(const hhuCombustionThermo&)",
propDict
) << "Unknown laminarFlameSpeed type "
<< laminarFlameSpeedType << nl << nl
<< corrType << nl << nl
<< "Valid laminarFlameSpeed types are :" << endl
<< dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalIOError);

View File

@ -73,8 +73,7 @@ Foam::liquidMixture::liquidMixture
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::liquidMixture>
Foam::liquidMixture::New
Foam::autoPtr<Foam::liquidMixture> Foam::liquidMixture::New
(
const dictionary& thermophysicalProperties
)

View File

@ -39,14 +39,11 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::liquid>
Foam::liquid::New(Istream& is)
Foam::autoPtr<Foam::liquid> Foam::liquid::New(Istream& is)
{
if (debug)
{
Info<< "liquid::New(Istream&) : "
<< "constructing liquid"
<< endl;
Info<< "liquid::New(Istream&) : " << "constructing liquid" << endl;
}
const word liquidType(is);

View File

@ -27,17 +27,13 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::pdfs::pdf>
Foam::pdfs::pdf::New
Foam::autoPtr<Foam::pdfs::pdf> Foam::pdfs::pdf::New
(
const dictionary& dict,
Random& rndGen
)
{
const word modelType
(
dict.lookup("pdfType")
);
const word modelType(dict.lookup("pdfType"));
Info<< "Selecting pdfType " << modelType << endl;

Some files were not shown because too many files have changed in this diff Show More