View Issue Details

IDProjectCategoryView StatusLast Update
0003334OpenFOAMBugpublic2019-08-22 19:14
ReporterjoegiAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformlinuxOSOpenSuSEOS Version15.1
Product Version7 
Fixed in Version7 
Summary0003334: renumberMesh behavior in OF7 is not consistent with the behavior in OF6.
DescriptionIf you use a non-uniform initialization (setFields, mapFields or potentialFoam) before running renumberMesh, the mesh connectivity seems to be broken.

In the attached figures you can see the results in OF7 (of7.png) and in OF6 (of6.png).

In seems that in version OF7 you need to do the non-uniform initialization after renumberMesh.

I dont know if this is the desired behavior but it wasn't like this in version 6.
Steps To ReproduceIn the attached case follow these steps:

blockMesh
rm -rf 0
cp -r 0_2D 0
setFields
renumberMesh

This will give you the wrong results.

To get the right results:

blockMesh
rm -rf 0
cp -r 0_2D 0
renumberMesh
setFields
TagsNo tags attached.

Activities

joegi

2019-08-22 11:20

reporter   ~0010682

Forgot the files

cyl_renumberMesh.tar.gz (8,628 bytes)
of6.png (12,156 bytes)
of6.png (12,156 bytes)
of7.png (33,028 bytes)
of7.png (33,028 bytes)

henry

2019-08-22 17:02

manager   ~0010683

While I would recommend that you run renumberMesh -noFields before setFields, which is more efficient, renumberMesh should renumber the fields correctly. I have traced the problem and applied a fix which I am now testing. I will push to OpenFOAM-7 and -dev if there are no problems or side-effects.

joegi

2019-08-22 17:14

reporter   ~0010684

The -noFields option has the same problem.

At least on my installation.

henry

2019-08-22 17:25

manager   ~0010685

If I use

renumberMesh -noFields
setFields

it works fine

henry

2019-08-22 18:58

manager   ~0010686

Resolved in OpenFOAM-dev by commit 37204c1559e4007f874c91b3f725d65af8f53c72
Resolved in OpenFOAM-7 by commit 3121f5329b52dc676a179c6a5684fcf945864912

Issue History

Date Modified Username Field Change
2019-08-22 11:15 joegi New Issue
2019-08-22 11:20 joegi File Added: cyl_renumberMesh.tar.gz
2019-08-22 11:20 joegi File Added: of6.png
2019-08-22 11:20 joegi File Added: of7.png
2019-08-22 11:20 joegi Note Added: 0010682
2019-08-22 17:02 henry Note Added: 0010683
2019-08-22 17:14 joegi Note Added: 0010684
2019-08-22 17:25 henry Note Added: 0010685
2019-08-22 18:58 henry Assigned To => henry
2019-08-22 18:58 henry Status new => resolved
2019-08-22 18:58 henry Resolution open => fixed
2019-08-22 18:58 henry Fixed in Version => 7
2019-08-22 18:58 henry Note Added: 0010686