reacting*EulerFoam: Renamed massTransfer models diffusiveMassTransfer
There are now many types of mass transfer, so massTransfer is now too generic a term for what these models do. These models generate a diffusivity which when multiplied by a concentration difference results in mass transfer, hence the new name. This change is not backwards compatible. Cases running the interface composition system will need "massTransfer" entries renamed to "diffusiveMassTransfer".
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
massTransferModels/massTransferModel/massTransferModel.C
|
diffusiveMassTransferModels/diffusiveMassTransferModel/diffusiveMassTransferModel.C
|
||||||
massTransferModels/massTransferModel/newMassTransferModel.C
|
diffusiveMassTransferModels/diffusiveMassTransferModel/newDiffusiveMassTransferModel.C
|
||||||
massTransferModels/Frossling/Frossling.C
|
diffusiveMassTransferModels/Frossling/Frossling.C
|
||||||
massTransferModels/sphericalMassTransfer/sphericalMassTransfer.C
|
diffusiveMassTransferModels/sphericalDiffusiveMassTransfer/sphericalDiffusiveMassTransfer.C
|
||||||
|
|
||||||
surfaceTensionModels/surfaceTensionModel/surfaceTensionModel.C
|
surfaceTensionModels/surfaceTensionModel/surfaceTensionModel.C
|
||||||
surfaceTensionModels/surfaceTensionModel/newSurfaceTensionModel.C
|
surfaceTensionModels/surfaceTensionModel/newSurfaceTensionModel.C
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -31,37 +31,42 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace massTransferModels
|
namespace diffusiveMassTransferModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(Frossling, 0);
|
defineTypeNameAndDebug(Frossling, 0);
|
||||||
addToRunTimeSelectionTable(massTransferModel, Frossling, dictionary);
|
addToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
diffusiveMassTransferModel,
|
||||||
|
Frossling,
|
||||||
|
dictionary
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModels::Frossling::Frossling
|
Foam::diffusiveMassTransferModels::Frossling::Frossling
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
massTransferModel(dict, pair),
|
diffusiveMassTransferModel(dict, pair),
|
||||||
Le_("Le", dimless, dict)
|
Le_("Le", dimless, dict)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModels::Frossling::~Frossling()
|
Foam::diffusiveMassTransferModels::Frossling::~Frossling()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::massTransferModels::Frossling::K() const
|
Foam::diffusiveMassTransferModels::Frossling::K() const
|
||||||
{
|
{
|
||||||
volScalarField Sh(2 + 0.552*sqrt(pair_.Re())*cbrt(Le_*pair_.Pr()));
|
volScalarField Sh(2 + 0.552*sqrt(pair_.Re())*cbrt(Le_*pair_.Pr()));
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::massTransferModels::Frossling
|
Foam::diffusiveMassTransferModels::Frossling
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Frossling correlation for turbulent mass transfer from the surface of a
|
Frossling correlation for turbulent mass transfer from the surface of a
|
||||||
@ -36,7 +36,7 @@ SourceFiles
|
|||||||
#ifndef Frossling_H
|
#ifndef Frossling_H
|
||||||
#define Frossling_H
|
#define Frossling_H
|
||||||
|
|
||||||
#include "massTransferModel.H"
|
#include "diffusiveMassTransferModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ namespace Foam
|
|||||||
|
|
||||||
class phasePair;
|
class phasePair;
|
||||||
|
|
||||||
namespace massTransferModels
|
namespace diffusiveMassTransferModels
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -54,7 +54,7 @@ namespace massTransferModels
|
|||||||
|
|
||||||
class Frossling
|
class Frossling
|
||||||
:
|
:
|
||||||
public massTransferModel
|
public diffusiveMassTransferModel
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace massTransferModels
|
} // End namespace diffusiveMassTransferModels
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -23,7 +23,7 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "massTransferModel.H"
|
#include "diffusiveMassTransferModel.H"
|
||||||
#include "phasePair.H"
|
#include "phasePair.H"
|
||||||
#include "BlendedInterfacialModel.H"
|
#include "BlendedInterfacialModel.H"
|
||||||
|
|
||||||
@ -31,17 +31,21 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(massTransferModel, 0);
|
defineTypeNameAndDebug(diffusiveMassTransferModel, 0);
|
||||||
defineBlendedInterfacialModelTypeNameAndDebug(massTransferModel, 0);
|
defineBlendedInterfacialModelTypeNameAndDebug
|
||||||
defineRunTimeSelectionTable(massTransferModel, dictionary);
|
(
|
||||||
|
diffusiveMassTransferModel,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
defineRunTimeSelectionTable(diffusiveMassTransferModel, dictionary);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Foam::dimensionSet Foam::massTransferModel::dimK(0, -2, 0, 0, 0);
|
const Foam::dimensionSet Foam::diffusiveMassTransferModel::dimK(0, -2, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModel::massTransferModel
|
Foam::diffusiveMassTransferModel::diffusiveMassTransferModel
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
@ -53,7 +57,7 @@ Foam::massTransferModel::massTransferModel
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModel::~massTransferModel()
|
Foam::diffusiveMassTransferModel::~diffusiveMassTransferModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -22,17 +22,17 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::massTransferModel
|
Foam::diffusiveMassTransferModel
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
massTransferModel.C
|
diffusiveMassTransferModel.C
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef massTransferModel_H
|
#ifndef diffusiveMassTransferModel_H
|
||||||
#define massTransferModel_H
|
#define diffusiveMassTransferModel_H
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -46,10 +46,10 @@ namespace Foam
|
|||||||
class phasePair;
|
class phasePair;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class massTransferModel Declaration
|
Class diffusiveMassTransferModel Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class massTransferModel
|
class diffusiveMassTransferModel
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("massTransferModel");
|
TypeName("diffusiveMassTransferModel");
|
||||||
|
|
||||||
|
|
||||||
// Declare runtime construction
|
// Declare runtime construction
|
||||||
@ -70,7 +70,7 @@ public:
|
|||||||
declareRunTimeSelectionTable
|
declareRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
autoPtr,
|
autoPtr,
|
||||||
massTransferModel,
|
diffusiveMassTransferModel,
|
||||||
dictionary,
|
dictionary,
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
@ -89,7 +89,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from a dictionary and a phase pair
|
//- Construct from a dictionary and a phase pair
|
||||||
massTransferModel
|
diffusiveMassTransferModel
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
@ -97,12 +97,12 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~massTransferModel();
|
virtual ~diffusiveMassTransferModel();
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
static autoPtr<massTransferModel> New
|
static autoPtr<diffusiveMassTransferModel> New
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -23,31 +23,32 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "massTransferModel.H"
|
#include "diffusiveMassTransferModel.H"
|
||||||
#include "phasePair.H"
|
#include "phasePair.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Selector * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Selector * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::autoPtr<Foam::massTransferModel> Foam::massTransferModel::New
|
Foam::autoPtr<Foam::diffusiveMassTransferModel>
|
||||||
|
Foam::diffusiveMassTransferModel::New
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
word massTransferModelType(dict.lookup("type"));
|
word diffusiveMassTransferModelType(dict.lookup("type"));
|
||||||
|
|
||||||
Info<< "Selecting massTransferModel for "
|
Info<< "Selecting diffusiveMassTransferModel for "
|
||||||
<< pair << ": " << massTransferModelType << endl;
|
<< pair << ": " << diffusiveMassTransferModelType << endl;
|
||||||
|
|
||||||
dictionaryConstructorTable::iterator cstrIter =
|
dictionaryConstructorTable::iterator cstrIter =
|
||||||
dictionaryConstructorTablePtr_->find(massTransferModelType);
|
dictionaryConstructorTablePtr_->find(diffusiveMassTransferModelType);
|
||||||
|
|
||||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Unknown massTransferModelType type "
|
<< "Unknown diffusiveMassTransferModelType type "
|
||||||
<< massTransferModelType << endl << endl
|
<< diffusiveMassTransferModelType << endl << endl
|
||||||
<< "Valid massTransferModel types are : " << endl
|
<< "Valid diffusiveMassTransferModel types are : " << endl
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -23,7 +23,7 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "sphericalMassTransfer.H"
|
#include "sphericalDiffusiveMassTransfer.H"
|
||||||
#include "phasePair.H"
|
#include "phasePair.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
@ -31,13 +31,13 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace massTransferModels
|
namespace diffusiveMassTransferModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(sphericalMassTransfer, 0);
|
defineTypeNameAndDebug(sphericalDiffusiveMassTransfer, 0);
|
||||||
addToRunTimeSelectionTable
|
addToRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
massTransferModel,
|
diffusiveMassTransferModel,
|
||||||
sphericalMassTransfer,
|
sphericalDiffusiveMassTransfer,
|
||||||
dictionary
|
dictionary
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -46,27 +46,29 @@ namespace massTransferModels
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModels::sphericalMassTransfer::sphericalMassTransfer
|
Foam::diffusiveMassTransferModels::sphericalDiffusiveMassTransfer::
|
||||||
|
sphericalDiffusiveMassTransfer
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
massTransferModel(dict, pair),
|
diffusiveMassTransferModel(dict, pair),
|
||||||
Le_("Le", dimless, dict)
|
Le_("Le", dimless, dict)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::massTransferModels::sphericalMassTransfer::~sphericalMassTransfer()
|
Foam::diffusiveMassTransferModels::sphericalDiffusiveMassTransfer::
|
||||||
|
~sphericalDiffusiveMassTransfer()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::massTransferModels::sphericalMassTransfer::K() const
|
Foam::diffusiveMassTransferModels::sphericalDiffusiveMassTransfer::K() const
|
||||||
{
|
{
|
||||||
return 60*pair_.dispersed()/sqr(pair_.dispersed().d());
|
return 60*pair_.dispersed()/sqr(pair_.dispersed().d());
|
||||||
}
|
}
|
||||||
@ -22,21 +22,21 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::massTransferModels::sphericalMassTransfer
|
Foam::diffusiveMassTransferModels::sphericalDiffusiveMassTransfer
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Model which applies an analytical solution for mass transfer from the
|
Model which applies an analytical solution for mass transfer from the
|
||||||
surface of a sphere to the fluid within the sphere.
|
surface of a sphere to the fluid within the sphere.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
sphericalMassTransfer.C
|
sphericalDiffusiveMassTransfer.C
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef sphericalMassTransfer_H
|
#ifndef sphericalDiffusiveMassTransfer_H
|
||||||
#define sphericalMassTransfer_H
|
#define sphericalDiffusiveMassTransfer_H
|
||||||
|
|
||||||
#include "massTransferModel.H"
|
#include "diffusiveMassTransferModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -45,16 +45,16 @@ namespace Foam
|
|||||||
|
|
||||||
class phasePair;
|
class phasePair;
|
||||||
|
|
||||||
namespace massTransferModels
|
namespace diffusiveMassTransferModels
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class sphericalMassTransfer Declaration
|
Class sphericalDiffusiveMassTransfer Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class sphericalMassTransfer
|
class sphericalDiffusiveMassTransfer
|
||||||
:
|
:
|
||||||
public massTransferModel
|
public diffusiveMassTransferModel
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from components
|
//- Construct from components
|
||||||
sphericalMassTransfer
|
sphericalDiffusiveMassTransfer
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
@ -79,7 +79,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~sphericalMassTransfer();
|
virtual ~sphericalDiffusiveMassTransfer();
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -91,7 +91,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace massTransferModels
|
} // End namespace diffusiveMassTransferModels
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -25,7 +25,8 @@ License
|
|||||||
|
|
||||||
#include "InterfaceCompositionPhaseChangePhaseSystem.H"
|
#include "InterfaceCompositionPhaseChangePhaseSystem.H"
|
||||||
#include "interfaceCompositionModel.H"
|
#include "interfaceCompositionModel.H"
|
||||||
#include "massTransferModel.H"
|
#include "diffusiveMassTransferModel.H"
|
||||||
|
#include "heatTransferModel.H"
|
||||||
#include "fvmSup.H"
|
#include "fvmSup.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
|
||||||
@ -166,8 +167,8 @@ InterfaceCompositionPhaseChangePhaseSystem
|
|||||||
|
|
||||||
this->generatePairsAndSubModels
|
this->generatePairsAndSubModels
|
||||||
(
|
(
|
||||||
"massTransfer",
|
"diffusiveMassTransfer",
|
||||||
massTransferModels_,
|
diffusiveMassTransferModels_,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -202,33 +203,33 @@ InterfaceCompositionPhaseChangePhaseSystem
|
|||||||
if (!this->phasePairs_.found(key))
|
if (!this->phasePairs_.found(key))
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "A mass transfer model the " << key << " pair is not "
|
<< "A diffusive mass transfer model the " << key
|
||||||
<< "specified. This is required by the corresponding interface "
|
<< " pair is not specified. This is required by the "
|
||||||
<< "composition model."
|
<< "corresponding interface composition model."
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
const phasePair& uoPair = this->phasePairs_[key];
|
const phasePair& uoPair = this->phasePairs_[key];
|
||||||
|
|
||||||
if (!massTransferModels_[uoPair][uoPair.index(phase)].valid())
|
if (!diffusiveMassTransferModels_[uoPair][uoPair.index(phase)].valid())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "A mass transfer model for the " << pair.phase1().name()
|
<< "A diffusive mass transfer model for the "
|
||||||
<< " side of the " << uoPair << " pair is not "
|
<< pair.phase1().name() << " side of the " << uoPair
|
||||||
<< "specified. This is required by the corresponding interface "
|
<< " pair is not specified. This is required by the "
|
||||||
<< "composition model."
|
<< "corresponding interface composition model."
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
forAllConstIter
|
forAllConstIter
|
||||||
(
|
(
|
||||||
massTransferModelTable,
|
diffusiveMassTransferModelTable,
|
||||||
massTransferModels_,
|
diffusiveMassTransferModels_,
|
||||||
massTransferModelIter
|
diffusiveMassTransferModelIter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const phasePair& pair =
|
const phasePair& pair =
|
||||||
this->phasePairs_[massTransferModelIter.key()];
|
this->phasePairs_[diffusiveMassTransferModelIter.key()];
|
||||||
|
|
||||||
if (!this->heatTransferModels_.found(pair))
|
if (!this->heatTransferModels_.found(pair))
|
||||||
{
|
{
|
||||||
@ -444,7 +445,8 @@ correct()
|
|||||||
|
|
||||||
const volScalarField K
|
const volScalarField K
|
||||||
(
|
(
|
||||||
massTransferModels_[unorderedPair][unorderedPair.index(phase)]->K()
|
diffusiveMassTransferModels_
|
||||||
|
[unorderedPair][unorderedPair.index(phase)]->K()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAllConstIter(hashedWordList, compositionModel.species(), memberIter)
|
forAllConstIter(hashedWordList, compositionModel.species(), memberIter)
|
||||||
@ -528,7 +530,7 @@ correctInterfaceThermo()
|
|||||||
{
|
{
|
||||||
this->interfaceCompositionModels_[key12]->addMDotL
|
this->interfaceCompositionModels_[key12]->addMDotL
|
||||||
(
|
(
|
||||||
massTransferModels_[pair].first()->K(),
|
diffusiveMassTransferModels_[pair].first()->K(),
|
||||||
Tf,
|
Tf,
|
||||||
mDotL.ref(),
|
mDotL.ref(),
|
||||||
mDotLPrime.ref()
|
mDotLPrime.ref()
|
||||||
@ -538,7 +540,7 @@ correctInterfaceThermo()
|
|||||||
{
|
{
|
||||||
this->interfaceCompositionModels_[key21]->addMDotL
|
this->interfaceCompositionModels_[key21]->addMDotL
|
||||||
(
|
(
|
||||||
massTransferModels_[pair].second()->K(),
|
diffusiveMassTransferModels_[pair].second()->K(),
|
||||||
Tf,
|
Tf,
|
||||||
mDotL.ref(),
|
mDotL.ref(),
|
||||||
mDotLPrime.ref()
|
mDotLPrime.ref()
|
||||||
|
|||||||
@ -48,7 +48,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
class interfaceCompositionModel;
|
class interfaceCompositionModel;
|
||||||
class massTransferModel;
|
class diffusiveMassTransferModel;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class InterfaceCompositionPhaseChangePhaseSystem Declaration
|
Class InterfaceCompositionPhaseChangePhaseSystem Declaration
|
||||||
@ -72,10 +72,10 @@ private:
|
|||||||
|
|
||||||
typedef HashTable
|
typedef HashTable
|
||||||
<
|
<
|
||||||
Pair<autoPtr<BlendedInterfacialModel<massTransferModel>>>,
|
Pair<autoPtr<BlendedInterfacialModel<diffusiveMassTransferModel>>>,
|
||||||
phasePairKey,
|
phasePairKey,
|
||||||
phasePairKey::hash
|
phasePairKey::hash
|
||||||
> massTransferModelTable;
|
> diffusiveMassTransferModelTable;
|
||||||
|
|
||||||
|
|
||||||
// Private data
|
// Private data
|
||||||
@ -86,7 +86,7 @@ private:
|
|||||||
const label nInterfaceCorrectors_;
|
const label nInterfaceCorrectors_;
|
||||||
|
|
||||||
//- Mass transfer models
|
//- Mass transfer models
|
||||||
massTransferModelTable massTransferModels_;
|
diffusiveMassTransferModelTable diffusiveMassTransferModels_;
|
||||||
|
|
||||||
//- Interface composition models
|
//- Interface composition models
|
||||||
interfaceCompositionModelTable interfaceCompositionModels_;
|
interfaceCompositionModelTable interfaceCompositionModels_;
|
||||||
|
|||||||
@ -149,7 +149,7 @@ heatTransfer.liquid
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.gas
|
diffusiveMassTransfer.gas
|
||||||
(
|
(
|
||||||
(liquid in gas)
|
(liquid in gas)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ massTransfer.gas
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.liquid
|
diffusiveMassTransfer.liquid
|
||||||
(
|
(
|
||||||
(liquid in gas)
|
(liquid in gas)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -111,7 +111,7 @@ heatTransfer.liquid
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.gas
|
diffusiveMassTransfer.gas
|
||||||
(
|
(
|
||||||
(liquid in gas)
|
(liquid in gas)
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ massTransfer.gas
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.liquid
|
diffusiveMassTransfer.liquid
|
||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ blending
|
|||||||
minPartlyContinuousAlpha.liquid 0;
|
minPartlyContinuousAlpha.liquid 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
massTransfer
|
diffusiveMassTransfer
|
||||||
{
|
{
|
||||||
$heatTransfer;
|
$heatTransfer;
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ heatTransfer.liquid
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.gas
|
diffusiveMassTransfer.gas
|
||||||
(
|
(
|
||||||
(gas in liquid)
|
(gas in liquid)
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ massTransfer.gas
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.liquid
|
diffusiveMassTransfer.liquid
|
||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ blending
|
|||||||
minFullyContinuousAlpha.liquid 1;
|
minFullyContinuousAlpha.liquid 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
massTransfer
|
diffusiveMassTransfer
|
||||||
{
|
{
|
||||||
$heatTransfer;
|
$heatTransfer;
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ heatTransfer.liquid
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.gas
|
diffusiveMassTransfer.gas
|
||||||
(
|
(
|
||||||
(gas in liquid)
|
(gas in liquid)
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ massTransfer.gas
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.liquid
|
diffusiveMassTransfer.liquid
|
||||||
(
|
(
|
||||||
(gas in liquid)
|
(gas in liquid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -66,7 +66,7 @@ blending
|
|||||||
minPartlyContinuousAlpha.liquid 0;
|
minPartlyContinuousAlpha.liquid 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
massTransfer
|
diffusiveMassTransfer
|
||||||
{
|
{
|
||||||
$heatTransfer;
|
$heatTransfer;
|
||||||
}
|
}
|
||||||
@ -186,7 +186,7 @@ heatTransfer.liquid
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.gas
|
diffusiveMassTransfer.gas
|
||||||
(
|
(
|
||||||
(gas in liquid)
|
(gas in liquid)
|
||||||
{
|
{
|
||||||
@ -201,7 +201,7 @@ massTransfer.gas
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
massTransfer.liquid
|
diffusiveMassTransfer.liquid
|
||||||
(
|
(
|
||||||
(gas in liquid)
|
(gas in liquid)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user