Closed staneuski closed 4 years ago
forAll
rhoBCTypes
calculated
wordList rhoBCTypes ( p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName ); forAll(U.boundaryField(), patchi) { if (U.boundaryField().types()[patchi] == zeroGradientFvPatchScalarField::typeName) { rhoBCTypes[patchi] = fixedValueFvPatchScalarField::typeName; } }
forAll
loop has no sense and any logical explanation. But withoutrhoBCTypes
(when typecalculated
is set for all density BC patches) the solution is unstable.