CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Car With Wheels Meshing

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By Yann
  • 2 Post By AtoHM
  • 1 Post By Pugachev

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2024, 16:15
Default Car With Wheels Meshing
  #1
New Member
 
Pugachev
Join Date: Oct 2021
Posts: 2
Rep Power: 0
Pugachev is on a distinguished road
I am trying to use snappy to mesh a car geometry with three bodies: the main body, front wheel, and back wheel. I am suppressing the unwanted bodies, saving as stl, and then copying each stl into constant/triSurface in the case directory. Snappy executes without errors, but the wheels are misplaced, even though they are correctly placed in solidworks in relation to the body of the car.

aligned.JPG

misaligned.jpg
Pugachev is offline   Reply With Quote

Old   March 6, 2024, 03:47
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,080
Rep Power: 26
Yann will become famous soon enough
Hello,

This is a matter of reference frame. STL files are just a list of point coordinates. In order to keep the correct positions, all objects must be exported in the same reference frame.

When exporting your STL in Solidworks you should have an option to choose if you create the STL in the local or global reference frame. Not sure how it is named though as I don't have Solidworks, but you should probably find it in the documentation.

Cheers,
Yann
AtoHM and Pugachev like this.
Yann is offline   Reply With Quote

Old   March 7, 2024, 01:45
Default
  #3
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
When you click "Save As" in the dialog there is a button "Options..." which lets you adjust tolerance etc as well as the mentioned Output coordinate system as mentioned by Yann.


You can readily check the produced stls by loading them into Paraview and verify the correct placement.
Yann and Pugachev like this.
AtoHM is offline   Reply With Quote

Old   March 8, 2024, 16:54
Default
  #4
New Member
 
Pugachev
Join Date: Oct 2021
Posts: 2
Rep Power: 0
Pugachev is on a distinguished road
Thanks AtoHM, Yann

I created a new coordinate system and made sure to export as stl with that system.

Another important note is to ensure that solidworks does not automatically translate the stl to a positive space. There is an option in the export options that should be checked.
Attached Images
File Type: jpg exportmenu.JPG (88.6 KB, 5 views)
File Type: jpg fixed.jpg (70.0 KB, 6 views)
Yann likes this.
Pugachev is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning meshing for Car Park Ventilation Mohaned Omar FLUENT 0 December 22, 2021 04:38
[ANSYS Meshing] Structured Meshing for F1 car. Shray24 ANSYS Meshing & Geometry 0 May 3, 2020 13:28
Windtunnel Size Car Simulation jhs Main CFD Forum 1 April 5, 2020 06:41
[ANSYS Meshing] Meshing for Car Passenger Cabin mjkey ANSYS Meshing & Geometry 5 July 2, 2014 17:13
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05


All times are GMT -4. The time now is 00:21.