View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000075 | OpenFOAM | Bug | public | 2010-11-08 12:43 | 2010-11-15 16:21 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Summary | 0000075: Code inconsistency in dynamicRefineFvMesh.C | ||||
Description | In file src/dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C, function dynamicRefineFvMesh::selectRefineCandidates 1. Comment in function says: // Get error per cell. Is -1 (not to be refined) to >0 (to be refined, // higher more desirable to be refined). but 'error' function assigns 0 value for middle value of vFld and largest value for boundary values (lowerRefineLevel and upperRefineLevel). I would expect the opposite. I know that this value is not actually used, but this inconsistency is not good anyway. 2. If vFld is exactly the same as 0.5 * (lowerRefineLevel + upperRefineLevel), the mesh will not be refined, because the criterion is cellError[cellI] > 0 | ||||
Tags | No tags attached. | ||||
|
Good point. Shall I change the error into the distance to the extrema? forAll(fld, i) { if (fld[i] >= minLevel && fld[i] < maxLevel) { c[i] = min(fld[i]-minLevel, fld[i]-maxLevel) } } This would also solve 2) |
|
Better like this (fld[i]-maxLevel is negative): c[i] = min(fld[i]-minLevel, maxLevel-fld[i]) |
|
fixed in 7e2e27b455edef40f53c827b8c688f39f786c47b - changed the error calculation - fixed 'dumpLevel' and flux mapping functionality (dictionary was never read) Thanks for reporting. |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-11-08 12:43 |
|
New Issue | |
2010-11-08 13:08 |
|
Assigned To | => user4 |
2010-11-08 13:08 |
|
Status | new => assigned |
2010-11-08 13:19 |
|
Note Added: 0000116 | |
2010-11-08 13:21 |
|
Note Added: 0000117 | |
2010-11-15 16:21 |
|
Note Added: 0000124 | |
2010-11-15 16:21 |
|
Status | assigned => resolved |
2010-11-15 16:21 |
|
Fixed in Version | => 1.7.x |
2010-11-15 16:21 |
|
Resolution | open => fixed |