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

toposet- cellSet has size 0

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By fidu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2020, 04:17
Default toposet- cellSet has size 0
  #1
New Member
 
David
Join Date: Oct 2020
Posts: 21
Rep Power: 5
fidu is on a distinguished road
Hi foamers

I want to include a stl file in my case so that I can use it as a porous media later on. However as soon as I run topoSet I get a cellSet with the size 0. The stl file should be ok and closed, so I don't know what I did wrong... Does anyone know what I have to change?

When I run topoSet I get this output:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1806                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v1806
Arch   : "LSB;label=32;scalar=64"
Exec   : topoSet
Date   : Nov 02 2020
Time   : 10:10:01
Host   : "eu-login-13"
PID    : 12700
I/O    : uncollated
Case   : /cluster/scratch/kaeserd/01.11/tree_in_buildings
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created cellSet trees
    Applying source surfaceToCell
    Adding cells in relation to surface "constant/triSurface/trees.stl" ...
    Marked inside/outside using surface orientation in = 0.26 s

    cellSet trees now size 0
End
my topoSetDict is:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(

    {
        name    trees;
        type    cellSet;
        action  new;
        source  surfaceToCell;
        sourceInfo
        {
            file  "constant/triSurface/trees.stl";
            useSurfaceOrientation true;  // use closed surface inside/outside
                                          // test (ignores includeCut,
                                          // outsidePoints)
            outsidePoints   ((-99 -99 -99));    // definition of outside
            includeCut      false;               // cells cut by surface
            includeInside   true;               // cells not on outside of surf
            includeOutside  false;              // cells on outside of surf
            nearDistance    -1;                 // cells with centre near surf
                                                // (set to -1 if not used)
            curvature       -100;               // cells within nearDistance
                                                // and near surf curvature
                                                // (set to -100 if not used)           
        }
    }           
);
My workflow so far was:
  1. blockMesh
  2. surfaceFeatureExtract
  3. snappyHexMesh -overwrite
  4. topoSet

Many thanks already in advance for time and help. I hope this problem was not already discussed or if it was you could point me to he tread.

Best

David
fidu is offline   Reply With Quote

Old   November 2, 2020, 06:53
Default
  #2
RGS
Member
 
Rohit George Sebastian
Join Date: May 2017
Posts: 41
Rep Power: 8
RGS is on a distinguished road
I think the problem here is that you are using an STL file. Doesn't OpenFOAM require meshes in it's own format?
RGS is offline   Reply With Quote

Old   November 2, 2020, 08:09
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,075
Rep Power: 26
Yann will become famous soon enough
Hello,



SurfaceToCell is indeed meant to be used with a STL file as a source.

Here is the documentation for OpenFOAM-v2006 : https://www.openfoam.com/documentati...aceToCell.html

I am not sure what is going on with fidu's error. topoSet gets the file and do the operation without any error so it seems there is no syntax error in topoSetDict. The workflow is fine too.

What you can do :
  • Open the mesh with paraview and open your trees.stl file :
    • Check if the STL file is properly positioned and scaled inside your mesh.
    • Do you have cells entirely contained inside the volume defined by your STL file? (with your setup topoSet will keep only the cells inside the STL)
  • Run surfaceCheck on your STL files to check for any error. I think topoSet would fail if the STL was not closed but you can always check.

Hope this helps,
Yann
fidu likes this.
Yann is offline   Reply With Quote

Old   November 2, 2020, 13:25
Default
  #4
New Member
 
David
Join Date: Oct 2020
Posts: 21
Rep Power: 5
fidu is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,



SurfaceToCell is indeed meant to be used with a STL file as a source.

Here is the documentation for OpenFOAM-v2006 : https://www.openfoam.com/documentati...aceToCell.html

I am not sure what is going on with fidu's error. topoSet gets the file and do the operation without any error so it seems there is no syntax error in topoSetDict. The workflow is fine too.

What you can do :
  • Open the mesh with paraview and open your trees.stl file :
    • Check if the STL file is properly positioned and scaled inside your mesh.
    • Do you have cells entirely contained inside the volume defined by your STL file? (with your setup topoSet will keep only the cells inside the STL)
  • Run surfaceCheck on your STL files to check for any error. I think topoSet would fail if the STL was not closed but you can always check.

Hope this helps,
Yann
Thanks a lot! I did not have a fine enough mesh to capture the stl file.

Best
fidu
Yann likes this.
fidu is offline   Reply With Quote

Reply

Tags
cellset, cellzone, pre-proccessing, toposet, 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
topoSet and splitMeshRegions amod_kumar OpenFOAM Pre-Processing 0 July 10, 2017 08:54
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
topoSet geometry than more than 1 box Grimoli OpenFOAM Pre-Processing 1 April 14, 2013 08:54
[ICEM] Help with fixing imported IGES model siw ANSYS Meshing & Geometry 24 August 24, 2010 11:22
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 15:41.