View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001820 | OpenFOAM | Bug | public | 2015-08-09 18:11 | 2015-08-10 12:03 |
Reporter | oliveroxtoby | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Fedora | OS Version | 22 |
Summary | 0001820: valueInternalCoefficients appears to be incorrect for a transformFvPatchField<scalar> | ||||
Description | For 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 Information | So 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)); } | ||||
Tags | No tags attached. | ||||
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 |