PS: Dallas, gmsh can work directly with IGES and STEP formats.
If you can export your SolidWorks geometry in one of these
(OpenCascade-friendly) formats, they might work better than an STL
approximation.
just a thought - Nigel
On Saturday, September 9, 2017 at 5:40:28 PM UTC+10, nnunn wrote:
>
> Hi Dallas - thanks for sending the .geo and STL geometry files.
>
> Just checking - I see a long, thin tube with 4 holes near one end, plus
> two cylindrical disks at the other end, punched through with more holes.
>
> - Are you trying to mesh inside the "walls" of the structure, or some
> volume that encloses the structure?
> - What sort of boundary conditions do you need?
> - Can your version of gmsh actually create a mesh from that input?
>
> I'm using gmsh 3.02, and can't get a valid mesh.
> Nigel
>
>
> On Saturday, September 9, 2017 at 8:10:52 AM UTC+10, Dallas Nelson wrote:
>>
>> The geometry was created in solidworks and exported as a .stl. I then
>> used gmsh to convert it to .msh so my guess is something went wrong in the
>> conversion.
>> Here are the steps I used:
>> > File -> Merge -> “filename.stl”
>> > Geometry -> Elementary entities -> Add -> New -> Volume, click on the
>> surface to build the volume
>> > Mesh -> 3D
>> I will attach the .stl and .geo files
>> Thank you
>>
>> On Friday, September 8, 2017 at 2:18:38 PM UTC-7, nnunn wrote:
>>>
>>> Hi Dallas -- may be an error in the way your mesh file defines the fluid
>>> elements.
>>> If your mesh is generated by gmsh, and if you can send the .geo file, I
>>> can take a look.
>>> Nigel
>>>
>>>
>>> On Friday, September 8, 2017 at 5:48:50 AM UTC+10, Dallas Nelson wrote:
>>>>
>>>> I am trying to import my mesh so I can PyFR however I am being met with
>>>> the following error.
>>>>
>>>> christopher@dear5b-cuda:~/PDE_Sim$ pyfr import pde_assem.msh
>>>> pde_assem.pyfrm
>>>> Traceback (most recent call last):
>>>> File "/home/christopher/miniconda3/bin/pyfr", line 11, in <module>
>>>> load_entry_point('pyfr==1.6.0', 'console_scripts', 'pyfr')()
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/__main__.py",
>>>>
>>>> line 110, in main
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/__main__.py",
>>>>
>>>> line 124, in process_import
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/base.py",
>>>>
>>>> line 23, in to_pyfrm
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/gmsh.py",
>>>>
>>>> line 200, in _to_raw_pyfrm
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/base.py",
>>>>
>>>> line 179, in get_connectivity
>>>> File
>>>> "/home/christopher/miniconda3/lib/python3.6/site-packages/pyfr-1.6.0-py3.6.egg/pyfr/readers/base.py",
>>>>
>>>> line 96, in _split_fluid
>>>> KeyError: 4
>>>>
>>>> I am on a linux system running ubuntu 16.04 but am fairly new to linux
>>>> and python so its very possible I have made some mistake somewhere or it
>>>> is
>>>> something that would be painfully obvious to anyone else.
>>>> My goal is to simulate the mixing of two fluids inside a long cylinder
>>>> under different injection configurations if that is relevant at all.
>>>> Please let me know if there is any other information I can supply to
>>>> help get to the bottom of this and thank you for your time.
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups "PyFR
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at https://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.