Solute model

The implementation of the solute model as an OpenFOAM class. The liquid concentration field is updated by the correct() function using either the Scheil model or an interpolation table.

Installation

Pre-requisite:

In the directChillFoam/applications/solver/heatTransfer/directChillFoam/multicomponentAlloy/soluteModel directory, run:

$ wmake libso

Nomenclature

Table 2 Variables used by the solute model class.

Variable

Description

D_l

Liquid mass diffusion coefficient

k_p

Partition coefficient

C0

Initial concentration

Ceut

Eutectic concentration

beta

Solutal expansion coefficient

C++ Classes

class soluteModel : public volScalarField

Public Functions

autoPtr<soluteModel> clone() const

Return clone.

virtual ~soluteModel()

Destructor.

void correct(const dictionary &soluteDict)

Correct the solute properties.

void solve(const surfaceScalarField &phiRel)

Solve the solute equation.

bool read(const dictionary &soluteDict)

Read base transportProperties dictionary.

class iNew

Return a pointer to a new phase created on freestore.

from Istream

Testing

The unit tests for the soluteModel libraries require the Boost libraries (>= 1.69.0). The tests are run in the tests/soluteModel/case folder:

$ wmake .. # Build the test executable
$ blockMesh # Create the mesh for the test case
$ ./test_soluteModel --log_level=all # Run the tests