|
[Sponsors] |
Possible bug or limitation in stl-generated surface for sampling analysis |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2016, 06:26 |
Possible bug or limitation in stl-generated surface for sampling analysis
|
#1 |
Member
Join Date: Jun 2015
Posts: 30
Rep Power: 10 |
Hi,
In sampling results over surfaces, openfoam allows for using an stl-generated surface. For example in line 312 of $FOAM_UTILITIS/postProcessing/sampling/sample/sampleDict Code:
triSurfaceSampling { // Sampling on triSurface type sampledTriSurfaceMesh; surface integrationPlane.stl; source boundaryFaces; // What to sample: cells (nearest cell) // insideCells (only triangles inside cell) // boundaryFaces (nearest boundary face) interpolate true; } Code:
surfaceSampling { type surfaces; functionObjectLibs ("libsampling.so"); outputControl outputTime; surfaceFormat vtk; fields (U); interpolationScheme cellPoint; surfaces ( cuttingPlaneBase { // Cutingplane using iso surface type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 1); normalVector (0 0 1); } interpolate true; } stlBased { // Sampling on triSurface type sampledTriSurfaceMesh; surface znormal.stl; source cells; interpolate true; } ); } As it can be seen the stl approach completely fails. For some reason it doesn't really cut through the cells, rather keeps the original triangles form the stl. In the sampleDict, it's mentioned that the first approach using plane or cutting plane always generates a triangulated surface as well. So now I'm a bit confused as how to deal with this. Is this a bug in the type sampledTriSurfaceMesh which doesn't perform a topoSet analysis automatically? Like creating cellSet from the stl surface? or limitation of the approach or I missed something out? Thanks Ali |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spillway Analysis Fixed Water Surface Boundary Condition | mgdenno | OpenFOAM Running, Solving & CFD | 17 | December 9, 2018 17:37 |
[swak4Foam] funkyDoCalc mass flow over stl surface? | lourencosm | OpenFOAM Community Contributions | 0 | November 28, 2014 07:50 |
[snappyHexMesh] Problem with Sanpper, surface still Rough | Zephiro88 | OpenFOAM Meshing & Mesh Conversion | 7 | November 5, 2014 12:05 |
[snappyHexMesh] Add additional boundary layers to complex stl surface | tobijingles | OpenFOAM Meshing & Mesh Conversion | 1 | October 26, 2011 10:45 |
Normal - Helical Surface | m. malik | Main CFD Forum | 3 | February 3, 2006 12:56 |