CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

topoSet, patchToFace and faceToCell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2019, 10:50
Default topoSet, patchToFace and faceToCell
  #1
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello Everyone,


My OpenFoam version is 4.1.


I am using fvOptions to use one face of a box(geometry) as a heat source.


To select one face as a heat source I am selecting selectionMode as a "cellSet".


To make cellSet, I am using topoSet, but I am new to it, and I don't know how to configure it. My toposetDict is given below:


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}

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

actions
(
    {
        name    hot;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name hotFace;
        }
    } 
// Select based on faceSet
    {
        name    hot;
        type    cellSet;
        action  new;
        source  faceToCell;
        sourceInfo
        {
            set hot;             // Name of faceSet

       //option neighbour; // cell with neighbour in faceSet
        //option owner;     //  ,,       owner
            option any;         // cell with any face in faceSet
            //option all;       // cell with all faces in faceSet
        } 
    }
);
when I select the option "any" in making cellSet, my log file for topoSetDict shows that the cellSet has created and shows its size also. As you can see below:


Code:
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created faceSet hot
    Applying source patchToFace
    Adding all faces of patch hotFace ...
    Found matching patch hotFace with 253 faces.
    faceSet hot now size 253
Created cellSet hot
    Applying source faceToCell
    Adding cells according to faceSet hot ...
    cellSet hot now size 253
End
But, when I select the option "all", it shows that the size of cellSet is "0". Given below:


Code:
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created faceSet hot
    Applying source patchToFace
    Adding all faces of patch hotFace ...
    Found matching patch hotFace with 253 faces.
    faceSet hot now size 253
Created cellSet hot
    Applying source faceToCell
    Adding cells according to faceSet hot ...
    cellSet hot now size 0
End
What am I doing wrong with topoSet file?

Can someone please help to resolve this issue? I shall be very thankful.
Raza Javed is offline   Reply With Quote

Old   July 10, 2020, 11:16
Default
  #2
New Member
 
Kamal Khemani
Join Date: Feb 2019
Location: India
Posts: 2
Rep Power: 0
KAMAL KHEMANI is on a distinguished road
Hi Raza, did you solved this issue? Actually i'm also getting same kind of issue while selecting a subset from the faceset obtained from patchToFace command
KAMAL KHEMANI is offline   Reply With Quote

Reply

Tags
facetocell, fvoption, openfoam, patchtoface, toposet


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
define a cellzone with toposet decibelle OpenFOAM Pre-Processing 5 August 10, 2022 06:53
topoSet and fvOptions Raza Javed OpenFOAM Running, Solving & CFD 1 February 4, 2020 15:44


All times are GMT -4. The time now is 16:28.