PositronCascade |
May 30, 2020 22:06 |
Custom definition for viscosity
Hello everyone. I try to define viscosity for multi phase problem, by considering a relation. To do that I wrote the code below:
Code:
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
{
phaseModel& phase = iter();
const volScalarField& alpha = phase;
phaseModel& phase2 = iter();
const volScalarField& alpha2 = phase2;
dimensionedScalar ksi11a = 1 + sqrt(phase.eta()/phase.eta())*pow(phase.mol()/phase.mol(), 1.0/4.0);
dimensionedScalar ksi12a = 1 + sqrt(phase.eta()/phase2.eta())*pow(phase2.mol()/phase.mol(), 1.0/4.0);
dimensionedScalar ksi11 = pow(ksi11a,2)/sqrt(8* (1 + phase.mol()/phase.mol()));
dimensionedScalar ksi12 = pow(ksi12a,2)/sqrt(8* (1 + phase.mol()/phase2.mol()));
phase.nu() = alpha*phase.eta() / (alpha*ksi11 + alpha2*ksi12)/phase.rho();
}
So, ksi11 must be 1 and ksi12 must be 0.331. However, both values become 1; so probably, I cannot obtain phase and phase2 values separately and both ksi values turn into 1. May you suggest me a way to obtain values of both phases at the same time?
|