CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   topoSetDict error (for overtopping) (https://www.cfd-online.com/Forums/openfoam-pre-processing/232485-toposetdict-error-overtopping.html)

deoga December 15, 2020 20:00

topoSetDict error (for overtopping)
 
Hello all,

I am a new user of openFoam and I try to construct overtopping problems. I have to set face zone with topoSetDict but I get the error:
--------------------------------------------------------------------------------------
---> FOAM FATAL IO ERROR:
Entry 'faceSet' not found in dictionary "/scratch/e1252a02/051-075/057/system/topoSetDict.actions.sourceInfo"


file: /scratch/e1252a02/051-075/057/system/topoSetDict.actions.sourceInfo

From function bool Foam::dictionary::readEntry(const Foam::word &, T &, Foam::keyType::option, bool) const [with T = Foam::word]
in file /apps/applications/OpenFOAM/v1920/intel/18.0.3/impi/18.0.3/x86-skylake/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/dictionaryTemplates.C at line 334.
--------------------------------------------------------------------------------------

with this error, overtoppingfaceSet(result file) was made in /constant/polyMesh/sets/ but overtopping(other result file) was not made.

I think it has problem in step 'faceZoneSet'.

I have included the topoSetDict file, could some please help me?

PHP Code:

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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
//overtopping
    
{
        
name    overtoppingfaceSet;
        
type    faceSet;
        
action  new;
        
source  boxToFace;
        
sourceInfo
        
{
                
box  (37.25 0.2 0) (37.75 0.75 2);
        }
    }

    {
        
name    overtopping;
        
type    faceZoneSet;
        
action  new;
        
source  setToFaceZone;
        
sourceInfo
        
{
                
set overtoppingfaceSet;
        }


//porosity 1

    
{
        
name    poroCellSet1;
        
type    cellSet;
        
action  new;
        
source  rotatedBoxToCell;
        
sourceInfo
        
{
            
origin   (36.92 -0.5 -100);
            
i        (0.225 0.15 0);
            
j        (-0.045 0 0);
            
k        (0 0 200);
        }
    }
    {
        
name    poroCellSet1;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (37.1 -0.38 -100)(37.18 -0.35 100);
        }
    }
    {
        
name    porosity1;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set  poroCellSet1;
        }
    }


//porosity 2


    
{
        
name    poroCellSet2;
        
type    cellSet;
        
action  new;
        
source  rotatedBoxToCell;
        
sourceInfo
        
{
            
origin   (36.95 -0.5 -100);
            
i        (0.18 0.12 0);
            
j        (-0.03 0 0);
            
k        (0 0 200);
        }
    }
    {
        
name    poroCellSet2;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (37.1 -0.4 -100)(37.18 -0.38 100);
        }
    }
    {
        
name    poroCellSet2;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (37.26 -0.4 -100)(37.902 -0.35 100);
        }
    }
    {
        
name    poroCellSet2;
        
type    cellSet;
        
action  add;
        
source  rotatedBoxToCell;
        
sourceInfo
        
{
            
origin   (38.127 -0.5 -100);
            
i        (-0.225 0.15 0);
            
j        (-0.075 0 0);
            
k        (0 0 200);
        }
    }
    {
        
name    porosity2;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set  poroCellSet2;
        }
    }



ethan13 January 14, 2021 22:58

missing bracket
 
Hi Deoga,

I think you just missed one bracket "}" at the end of the overtopping segment in your topoSetDict.

Code:

    {
        name    overtopping;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
                set overtoppingfaceSet;
        }
    }

hope you have solved this since it was posted one month ago.

Regards,
Ethan

cfd_saad August 21, 2022 06:24

it's faceSet overtoppingfaceSet; not set overtoppingfaceSet;
 
It's faceSet overtoppingfaceSet; not set overtoppingfaceSet;

Quote:

Originally Posted by ethan13 (Post 793369)

Code:

    {
        name    overtopping;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
                faceSet overtoppingfaceSet;
        }
    }


Here you have an annotated topoSetDict : https://github.com/OpenFOAM/OpenFOAM...poSetDict#L248

Cheers,


All times are GMT -4. The time now is 23:08.