When I import .msh to .pyfrm , I got typeError
how can i do?
i made mesh file by pointwise V18.0R3
when i use only triangular surface mesh, it didn’t appeared.
but i use tri+quad mesh, it suddenly appeared…
When I import .msh to .pyfrm , I got typeError
how can i do?
i made mesh file by pointwise V18.0R3
when i use only triangular surface mesh, it didn’t appeared.
but i use tri+quad mesh, it suddenly appeared…
I downloaded and tried importing your mesh, I got a slightly different message that makes more sense.
Traceback (most recent call last):
File "/Users/wtrojak/Documents/code/pyfr_venv/bin/pyfr", line 33, in <module>
sys.exit(load_entry_point('pyfr==1.12.3', 'console_scripts', 'pyfr')())
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/__main__.py", line 117, in main
args.process(args)
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/__main__.py", line 131, in process_import
mesh = reader.to_pyfrm(args.lintol)
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/readers/base.py", line 23, in to_pyfrm
mesh = self._to_raw_pyfrm(lintol)
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/readers/gmsh.py", line 414, in _to_raw_pyfrm
rawm.update(mesh.get_connectivity())
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/readers/base.py", line 176, in get_connectivity
eles = self._to_first_order(self._elenodes)
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/readers/base.py", line 82, in _to_first_order
self._check_pyr_parallelogram(foelemap[petype, epent])
File "/opt/homebrew/lib/python3.9/site-packages/pyfr/readers/base.py", line 66, in _check_pyr_parallelogram
raise ValueError('Pyramids with non-parallelogram bases are '
ValueError: Pyramids with non-parallelogram bases are currently unsupported
You appear to have some pyramids in your mesh that don’t have parallelogram bases.
Then… In this situation, I can’t import my .msh file to pyfrm.
Is it the only way to create a grid in another way?
Can you suggest me some alternatives?
So I guess you are using quads on the surface of some curved geometry? What you may be able to do it extrude those to produce a layer of hexahedral elements. I think you can then use farfield in Pointwise to help prevent the quad bases for the pyramids from being anything other than parallelograms. However, I haven’t used this procedure before and it will be dependent on your geometry.
In this post we discussed Pyramids extensively: Errors on mesh with pyramid elements
Otherwise, you can just stick to using triangles on the surface.