YEqns.H
Go to the documentation of this file.
1 {
2  autoPtr<phaseSystem::massTransferTable>
3  massTransferPtr(fluid.massTransfer());
4 
5  phaseSystem::massTransferTable&
6  massTransfer(massTransferPtr());
7 
8  PtrList<volScalarField>& Y1 = phase1.Y();
9  PtrList<volScalarField>& Y2 = phase2.Y();
10 
11  forAll(Y1, i)
12  {
13  tmp<fvScalarMatrix> Y1iEqn(phase1.YiEqn(Y1[i]));
14 
15  if (Y1iEqn.valid())
16  {
17  Y1iEqn =
18  (
19  Y1iEqn
20  ==
21  *massTransfer[Y1[i].name()]
22  + fvOptions(alpha1, rho1, Y1[i])
23  );
24 
25  Y1iEqn->relax();
26  Y1iEqn->solve(mesh.solver("Yi"));
27  }
28  }
29 
30  forAll(Y2, i)
31  {
32  tmp<fvScalarMatrix> Y2iEqn(phase2.YiEqn(Y2[i]));
33 
34  if (Y2iEqn.valid())
35  {
36  Y2iEqn =
37  (
38  Y2iEqn
39  ==
40  *massTransfer[Y2[i].name()]
41  + fvOptions(alpha2, rho2, Y2[i])
42  );
43 
44  Y2iEqn->relax();
45  Y2iEqn->solve(mesh.solver("Yi"));
46  }
47  }
48 
49  fluid.massTransfer(); // updates interfacial mass flow rates
50 }
forAll(phases, phasei)
Definition: YEqns.H:8
multiphaseSystem & fluid
Definition: createFields.H:10
phaseSystem::massTransferTable & massTransfer(massTransferPtr())
fv::options & fvOptions
rho1
Definition: pEqn.H:114
dynamicFvMesh & mesh
rho2
Definition: pEqn.H:115
alpha2
Definition: alphaEqn.H:112
phaseModel & phase1
volScalarField & alpha1
phaseModel & phase2