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

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 08:28.