snappyHexMesh "Point in Mesh" Issue

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
User avatar
markinca
Posts: 56
Joined: Sun Apr 30, 2023 2:41 pm

snappyHexMesh "Point in Mesh" Issue

Post by markinca »

In the CfdOF panel where the "Point in Mesh" is set for snappyHexMesh, I had assumed that the boxes were in X,Y, Z order. However, when I look into the snappyHexMeshDict, it appears that X & Y is swapped. So if I enter, 10 mm, 20 mm, 30 mm into the CFD Mesh panel in CfdOF, in snappyHexMeshDict it will show up as:

locationInMesh (0.02 0.01 0.03);

What is going on here?
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: snappyHexMesh "Point in Mesh" Issue

Post by NewJoker »

Which release of FreeCAD are you using ? Is CfdOF updated to the newest version ? On my side, it works properly.
User avatar
markinca
Posts: 56
Joined: Sun Apr 30, 2023 2:41 pm

Re: snappyHexMesh "Point in Mesh" Issue

Post by markinca »

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * CfdOF 1.22.6
  * Help 1.0.3
Note that this says Windows 10 but I really have Windows 11
Example.FCStd
(47.45 KiB) Downloaded 27 times
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: snappyHexMesh "Point in Mesh" Issue

Post by oliveroxtoby »

markinca wrote: Tue May 16, 2023 3:22 pm In the CfdOF panel where the "Point in Mesh" is set for snappyHexMesh, I had assumed that the boxes were in X,Y, Z order. However, when I look into the snappyHexMeshDict, it appears that X & Y is swapped. So if I enter, 10 mm, 20 mm, 30 mm into the CFD Mesh panel in CfdOF, in snappyHexMeshDict it will show up as:
Fixed
User avatar
markinca
Posts: 56
Joined: Sun Apr 30, 2023 2:41 pm

Re: snappyHexMesh "Point in Mesh" Issue

Post by markinca »

Thanks!
Post Reply