View Issue Details

IDProjectCategoryView StatusLast Update
0001820OpenFOAM[All Projects] Bugpublic2015-08-10 12:03
ReporteroliveroxtobyAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSFedoraOS Version22
Product Version 
Fixed in Version 
Summary0001820: valueInternalCoefficients appears to be incorrect for a transformFvPatchField<scalar>
DescriptionFor a scalar field, a transform patch (and derived classes) should, as I understand, reduce to a zero gradient condition. However, for the template version of transformFvPatchField, valueInternalCoeffs() returns zero in the scalar case and gradientInternalCoeffs() returns 1.0. The latter function is corrected with a specialisation in transformFvPatchScalarField.C, returning 0.0. I believe there should be a similar specialisation of valueInternalCoeffs() to return 1.0 in the scalar case.
Additional InformationSo in summary I think the following should be added to transformFvPatchScalarField.C:

template<>
tmp<scalarField > transformFvPatchField<scalar>::valueInternalCoeffs
(
    const tmp<scalarField>&
) const
{
     return tmp<scalarField >(new scalarField(size(), 1.0));
}
TagsNo tags attached.

Activities

henry

2015-08-10 12:03

manager   ~0005218

Thanks for the detailed bug-report.
Resolved by commit 3e93a65ccdbfb2d604ec2ef5a1c27efa57a9ce44

I will make the same change to OpenFOAM-dev.

Issue History

Date Modified Username Field Change
2015-08-09 18:11 oliveroxtoby New Issue
2015-08-10 12:03 henry Note Added: 0005218
2015-08-10 12:03 henry Status new => resolved
2015-08-10 12:03 henry Resolution open => fixed
2015-08-10 12:03 henry Assigned To => henry