CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to create a torus region using topoSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2024, 09:27
Default How to create a torus region using topoSet
  #1
vjp
New Member
 
Join Date: Aug 2021
Location: France
Posts: 7
Rep Power: 5
vjp is on a distinguished road
Hello everyone,

I would like to use a torus region with topoSet but I don't know how to do it.
I already used cylinderToCell, cylinderAnnulusToCell in topoSetDict to post-process some regions but I don't find a way to create a torus region or a volume of revolution around an axis.

Can anyone help me

Thanks in advance
vjp is offline   Reply With Quote

Old   April 2, 2024, 11:31
Default
  #2
vjp
New Member
 
Join Date: Aug 2021
Location: France
Posts: 7
Rep Power: 5
vjp is on a distinguished road
I try to do what you explain (the surface specified with the STL file is not torus, it is a cylinder):


Quote:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
{
name cylindre; // Name of the set
type cellSet; // Set type

action new; // Create a new set
source surfaceToCell; // Use cells as the source
sourceInfo
{
file "constant/triSurface/cylindre.stl";
useSurfaceOrientation false;
outsidePoints ((0 0.03 0));
includeCut true;
includeInside true;
includeOutside false;
nearDistance -1;
curvature -100;

}
}
{
name centre;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set cylindre;
}

}
);

// ************************************************** *********************** //
I define my surface with the stl file "cylindre.stl" but when I run
Quote:
topoSet | tee 2>&1 4-topoSet.log
I have always
Quote:
cellSet cylindre now size 0
Created cellZoneSet centre
Applying source setToCellZone
Adding all cells from cellSet cylindre ...
cellZoneSet centre now size 0
It seems that there is nothing inside my surface but i don't understand why. The outsidePoint is outside the surface created.
vjp is offline   Reply With Quote

Old   October 23, 2024, 05:34
Default
  #3
New Member
 
Lily Osborne
Join Date: Oct 2024
Posts: 1
Rep Power: 0
ohLi6oolee is on a distinguished road
Quote:
Originally Posted by vjp View Post
I try to do what you explain (the surface specified with the STL file is not torus, it is a cylinder): geometry dash


I define my surface with the stl file "cylindre.stl" but when I run I have always
It seems that there is nothing inside my surface but i don't understand why. The outsidePoint is outside the surface created.
To create a torus region using topoSet in OpenFOAM (or similar software), you need to define a set of geometric parameters and use the relevant topoSet commands
ohLi6oolee is offline   Reply With Quote

Old   October 24, 2024, 05:55
Default
  #4
New Member
 
zidane uteria
Join Date: Oct 2024
Posts: 1
Rep Power: 0
konkreta is on a distinguished road
Quote:
Originally Posted by ohLi6oolee View Post
To create a torus region using topoSet in OpenFOAM (or similar software), you need to define a set of geometric parameters and use the relevant topoSet commands
Quote:
Originally Posted by vjp View Post
I try to do what you explain (the surface specified with the STL file is not torus, it is a cylinder): slope


I define my surface with the stl file "cylindre.stl" but when I run I have always
It seems that there is nothing inside my surface but i don't understand why. The outsidePoint is outside the surface created.
It seems like you're trying to use topoSet to define a surface using an STL file in OpenFOAM but are running into issues. Based on the message, it appears the issue might be with how the outsidePoint is specified. The point you're defining as outside should clearly be outside the geometry you're working with (in your case, a cylinder). If the STL is not being properly recognized or there's nothing inside the surface, it might be worth double-checking the integrity of the STL file or ensuring the surface normals are correctly oriented. Additionally, verify the positioning and accuracy of the outsidePoint relative.
konkreta is offline   Reply With Quote

Old   November 4, 2024, 09:54
Default
  #5
New Member
 
Clarkehan
Join Date: Nov 2024
Posts: 1
Rep Power: 0
clarkehan is on a distinguished road
Quote:
Originally Posted by konkreta View Post
It seems like you're trying to use topoSet to define a surface using an STL file in OpenFOAM but are running into issues. Based on the message, it appears the issue might be with how the outsidePoint is specified. The point you're defining as outside should clearly be outside the geometry you're working with (in your case, a cylinder). If the STL is not being properly recognized or there's nothing inside the surface, it might be worth double-checking the integrity of the STL file or ensuring the surface normals are correctly oriented. Additionally, verify the positioning and accuracy of the outsidePoint relative. Agario
Thanks for the detailed insights! I’ll make sure that the outsidePoint is correctly positioned outside the cylinder geometry. Additionally, I’ll verify the integrity of the STL file and ensure that all surface normals are properly oriented. If the STL isn’t being recognized correctly, I’ll use tools like surfaceCheck to identify any issues and possibly correct the normals with reverseSurfaceNormals. I’ll also double-check the placement and accuracy of the outsidePoint relative to the geometry. If I continue to encounter problems after these steps, I’ll provide more information for further assistance. Appreciate your help!
clarkehan is offline   Reply With Quote

Old   November 25, 2024, 23:37
Default
  #6
New Member
 
salmawis
Join Date: Nov 2024
Posts: 1
Rep Power: 0
salmawis is on a distinguished road
Quote:
Originally Posted by ohLi6oolee View Post
To create a torus region using topoSet in OpenFOAM (or similar software),Drift Boss you need to define a set of geometric parameters and use the relevant topoSet commands
Appreciate your help!
salmawis is offline   Reply With Quote

Old   December 4, 2024, 08:25
Default
  #7
New Member
 
karin zbarova
Join Date: Dec 2024
Posts: 1
Rep Power: 0
karina99 is on a distinguished road
Quote:
Originally Posted by konkreta View Post
red ball 4 It seems like you're trying to use topoSet to define a surface using an STL file in OpenFOAM but are running into issues. Based on the message, it appears the issue might be with how the outsidePoint is specified. The point you're defining as outside should clearly be outside the geometry you're working with (in your case, a cylinder). If the STL is not being properly recognized or there's nothing inside the surface, it might be worth double-checking the integrity of the STL file or ensuring the surface normals are correctly oriented. Additionally, verify the positioning and accuracy of the outsidePoint relative.
thanks bro
karina99 is offline   Reply With Quote

Reply

Tags
mesh, openfoam, toposetdict


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
[Other] splitMeshRegions does not create interface patch between regions fsan OpenFOAM Meshing & Mesh Conversion 10 June 6, 2022 06:56
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07


All times are GMT -4. The time now is 06:58.