View Issue Details

IDProjectCategoryView StatusLast Update
0004171OpenFOAMBugpublic2024-11-07 11:09
ReporterFabianW Assigned Tohenry  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version12 
Fixed in Version12 
Summary0004171: The mesh import with fluent3DMeshToFoam works differently under OpenFOAM 12 than under OpenFOAM 11
DescriptionWhen creating a new calculation case, it was noticed that the mesh import of a Fluent mesh from Ansys Meshing with OpenFOAM 12 produces a different result compared to OpenFOAM 11.
The geometry can be described as follows: It is a pipe with a diameter of 0.2 m and a length of 4 m. This pipe consists of two domains, "vIn" and "vOut." The mesh is imported using fluent3DMeshToFoam, and the cyclic baffle connecting both domains is created with createBaffles. Under OpenFOAM 11, the workflow works without issues, where a cyclic-baffle is created in the middle of the domains, which is used for the boundary condition fanPressureJump. The calculation runs successfully.
The only difference lies in the imported mesh itself, or more specifically, in the baffles that result from the mesh.
Steps To Reproducefluent3DMeshToFoam (Try OpenFOAM 11 and OpenFOAM 12) - then:
createBaffles -overwrite
foamRun -solver fluid
TagsNo tags attached.

Activities

FabianW

2024-11-05 14:18

reporter  

TestCase.zip (799,535 bytes)

wyldckat

2024-11-05 14:51

updater   ~0013448

Quick question: The description is missing clarity on what to look for or what failed exactly. What exactly is different in the converted mesh?

FabianW

2024-11-05 17:09

reporter   ~0013449

I am looking for a working mesh conversion.
The converted mesh looks identical in terms of: points, owner, neighbour, etc.
The only different file is "faceZone".

blttkgl

2024-11-06 08:57

reporter   ~0013450

Hello, at least on my end I am unable to replicate this issue, I compare dev with 11. Can you run this script and check if it works? You would need to change where you source the OpenFOAM versions.
Allrun (811 bytes)   
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

rm -rf constant/polyMesh*
rm -rf constant/case_*
rm -rf log*

source /nfs/prg/OpenFOAM/OpenFOAM-dev/etc/bashrc
foamDictionary system/controlDict -entry startFrom -set startTime
foamDictionary system/controlDict -entry endTime -set 100

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
fluent3DMeshToFoam mesh.msh
runApplication -s ofdev createBaffles -overwrite
runApplication -s ofdev foamRun -solver fluid

rm -rf constant/polyMesh
source /nfs/prg/OpenFOAM/OpenFOAM-11/etc/bashrc
. $WM_PROJECT_DIR/bin/tools/RunFunctions
fluent3DMeshToFoam mesh.msh
runApplication -s of11 createBaffles -overwrite
runApplication -s of11 foamRun -solver fluid


#------------------------------------------------------------------------------
Allrun (811 bytes)   

will

2024-11-06 09:09

manager   ~0013451

I can reproduce it. The zone indexing has been scrambled. Leave it with us.

henry

2024-11-06 16:00

manager   ~0013452

I have fixed this issue in OpenFOAM-dev:

commit 49427c761c6c5cff5a191d1c6c10c906dafbb5c9 (HEAD -> master, origin/master, origin/HEAD)
Author: Henry Weller <http://cfd.direct>
Date: Wed Nov 6 15:56:51 2024 +0000

    fluent3DMeshToFoam: Renumbered faceZones
    
    The faces in the mesh are renumbered to ensure upper-triangular ordering, the
    faces in the faceZones must also be renumbered accordingly.
    
    Resolves bug-report https://bugs.openfoam.org/view.php?id=4171

could you please test it and if it works for your Fluent meshes I will also make the change in OpenFOAM-12.

FabianW

2024-11-07 09:21

reporter   ~0013453

I have imported a few fluent-meshes with the current dev-version and was unable to identify any further issues. Thank you for the quick resolution of the problem.

henry

2024-11-07 11:09

manager   ~0013454

Resolved in OpenFOAM-12 by commit 361ebb1597e5cd8164ecd33de27d6a7a70221556
Resolved in OpenFOAM-dev by commit 49427c761c6c5cff5a191d1c6c10c906dafbb5c9

Issue History

Date Modified Username Field Change
2024-11-05 14:18 FabianW New Issue
2024-11-05 14:18 FabianW File Added: TestCase.zip
2024-11-05 14:51 wyldckat Note Added: 0013448
2024-11-05 17:09 FabianW Note Added: 0013449
2024-11-06 08:57 blttkgl Note Added: 0013450
2024-11-06 08:57 blttkgl File Added: Allrun
2024-11-06 09:09 will Note Added: 0013451
2024-11-06 16:00 henry Note Added: 0013452
2024-11-07 09:21 FabianW Note Added: 0013453
2024-11-07 11:09 henry Assigned To => henry
2024-11-07 11:09 henry Status new => resolved
2024-11-07 11:09 henry Resolution open => fixed
2024-11-07 11:09 henry Fixed in Version => 12
2024-11-07 11:09 henry Note Added: 0013454