mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- prelude to code refactoring
NOTE
no source code change in this commit, only relocation,
renaming and adjustment of Make/{files,options}
31 lines
794 B
C
31 lines
794 B
C
{
|
|
autoPtr<phaseSystem::massTransferTable>
|
|
massTransferPtr(fluid.massTransfer());
|
|
|
|
phaseSystem::massTransferTable&
|
|
massTransfer(massTransferPtr());
|
|
|
|
forAll(fluid.multiComponentPhases(), multiComponentPhasei)
|
|
{
|
|
phaseModel& phase = fluid.multiComponentPhases()[multiComponentPhasei];
|
|
|
|
UPtrList<volScalarField>& Y = phase.YActiveRef();
|
|
const volScalarField& alpha = phase;
|
|
const volScalarField& rho = phase.rho();
|
|
|
|
forAll(Y, i)
|
|
{
|
|
fvScalarMatrix YiEqn
|
|
(
|
|
phase.YiEqn(Y[i])
|
|
==
|
|
*massTransfer[Y[i].name()]
|
|
+ fvOptions(alpha, rho, Y[i])
|
|
);
|
|
|
|
YiEqn.relax();
|
|
YiEqn.solve(mesh.solver("Yi"));
|
|
}
|
|
}
|
|
}
|