CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

shapetoCell in topoSet

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2016, 11:40
Red face shapetoCell in topoSet
  #1
New Member
 
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 10
shengqiming is on a distinguished road
Hi all,

i want to use topoSet to definte a triangular prism. There is a tool called shapeToCell. But there is no further information about how to use it. Can anyone show me how can i deinite this region? Or there are some other choices i can use? Thank you in forward.
shengqiming is offline   Reply With Quote

Old   October 16, 2016, 21:06
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Have you looked at the "master" topoSetDict?

Quote:
// source shapeToCell;
// sourceInfo
// {
// type hex; // hex/wedge/prism/pyr/tet/tetWedge/splitHex
// }
https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict

So I should think that for your prism cells, you simply choose the type as prism.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   October 17, 2016, 08:13
Default
  #3
New Member
 
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 10
shengqiming is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

Have you looked at the "master" topoSetDict?



https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict

So I should think that for your prism cells, you simply choose the type as prism.

Cheers,
Antimony

Hi Antimony,

thanks for your reply. I have seen this. The problem is that how can i choose this region for a prism. I may need to give the vertex of the prism or something?

Best regards
Qiming
shengqiming is offline   Reply With Quote

Old   July 21, 2019, 04:14
Default
  #4
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by shengqiming View Post
Hi all,

i want to use topoSet to definte a triangular prism. There is a tool called shapeToCell. But there is no further information about how to use it. Can anyone show me how can i deinite this region? Or there are some other choices i can use? Thank you in forward.
shapeToCell Selects all cells of given cellShape and not all cells within the shape.
amuzeshi is offline   Reply With Quote

Old   July 5, 2023, 00:44
Default shapeToCell not working with proposed syntax
  #5
New Member
 
Márcio Froelich Friedrich
Join Date: Aug 2013
Posts: 5
Rep Power: 12
marxioxyz is on a distinguished road
Hello,


I'm using OpenFoam 10 and trying to use shapeToCell.


This block on topoSetDict
{
name hexaedros;
type cellSet;
action new;
source shapeToCell;
shape hex;
}
returns this error:
=====================

Created cellSet hexaedros
Applying source shapeToCell
--> FOAM FATAL ERROR:
Illegal cell type cellSet
From function Foam::shapeToCell::shapeToCell(const Foam:olyMesh&, const Foam::dictionary&)
in file sets/cellSources/shapeToCell/shapeToCell.C at line 109.
=====================


If I use the syntax like this (type instead of shape, as suggested in tc/caseDicts/annotated/topoSetDict):
{
name hexaedros;
type cellSet;
action new;
source shapeToCell;
type hex;
}

I get this error:


===================

--> FOAM FATAL ERROR:
Unknown set type hex

Valid set types :

6
(
cellSet
cellZoneSet
faceSet
faceZoneSet
pointSet
pointZoneSet
)
===================

I also checked the shapeToCell.C file and suposedly I should use "type" .


Any clues on what I am doing wrong? Or could it be a bug in the source code?


Thank you!
marxioxyz is offline   Reply With Quote

Old   July 5, 2023, 03:42
Default
  #6
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by marxioxyz View Post
Hello,


I'm using OpenFoam 10 and trying to use shapeToCell.
...
I could not figure it out in 30 minutes; both topoSet.C and shapeToCell.C ask for the keyword "type", that is why the confusion pops up.. I am curious about the solution..
amuzeshi is offline   Reply With Quote

Old   July 5, 2023, 10:27
Default
  #7
New Member
 
Márcio Froelich Friedrich
Join Date: Aug 2013
Posts: 5
Rep Power: 12
marxioxyz is on a distinguished road
Quote:
Originally Posted by amuzeshi View Post
I could not figure it out in 30 minutes; both topoSet.C and shapeToCell.C ask for the keyword "type", that is why the confusion pops up.. I am curious about the solution..
Thank you Ali Shayegh for the time spent.
I noticed that too and tried to embrace the "type" from shapeToCell.C inside brackets or parenthesis to "restrict its space", but no luck with that too.

Last edited by marxioxyz; July 5, 2023 at 16:37.
marxioxyz is offline   Reply With Quote

Reply

Tags
prism, shapetocell, toposet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] Porous Media using TopoSet RobertoCirolini OpenFOAM Meshing & Mesh Conversion 3 August 30, 2016 08:34
topoSet tolerance akidess OpenFOAM Pre-Processing 0 September 30, 2015 11:13
[Other] cellLevel field not readable by topoSet blaise OpenFOAM Meshing & Mesh Conversion 0 June 30, 2015 04:35
[Other] topoSet Wrong number of faces. a19910112a OpenFOAM Meshing & Mesh Conversion 1 June 9, 2015 05:41
[snappyHexMesh] HOW to set a circular face by toposet Jessica OpenFOAM Meshing & Mesh Conversion 2 September 12, 2013 20:54


All times are GMT -4. The time now is 21:43.