View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003645 | OpenFOAM | Bug | public | 2021-03-21 09:48 | 2021-03-21 10:18 |
Reporter | lhp | Assigned To | henry | ||
Priority | low | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 20.04.2 LTS |
Summary | 0003645: I believe that there is a typo in both molecular weight definitions, thus neglecting phase2 W() | ||||
Description | The aforementioned typo is found under the following file: $FOAM_SOLVERS/multiphase/compressibleInterFoam/twoPhaseMixtureThermo/twoPhaseMixtureThermo.C These are the corresponding lines of code, where I believe there should be alpha2()*thermo2_->W() instead: 381 Foam::tmp<Foam::volScalarField> Foam::twoPhaseMixtureThermo::W() const 382 { 383 return alpha1()*thermo1_->W() + alpha2()*thermo1_->W(); 384 } 385 386 387 Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureThermo::W 388 ( 389 const label patchi 390 ) const 391 { 392 return 393 alpha1().boundaryField()[patchi]*thermo1_->W(patchi) 394 + alpha2().boundaryField()[patchi]*thermo1_->W(patchi); 395 } If this is the case for a fix, please have a look at the dev branch as well. | ||||
Tags | No tags attached. | ||||