View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004171 | OpenFOAM | Bug | public | 2024-11-05 14:18 | 2024-11-07 11:09 |
Reporter | FabianW | Assigned To | henry | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Other | OS Version | (please specify) |
Product Version | 12 | ||||
Fixed in Version | 12 | ||||
Summary | 0004171: The mesh import with fluent3DMeshToFoam works differently under OpenFOAM 12 than under OpenFOAM 11 | ||||
Description | When 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 Reproduce | fluent3DMeshToFoam (Try OpenFOAM 11 and OpenFOAM 12) - then: createBaffles -overwrite foamRun -solver fluid | ||||
Tags | No tags attached. | ||||
|
|
|
Quick question: The description is missing clarity on what to look for or what failed exactly. What exactly is different in the converted mesh? |
|
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". |
|
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 #------------------------------------------------------------------------------ |
|
I can reproduce it. The zone indexing has been scrambled. Leave it with us. |
|
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. |
|
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. |
|
Resolved in OpenFOAM-12 by commit 361ebb1597e5cd8164ecd33de27d6a7a70221556 Resolved in OpenFOAM-dev by commit 49427c761c6c5cff5a191d1c6c10c906dafbb5c9 |
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 |