View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001053 | OpenFOAM | Bug | public | 2013-10-18 07:32 | 2013-12-02 12:42 |
Reporter | Sahas | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0001053: Wrong smoothing in viewFactor radiation model | ||||
Description | In file src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C wrong sign when multiplying matrix by smoothing factor. Now: Fmatrix_()[i][j] *= (1.0 - delta/(sumF + 0.001)); Should be: Fmatrix_()[i][j] *= (1.0 + delta/(sumF + 0.001)); Patch is attached. | ||||
Steps To Reproduce | There is the test case. It is a box with opposite walls under equal big temperature 1500K. I use chtMultiRegionFoam solver. There are 3 runs: without smoothing, with wrong smoothing and with right smoothing. The results (Qr on the patches wall_heat and wall_opposite): no smoothing: -5.3E+5 < Qr < -2.8E+5 smoothing wrong: -3.2E+5 < Qr < -2E+5 smoothing right: 250 < Qr < 550 | ||||
Tags | No tags attached. | ||||
|
fix_smoothing_rad_viewFactor.diff (754 bytes)
diff --git a/src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C b/src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C index 6e45cbb..4451d8a 100644 --- a/src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C +++ b/src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C @@ -203,7 +203,7 @@ void Foam::radiation::viewFactor::initialise() scalar delta = 1.0 - sumF; for (label j=0; j<totalNCoarseFaces_; j++) { - Fmatrix_()[i][j] *= (1.0 - delta/(sumF + 0.001)); + Fmatrix_()[i][j] *= (1.0 + delta/(sumF + 0.001)); } } } |
|
|
|
Thanks for the report. Problem solved in commit 58e25f034888c01330cf01eb5e88e791998e243f http://www.openfoam.org/mantisbt/view.php?id=1053 Regards |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-18 07:32 | Sahas | New Issue | |
2013-10-18 07:32 | Sahas | File Added: fix_smoothing_rad_viewFactor.diff | |
2013-10-18 07:35 | Sahas | File Added: box_test.tar.gz | |
2013-12-02 12:41 |
|
Note Added: 0002672 | |
2013-12-02 12:41 |
|
Status | new => resolved |
2013-12-02 12:41 |
|
Resolution | open => fixed |
2013-12-02 12:41 |
|
Assigned To | => user21 |