|
[Sponsors] |
[CAD formats] Exporting OpenFOAM mesh as STL with boundary values |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 13, 2017, 12:31 |
Exporting OpenFOAM mesh as STL with boundary values
|
#1 |
New Member
Join Date: Jan 2017
Posts: 7
Rep Power: 9 |
Hi all,
I am interested in exporting the boundary of the OpenFOAM mesh as an STL file, with the additional information of the values of variables (such as temperature and pressure) on each external cell face. The utility surfaceMeshTriangulate works well for me to export the mesh in STL - basically, what I'm hoping for is a similar tool, but with the ability to access (and probably write to a separate file) variable values on each cell face. Conversion to STL will result in the triangulation of each patch face, so assigning the same variable value to each new triangular patch within a given cell face would be sufficient for my purposes. Is there a tool available that can accomplish this, and if not, would anyone be able to offer guidance on how I might make modifications to the surfaceMeshTriangulate utility for doing this? Thank you! |
|
February 16, 2017, 06:49 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
/mark |
||
March 8, 2017, 17:00 |
|
#3 |
New Member
Join Date: Jan 2017
Posts: 7
Rep Power: 9 |
Thank you for your reply, Mark.
I figured out that the boundary condition externalCoupled does a good chunk of what I want for my purposes, namely writing boundary values for each external cell face to a file. With that functionality discovered, I think my problem reduces to creating an STL mesh from an OpenFoam boundary, and creating a mapping (basically look-up table) which specifies the original OpenFoam boundary face from which each STL face was originally triangulated. Since surfaceMeshTriangulate can create the desired STL mesh, I figure that's a good place to start. I have looked at the source code but am having trouble figuring out where it triangulates individual boundary faces, and how I can modify the code to tabulate the original boundary faces from which STL faces are created. If anyone has any insight on how this could be done, I would be grateful. Thanks! |
|
Tags |
stl format |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mesh Boundary Assignment Question | Wandadars | Mesh Generation & Pre-Processing | 1 | June 13, 2016 18:19 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |