mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
updated example dictionaries for new sources
This commit is contained in:
@ -26,12 +26,31 @@ action new;
|
|||||||
|
|
||||||
topoSetSources
|
topoSetSources
|
||||||
(
|
(
|
||||||
|
// Select by explicitly providing cell labels
|
||||||
|
labelToCell
|
||||||
|
{
|
||||||
|
value (12 13 56); // labels of cells
|
||||||
|
}
|
||||||
|
|
||||||
// Copy elements from cellSet
|
// Copy elements from cellSet
|
||||||
cellToCell
|
cellToCell
|
||||||
{
|
{
|
||||||
set c1;
|
set c1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cells in cell zone
|
||||||
|
zoneToCell
|
||||||
|
{
|
||||||
|
name ".*Zone"; // Name of cellZone, regular expressions allowed
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cells on master or slave side of faceZone
|
||||||
|
faceZoneToCell
|
||||||
|
{
|
||||||
|
name ".*Zone"; // Name of faceZone, regular expressions allowed
|
||||||
|
option master; // master/slave
|
||||||
|
}
|
||||||
|
|
||||||
// Select based on faceSet
|
// Select based on faceSet
|
||||||
faceToCell
|
faceToCell
|
||||||
{
|
{
|
||||||
@ -51,12 +70,6 @@ topoSetSources
|
|||||||
//option all; // cell with all points in pointSet
|
//option all; // cell with all points in pointSet
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select by explicitly providing cell labels
|
|
||||||
labelToCell
|
|
||||||
{
|
|
||||||
value (12 13 56); // labels of cells
|
|
||||||
}
|
|
||||||
|
|
||||||
// Select based on cellShape
|
// Select based on cellShape
|
||||||
shapeToCell
|
shapeToCell
|
||||||
{
|
{
|
||||||
@ -87,7 +100,6 @@ topoSetSources
|
|||||||
radius 5.0;
|
radius 5.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Cells with centre within sphere
|
// Cells with centre within sphere
|
||||||
sphereToCell
|
sphereToCell
|
||||||
{
|
{
|
||||||
@ -95,20 +107,6 @@ topoSetSources
|
|||||||
radius 5.0;
|
radius 5.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cells in cell zone
|
|
||||||
zoneToCell
|
|
||||||
{
|
|
||||||
name ".*Zone"; // Name of cellZone, regular expressions allowed
|
|
||||||
}
|
|
||||||
|
|
||||||
// values of field within certain range
|
|
||||||
fieldToCell
|
|
||||||
{
|
|
||||||
fieldName U; // Note: uses mag(U) since volVectorField
|
|
||||||
min 0.1;
|
|
||||||
max 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cells with cellCentre nearest to coordinates
|
// Cells with cellCentre nearest to coordinates
|
||||||
nearestToCell
|
nearestToCell
|
||||||
{
|
{
|
||||||
@ -129,6 +127,22 @@ topoSetSources
|
|||||||
// and near surf curvature
|
// and near surf curvature
|
||||||
// (set to -100 if not used)
|
// (set to -100 if not used)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// values of field within certain range
|
||||||
|
fieldToCell
|
||||||
|
{
|
||||||
|
fieldName U; // Note: uses mag(U) since volVectorField
|
||||||
|
min 0.1;
|
||||||
|
max 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mesh region (non-face connected part of (subset of)mesh)
|
||||||
|
regionToCell
|
||||||
|
{
|
||||||
|
set c0; // name of cellSet giving mesh subset
|
||||||
|
insidePoint (1 2 3); // point inside region to select
|
||||||
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -51,18 +51,24 @@ topoSetSources
|
|||||||
value (12 13 56); // labels of points
|
value (12 13 56); // labels of points
|
||||||
}
|
}
|
||||||
|
|
||||||
// Points with coordinate within box
|
|
||||||
boxToPoint
|
|
||||||
{
|
|
||||||
box (0 0 0) (1 1 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// All points in pointzone
|
// All points in pointzone
|
||||||
zoneToPoint
|
zoneToPoint
|
||||||
{
|
{
|
||||||
name ".*Zone"; // name of pointZone, regular expressions allowed
|
name ".*Zone"; // name of pointZone, regular expressions allowed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Points nearest to coordinates
|
||||||
|
nearestToPoint
|
||||||
|
{
|
||||||
|
points ((0 0 0) (1 1 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Points with coordinate within box
|
||||||
|
boxToPoint
|
||||||
|
{
|
||||||
|
box (0 0 0) (1 1 1);
|
||||||
|
}
|
||||||
|
|
||||||
// Select based on surface
|
// Select based on surface
|
||||||
surfaceToPoint
|
surfaceToPoint
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user