The interfaceOxideRate is a simple model to calculate the formation rate of oxide inclusions (mDotOxide), which is a local function of the volume fraction of reducing agent (alpha), temperature (T) and oxide-inclusion density (chi).
More...
#include <interfaceOxideRate.H>


Public Member Functions | |
| TypeName ("interfaceOxideRate") | |
| Runtime type information. | |
| interfaceOxideRate (const dictionary &dict, const phasePair &pair) | |
| Construct from components. | |
| virtual | ~interfaceOxideRate ()=default |
| Destructor. | |
| virtual tmp< volScalarField > | Kexp (const volScalarField &field) |
| Explicit total mass transfer coefficient. | |
| virtual tmp< volScalarField > | KSp (label modelVariable, const volScalarField &field) |
| Implicit mass transfer coefficient. | |
| virtual tmp< volScalarField > | KSu (label modelVariable, const volScalarField &field) |
| Explicit mass transfer coefficient. | |
| virtual const dimensionedScalar & | Tactivate () const noexcept |
| Return solidus temperature of reducing agent. | |
| virtual bool | includeDivU () const noexcept |
| Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2). | |
| Public Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo > | |
| InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
| Construct from components. | |
| virtual | ~InterfaceCompositionModel ()=default |
| Destructor. | |
| virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. | |
| virtual tmp< volScalarField > | Yf (const word &speciesName, const volScalarField &Tf) const |
| Reference mass fraction for species based models. | |
| virtual tmp< volScalarField > | Dfrom (const word &speciesName) const |
| Specie mass diffusivity for pure mixture. | |
| virtual tmp< volScalarField > | Dto (const word &speciesName) const |
| Specie mass diffusivity for specie in a multicomponent. | |
| virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
| Latent heat (to - from)(thermo - otherThermo). | |
| InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
| Construct from components. | |
| ~InterfaceCompositionModel ()=default | |
| Destructor. | |
| virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. | |
| virtual tmp< volScalarField > | D (const word &speciesName) const |
| Mass diffusivity. | |
| virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
| Latent heat. | |
| virtual void | addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const |
| Add latent heat flow rate to total. | |
| template<class ThermoType> | |
| const Foam::multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
| template<class ThermoType> | |
| const Foam::pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
| template<class ThermoType> | |
| Foam::tmp< Foam::volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &mixture) const |
| template<class ThermoType> | |
| Foam::tmp< Foam::volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &mixture) const |
| template<class ThermoType> | |
| Foam::tmp< Foam::volScalarField > | MwMixture (const pureMixture< ThermoType > &mixture) const |
| template<class ThermoType> | |
| Foam::tmp< Foam::volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &mixture) const |
| Public Member Functions inherited from interfaceCompositionModel | |
| TypeName ("interfaceCompositionModel") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair)) | |
| interfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
| Construct from a dictionary and a phase pair. | |
| virtual | ~interfaceCompositionModel ()=default |
| Destructor. | |
| const word | transferSpecie () const |
| Return the transferring species name. | |
| const phasePair & | pair () const |
| The phase pair. | |
| const multiphaseInterSystem & | fluid () const |
| Return the multiphaseInterSystem this interface belongs to. | |
| bool | includeVolChange () |
| Add volume change in pEq. | |
| const word & | variable () const |
| Returns the variable on which the model is based. | |
Additional Inherited Members | |
| Public Types inherited from interfaceCompositionModel | |
| enum | modelVariable { T , P , Y , alpha } |
| Enumeration for variable based mass transfer models. More... | |
| Static Public Member Functions inherited from interfaceCompositionModel | |
| static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
| Protected Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo > | |
| template<class ThermoType> | |
| const pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
| Get a reference to the local thermo for a pure mixture. | |
| template<class ThermoType> | |
| const multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
| Get a reference to the local thermo for a multi component mixture. | |
| template<class ThermoType> | |
| tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const |
| Return mass fraction for a pureMixture equal to one. | |
| template<class ThermoType> | |
| tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const |
| Return mass fraction for speciesName. | |
| template<class ThermoType> | |
| tmp< volScalarField > | MwMixture (const pureMixture< ThermoType > &thermo) const |
| Return moleculas weight of the mixture for pureMixture [Kg/mol]. | |
| template<class ThermoType> | |
| tmp< volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &) const |
| Return moleculas weight of the mixture for multiComponentMixture. | |
| template<class ThermoType> | |
| const pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
| Get a reference to the local thermo for a pure mixture. | |
| template<class ThermoType> | |
| const multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
| Get a reference to the local thermo for a multi component mixture. | |
| Protected Attributes inherited from InterfaceCompositionModel< Thermo, OtherThermo > | |
| const Thermo & | fromThermo_ |
| Thermo (from). | |
| const OtherThermo & | toThermo_ |
| Other Thermo (to). | |
| const dimensionedScalar | Le_ |
| Lewis number. | |
| const Thermo & | thermo_ |
| Thermo. | |
| const OtherThermo & | otherThermo_ |
| Other Thermo. | |
| Protected Attributes inherited from interfaceCompositionModel | |
| modelVariable | modelVariable_ |
| Enumeration for the model variable. | |
| bool | includeVolChange_ |
| Add volume change in pEq. | |
| const phasePair & | pair_ |
| Phase pair. | |
| word | speciesName_ |
| Names of the transferring specie. | |
| const fvMesh & | mesh_ |
| Reference to mesh. | |
| Static Protected Attributes inherited from interfaceCompositionModel | |
| static const Enum< modelVariable > | modelVariableNames_ |
| Selection names for the modelVariable. | |
The interfaceOxideRate is a simple model to calculate the formation rate of oxide inclusions (mDotOxide), which is a local function of the volume fraction of reducing agent (alpha), temperature (T) and oxide-inclusion density (chi).
The oxide-inclusion formation rate is modelled as follows:
![\[ S_\chi = C_\chi S_\alpha S_T S_\rho
\]](form_735.png)
with
![\[ S_\alpha = \alpha (1 - \alpha)
\]](form_736.png)
![\[ S_T =
\exp{
1 - \frac{1}{max(T - T_{solidus}/(T_liquidus - T_solidus), 1e-6)}
}
\]](form_737.png)
![\[ S_\rho =
max \left(\frac{\chi_{crit} - \chi_{curr}}{\chi_{curr}}, 0\right)
\]](form_738.png)
where
![]() | = | Oxide-inclusion formation rate [kg/(m^3 s)] |
![]() | = | Oxide-inclusion formation rate constant [kg/(m^3 s)] |
![]() | = | Formation factor due to volume fraction of reducing agent [-] |
![]() | = | Formation factor due to temperature [-] |
![]() | = | Formation factor due to oxide-inclusion density [-] |
![]() | = | Volume fraction of reducing agent [-] |
![]() | = | Local temperature [K] |
![]() | = | Solidus temperature of reducing agent [K] |
![]() | = | Liquidus temperature of reducing agent [K] |
![]() | = | Critical oxide-inclusion density [kg/m^3] |
![]() | = | Current oxide-inclusion density [kg/m^3] |
References:
Oxide-inclusion model (tag:CSC):
Cao, L., Sun, F., Chen, T., Tang, Y., & Liao, D. (2018).
Quantitative prediction of oxide inclusion defects inside
the casting and on the walls during cast-filling processes.
International Journal of Heat and Mass Transfer, 119, 614-623.
DOI:10.1016/j.ijheatmasstransfer.2017.11.127
constant/phaseProperties.massTransferModel: massTransferModel
(
(liquid to oxide)
{
type interfaceOxideRate;
C <scalar>;
Tliquidus <scalar>;
Tsolidus <scalar>;
oxideCrit <scalar>;
isoAlpha <scalar>;
}
);
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: interfaceOxideRate | word | yes | - |
C | Oxide-inclusion formation rate constant | scalar | yes | - |
Tliquidus | Liquidus temperature of reducing agent | scalar | yes | - |
Tsolidus | Solidus temperature of reducing agent | scalar | yes | - |
oxideCrit | Critical oxide-inclusion density | scalar | yes | - |
isoAlpha | Location of the source | scalar | no | 0.5 |
oxideCrit should be determined experimentally (CSC:p. 616).C should be determined by practical production (CSC:p. 616).Definition at line 223 of file interfaceOxideRate.H.
| interfaceOxideRate | ( | const dictionary & | dict, |
| const phasePair & | pair ) |
Construct from components.
Definition at line 30 of file interfaceOxideRate.C.
References dict, Foam::dimDensity, Foam::dimTemperature, Foam::dimTime, InterfaceCompositionModel< Thermo, OtherThermo >::InterfaceCompositionModel(), interfaceCompositionModel::mesh_, interfaceCompositionModel::pair(), timeName, and Foam::Zero.

|
virtualdefault |
| TypeName | ( | "interfaceOxideRate< Thermo, OtherThermo >" | ) |
Runtime type information.
References dict, and interfaceCompositionModel::pair().

|
virtual |
Explicit total mass transfer coefficient.
Implements interfaceCompositionModel.
Definition at line 90 of file interfaceOxideRate.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::dimDensity, e, Foam::exp(), forAll, Foam::interpolate(), Foam::isA(), Foam::max(), mesh, interfaceCompositionModel::mesh_, GeometricField< scalar, fvPatchField, volMesh >::New(), MeshObject< fvMesh, UpdateableMeshObject, volPointInterpolation >::New(), tmp< T >::New(), IOobjectOption::NO_REGISTER, interfaceCompositionModel::pair(), pp(), tmp< T >::ref(), Foam::refCast(), interfaceCompositionModel::T, and Foam::Zero.

|
virtual |
Implicit mass transfer coefficient.
Implements interfaceCompositionModel.
Definition at line 174 of file interfaceOxideRate.C.
References interfaceCompositionModel::variable().

|
virtual |
Explicit mass transfer coefficient.
Implements interfaceCompositionModel.
Definition at line 186 of file interfaceOxideRate.C.
References interfaceCompositionModel::variable().

|
inlinevirtualnoexcept |
Return solidus temperature of reducing agent.
Implements interfaceCompositionModel.
Definition at line 317 of file interfaceOxideRate.H.
References Foam::noexcept.
|
inlinevirtualnoexcept |
Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2).
Reimplemented from interfaceCompositionModel.
Definition at line 326 of file interfaceOxideRate.H.
References Foam::noexcept.