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

Using .setSet to periodically spawn droplets/spheres

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2019, 05:48
Default Using .setSet to periodically spawn droplets/spheres
  #1
New Member
 
F. Lang
Join Date: Sep 2019
Location: Germany
Posts: 3
Rep Power: 7
F. Lang is on a distinguished road
Hello,

I want to periodically generate droplets, with an initial velocity, inside a wind tunnel and calculate the resulting velocity field.

To achieve this I tried to alter the injection-tutorial by using setSet to define a spherical cellZone, which I set as target for the selectionMode inside the fvOptions.

c0.setSet
Code:
 cellSet c0 new
topoSetDict
Code:
 actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source  sphereToCell;
        sourceInfo
        {
            centre (0.075 0.2 0.05);
            radius 100e-4;
        }
    }
);
fvOptions
Code:
 injector1
{
    timeStart       0.1;
    duration        5;
    selectionMode   cellZone;
    cellZone        c0;  
}

options
 {
 ...
 }
How ever I cannot understand how .setSet and topoSetDict interact with each other leading to the following error message:

Code:
 --> FOAM FATAL ERROR: 
Cannot find cellZone c0
Valid cellZones are 0()

    From function void Foam::fv::cellSetOption::setCellSet()
    in file cellSetOption/cellSetOption.C at line 142.

FOAM exiting
I cannot find any documentation regarding this in the OpenFoam documentation.As the sole tutorial using .setSet I found the damBreakWithObstacle, but struggle to adapt the method off generating the cellZone to my case.

Is there any documentation or tutorial explaining the usage of .setSet?

Thanks in advance.
F. Lang is offline   Reply With Quote

Old   September 23, 2019, 08:44
Default
  #2
New Member
 
F. Lang
Join Date: Sep 2019
Location: Germany
Posts: 3
Rep Power: 7
F. Lang is on a distinguished road
Found my mistake: I created a cellSet and tried to reference it as cellZone. In order to assign a cellZone you have to extend the topoSetDict as follws:
Code:
 actions
 (
     {
         name    dropCellSet;
         type    cellSet;
         action  new;
         source  sphereToCell;
         sourceInfo
         {
             centre (0.075 0.2 0.05);
         radius 100e-4;
         }
     }
 
 
     {
         name    drop;
         type    cellZoneSet;
         action  new;
         source  setToCellZone;
         sourceInfo
         {
             set dropCellSet;
         }
     }
 );
However, I still do not understand how .setSet and topoSetDict interact. Is the .setSet-file just another way to achieve what topoSet does via a bash-script?
F. Lang is offline   Reply With Quote

Reply

Tags
.setset, fvoptions, 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
unable to spawn node Phil FLUENT 0 May 27, 2004 12:38


All times are GMT -4. The time now is 11:37.