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

[mesh manipulation] topoSet from STL

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By simrego
  • 3 Post By olivierdambron

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 09:04
Default topoSet from STL
  #1
New Member
 
Olivier Dambron
Join Date: Mar 2017
Posts: 22
Rep Power: 9
olivierdambron is on a distinguished road
Hi everyone,

Would you know how to use topoSet to select all the cells within the boundaries of an STL geometry. So far I was using as a source searchableSurfaceToFaceZone, but my fvOption affects the cells located on the faces only.



topoSetDict


actions
(
{
name sprink;
type faceZoneSet;
action new;
source searchableSurfaceToFaceZone;
sourceInfo
{
surface triSurfaceMesh;
name "sprinklers.stl"
useSurfaceOrientation true;
outsidePoints ((1.9965 1.10433 8.35321));
includeCut false;
includeInside true;
includeOutside false;
nearDistance -1;
curvature 0.1;
}
}
{
name sprinklers;
type cellSet;
action new;
source faceZoneToCell;
sourceInfo
{
name sprink;
option master;
}
}



fvOptions

sprinklers
{
type scalarSemiImplicitSource;
active true;

scalarSemiImplicitSourceCoeffs
{
cellSet sprink;
selectionMode cellSet;
volumeMode specific;
injectionRateSuSp
{
h (-27000 0);
}
}
}


thanks for your help

Olivier.
olivierdambron is offline   Reply With Quote

Old   August 22, 2019, 10:03
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


How do you generate your mesh? If you are using snappyHexMesh, you can create a cellZone for these cells inside/outside of that STL file if it is a closed surface (it should be).
And you don't even need topoSet. You will have your cellZones after the meshing.
namsivag likes this.
simrego is offline   Reply With Quote

Old   August 22, 2019, 11:31
Default
  #3
New Member
 
Olivier Dambron
Join Date: Mar 2017
Posts: 22
Rep Power: 9
olivierdambron is on a distinguished road
Many thanks simrego!
You solved my issue. Here's what I did inside snappyHexMeshDict for those who may need it:

geometry
{

}
sprinklers.stl
{
type triSurfaceMesh;
name sprinklers;
}

}


refinementSurfaces
{

sprinklers
{
level (0 0);

faceZone faceZone1;
cellZone cellZone1;
cellZoneInside inside;

boundary internal;
}
olivierdambron is offline   Reply With Quote

Old   November 8, 2020, 21:30
Default
  #4
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 205
Rep Power: 7
farzadmech is on a distinguished road
Dear Simrego
What should I do if I generate my mesh from an external source(In my case ansysMeshing), and still I want to add zone in the toposetdict?


Thanks
Farzad

Quote:
Originally Posted by simrego View Post
Hi!


How do you generate your mesh? If you are using snappyHexMesh, you can create a cellZone for these cells inside/outside of that STL file if it is a closed surface (it should be).
And you don't even need topoSet. You will have your cellZones after the meshing.
farzadmech 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
[mesh manipulation] topoSet for stl files Owais Shabbir OpenFOAM Meshing & Mesh Conversion 4 November 8, 2020 17:42
[CAD formats] Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Meshing & Mesh Conversion 58 May 13, 2020 06:01
Possible to create cyliner baffle (internal) using topoSet or stl Mesh? keepfit OpenFOAM 4 February 19, 2017 14:40
[ICEM] STL file! How is it useful? bidi ANSYS Meshing & Geometry 0 December 26, 2016 21:33
[snappyHexMesh] Experimentally obtained STL file for internal Flow SnappyHexMesh Irish09 OpenFOAM Meshing & Mesh Conversion 9 April 7, 2012 08:50


All times are GMT -4. The time now is 07:57.