|
[Sponsors] |
action "delete" in topoSetDict doesn't always work (.org) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2022, 22:17 |
action "delete" in topoSetDict doesn't always work (.org)
|
#1 |
Member
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4 |
Here are selected sections of my topoSetDict: (..trying to limit your eye-work..)
-------------------- #include "$FOAM_CASE/system/blockMeshDict" actions ( { name cs; type cellSet; action new; source cylinderToCell; sourceInfo { point1 (0 0 -100); point2 (0 0 100); centre (0 0 0); radius $cylinderRadiusOuter; } } { name cs; type cellSet; action delete; source cylinderToCell; sourceInfo { point1 (0 0 -100); point2 (0 0 100); centre (0 0 0); radius $cylinderRadiusInner; } } { name cs; type cellSet; action delete; source boxToCell; sourceInfo { box (-10 0 100)(100 100 -100); } } { name cs; type cellSet; action delete; source boxToCell; sourceInfo { box (-100 -100 -100)(0 10 1); } } { name solid; type cellZoneSet; action new; source setToCellZone; sourceInfo { set cs; } } ); // ************************************************** *********************** //[/CODE] I've tried to make it as clear as possible. You will see two places where I delete cells with boxToCell. The second one works, the first one does not. The command-line output: --------------- Reading "topoSetDict" Time = 0 mesh not changed. Created cellSet cs Applying source cylinderToCell Adding cells with centre within cylinder, with point1 = (0 0 -100), point2 = (0 0 100) and radius = 0.031 cellSet cs now size 269 Read set cellSet cs with size 269 Applying source cylinderToCell Removing cells with centre within cylinder, with point1 = (0 0 -100), point2 = (0 0 100) and radius = 0.03 cellSet cs now size 22 Read set cellSet cs with size 22 Applying source boxToCell Removing cells with center within boxes 1((-10 0 100) (100 100 -100)) cellSet cs now size 22 Read set cellSet cs with size 22 Applying source boxToCell Removing cells with center within boxes 1((-100 -100 -100) (0 10 1)) cellSet cs now size 13 Created cellZoneSet solid Applying source setToCellZone Adding all cells from cellSet cs ... cellZoneSet solid now size 13 End [/CODE] Notice that the cellSet size does not change for the first boxToCell. ..I'd include an image of the result, but it's on my computer, not online. There are cells that should be removed by the first box. ..I can prove this to you, if need be.. |
|
June 12, 2022, 01:46 |
Solved
|
#2 |
Member
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4 |
The coordinates of the box must always be lesser -> greater! so, well, exactly as the instructions say, xmin -> xmax, same for y, z.
|
|
Tags |
openfoam 9, toposetdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Introducing changeDictionaryDict and topoSetDict files in chtMultiRegionFoam | fracasce | OpenFOAM Pre-Processing | 8 | October 28, 2015 05:25 |
First order in fvSchemes does not seem to work | gerritgroot | OpenFOAM Running, Solving & CFD | 0 | September 30, 2015 21:06 |
Ubuntu 12.10 + openfoam2.2.0 ==> paraview error message | peteryuan | OpenFOAM Installation | 6 | August 18, 2013 19:00 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
Valve action | Hrvoje Jasak (Hjasak) | OpenFOAM Running, Solving & CFD | 0 | January 13, 2005 14:23 |