|
[Sponsors] |
Using .setSet to periodically spawn droplets/spheres |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 23, 2019, 05:48 |
Using .setSet to periodically spawn droplets/spheres
|
#1 |
New Member
F. Lang
Join Date: Sep 2019
Location: Germany
Posts: 3
Rep Power: 7 |
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 Code:
actions ( { name c0; type cellSet; action new; source sphereToCell; sourceInfo { centre (0.075 0.2 0.05); radius 100e-4; } } ); Code:
injector1 { timeStart 0.1; duration 5; selectionMode cellZone; cellZone c0; } options { ... } 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 Is there any documentation or tutorial explaining the usage of .setSet? Thanks in advance. |
|
September 23, 2019, 08:44 |
|
#2 |
New Member
F. Lang
Join Date: Sep 2019
Location: Germany
Posts: 3
Rep Power: 7 |
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; } } ); |
|
Tags |
.setset, fvoptions, toposetdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
unable to spawn node | Phil | FLUENT | 0 | May 27, 2004 12:38 |