mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: icoReactingMultiphaseInterFoam: enable phasesSystem surface tension models (Fixes #2228)
This commit is contained in:
committed by
Sergio Ferraris
parent
de90b2b28e
commit
cad325f41f
@ -11,7 +11,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
|
|||||||
@ -18,12 +18,10 @@ porous = interfaceModels/porousModels
|
|||||||
$(porous)/porousModel/porousModel.C
|
$(porous)/porousModel/porousModel.C
|
||||||
$(porous)/VollerPrakash/VollerPrakash.C
|
$(porous)/VollerPrakash/VollerPrakash.C
|
||||||
|
|
||||||
/* Ununsed? */
|
|
||||||
/*
|
|
||||||
surfaceTension = interfaceModels/surfaceTensionModels
|
surfaceTension = interfaceModels/surfaceTensionModels
|
||||||
$(surfaceTension)/surfaceTensionModel/surfaceTensionModel.C
|
$(surfaceTension)/surfaceTensionModel/surfaceTensionModel.C
|
||||||
$(surfaceTension)/constantSurfaceTensionCoefficient/constantSurfaceTensionCoefficient.C
|
$(surfaceTension)/constantSurfaceTensionCoefficient/constantSurfaceTensionCoefficient.C
|
||||||
*/
|
|
||||||
|
|
||||||
derivedFvPatchFields/timeVaryingMassSorption/timeVaryingMassSorptionFvPatchScalarField.C
|
derivedFvPatchFields/timeVaryingMassSorption/timeVaryingMassSorptionFvPatchScalarField.C
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels/geometricVoF/lnInclude \
|
-I$(LIB_SRC)/transportModels/geometricVoF/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
@ -25,7 +24,6 @@ LIB_LIBS = \
|
|||||||
-lsolidThermo \
|
-lsolidThermo \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lincompressibleTransportModels \
|
-lincompressibleTransportModels \
|
||||||
-linterfaceProperties \
|
|
||||||
-lgeometricVoF \
|
-lgeometricVoF \
|
||||||
-lturbulenceModels \
|
-lturbulenceModels \
|
||||||
-lcompressibleTurbulenceModels \
|
-lcompressibleTurbulenceModels \
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -33,6 +33,8 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
namespace multiphaseInter
|
||||||
|
{
|
||||||
namespace surfaceTensionModels
|
namespace surfaceTensionModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(constantSurfaceTensionCoefficient, 0);
|
defineTypeNameAndDebug(constantSurfaceTensionCoefficient, 0);
|
||||||
@ -44,11 +46,12 @@ namespace surfaceTensionModels
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::surfaceTensionModels::constantSurfaceTensionCoefficient::
|
Foam::multiphaseInter::surfaceTensionModels::constantSurfaceTensionCoefficient::
|
||||||
constantSurfaceTensionCoefficient
|
constantSurfaceTensionCoefficient
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
@ -64,7 +67,8 @@ constantSurfaceTensionCoefficient
|
|||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::surfaceTensionModels::constantSurfaceTensionCoefficient::sigma() const
|
Foam::multiphaseInter::surfaceTensionModels::constantSurfaceTensionCoefficient::
|
||||||
|
sigma() const
|
||||||
{
|
{
|
||||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -38,11 +38,14 @@ SourceFiles
|
|||||||
#define surfaceTensionModels_constantSurfaceTensionCoefficient_H
|
#define surfaceTensionModels_constantSurfaceTensionCoefficient_H
|
||||||
|
|
||||||
#include "surfaceTensionModel.H"
|
#include "surfaceTensionModel.H"
|
||||||
|
#include "phasePair.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
namespace multiphaseInter
|
||||||
|
{
|
||||||
namespace surfaceTensionModels
|
namespace surfaceTensionModels
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -54,7 +57,7 @@ class constantSurfaceTensionCoefficient
|
|||||||
:
|
:
|
||||||
public surfaceTensionModel
|
public surfaceTensionModel
|
||||||
{
|
{
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
//- Constant surface tension value
|
//- Constant surface tension value
|
||||||
const dimensionedScalar sigma_;
|
const dimensionedScalar sigma_;
|
||||||
@ -91,6 +94,7 @@ public:
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace surfaceTensionModels
|
} // End namespace surfaceTensionModels
|
||||||
|
} // End namespace multiphaseInter
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -31,15 +31,18 @@ License
|
|||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace multiphaseInter
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(surfaceTensionModel, 0);
|
defineTypeNameAndDebug(surfaceTensionModel, 0);
|
||||||
defineRunTimeSelectionTable(surfaceTensionModel, dictionary);
|
defineRunTimeSelectionTable(surfaceTensionModel, dictionary);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::surfaceTensionModel::surfaceTensionModel
|
Foam::multiphaseInter::surfaceTensionModel::surfaceTensionModel
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair,
|
const phasePair& pair,
|
||||||
@ -64,8 +67,8 @@ Foam::surfaceTensionModel::surfaceTensionModel
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::autoPtr<Foam::surfaceTensionModel>
|
Foam::autoPtr<Foam::multiphaseInter::surfaceTensionModel>
|
||||||
Foam::surfaceTensionModel::New
|
Foam::multiphaseInter::surfaceTensionModel::New
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
@ -95,7 +98,7 @@ Foam::surfaceTensionModel::New
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::surfaceTensionModel::writeData(Ostream& os) const
|
bool Foam::multiphaseInter::surfaceTensionModel::writeData(Ostream& os) const
|
||||||
{
|
{
|
||||||
return os.good();
|
return os.good();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017-2020 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -48,6 +48,9 @@ namespace Foam
|
|||||||
// Forward Declarations
|
// Forward Declarations
|
||||||
class phasePair;
|
class phasePair;
|
||||||
|
|
||||||
|
namespace multiphaseInter
|
||||||
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class surfaceTensionModel Declaration
|
Class surfaceTensionModel Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -121,6 +124,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace multiphaseInter
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017-2020 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -265,7 +265,6 @@ Foam::phaseSystem::phaseSystem
|
|||||||
generatePairsAndSubModels
|
generatePairsAndSubModels
|
||||||
(
|
(
|
||||||
"surfaceTension",
|
"surfaceTension",
|
||||||
mesh_,
|
|
||||||
surfaceTensionModels_
|
surfaceTensionModels_
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017-2020 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -54,7 +54,10 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Forward Declarations
|
// Forward Declarations
|
||||||
|
namespace multiphaseInter
|
||||||
|
{
|
||||||
class surfaceTensionModel;
|
class surfaceTensionModel;
|
||||||
|
}
|
||||||
class porousModel;
|
class porousModel;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -95,7 +98,7 @@ protected:
|
|||||||
typedef
|
typedef
|
||||||
HashTable
|
HashTable
|
||||||
<
|
<
|
||||||
autoPtr<surfaceTensionModel>,
|
autoPtr<multiphaseInter::surfaceTensionModel>,
|
||||||
phasePairKey,
|
phasePairKey,
|
||||||
phasePairKey::hash
|
phasePairKey::hash
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user