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

[CAD formats] Smoothing an stl file to match inlet with timeVaryingMappedFixedValue

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By vatavuk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2015, 18:14
Default Smoothing an stl file to match inlet with timeVaryingMappedFixedValue
  #1
Member
 
Join Date: Jul 2010
Posts: 52
Rep Power: 15
MaryBau is on a distinguished road
Hi everyone:

I am doing a wind simulation over complex terrain. I did a precursor simulation over flat terrain to generate the inlet for the successor complex terrain simulation. So the inlet in the successor simulation is defined as timeVaryingMappedFixedValue.

I generate the complex terrain mesh with a *.stl file of the terrain. Because of the terrain features, the inlet in the successor mesh does not match perfectly the precursor simulation plane. I think that is causing me some instabilities as seen in the picture.

Does anyone know how can I either:

-create a buffer zone upstream of my successor mesh to perfectly linked it to the precursor? I tried mergeMesh and then stichMesh but there is a big offset and it does not work (as the second pic shows).

-or how can I modify my stl file (smoothing it in the upstream direction) to get a good inlet?

-or any other suggestion?

Thanks a lot!
Attached Images
File Type: jpg inlet.jpg (20.2 KB, 35 views)
File Type: jpg addBufferMesh.jpg (47.8 KB, 30 views)
MaryBau is offline   Reply With Quote

Old   July 30, 2015, 07:59
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi MaryBau,
I’ve done a simulation similar to yours. Depending on the way you are generating the stl file, you may be able to generate a smooth transition. In my case I had a VBA program running in excel that generated the stl file and so I had to insert the smooth transition by programming, it was quite difficult to do it but it worked.
How did you generate the stl file?
Best Regards,
Paulo
vatavuk is offline   Reply With Quote

Old   July 30, 2015, 08:11
Default
  #3
Member
 
Join Date: Jul 2010
Posts: 52
Rep Power: 15
MaryBau is on a distinguished road
Hi Paulo,

Thanks for the reply. I did not generate the stl file, it was given to me. And I do not have the xyz data either to generate my own stl file. Is there a easy way to convert stl to xyz, and start over?

Thanks again,

Mary
MaryBau is offline   Reply With Quote

Old   July 31, 2015, 07:35
Default
  #4
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Mary,
I don't know an easy way to convert stl to xyz.
Perhaps it would be easier if you generate a second stl that creates a smoothing region and then generate the mesh with the two stls. To do this, it isn't necessary to know all xyz coordinates but only the coordinates of the curve that forms the boundary between the original region and the new smooth one.
Now the problem is how to obtain the coordinates of the curve? You may try to use meshLab, in http://meshlab.sourceforge.net/, it says it can create slices of a surface and export the points.
I hope this helps.
Best Regards,
Paulo
MaryBau likes this.
vatavuk is offline   Reply With Quote

Reply

Tags
stl, timevaryingmappedfixedval

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 04:30.