mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use "origin" for searchable sphere etc. (#1060)
- replaces "centre", using the same keyword as other objects (eg, plane, rotatedBox, coordinateSystem etc).
This commit is contained in:
@ -25,8 +25,8 @@ actions
|
||||
source sphereToCell;
|
||||
sourceInfo
|
||||
{
|
||||
centre (0.125 0.375 0.05);
|
||||
radius 0.005;
|
||||
origin (0.125 0.375 0.05);
|
||||
radius 0.005;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -110,7 +110,7 @@ actions
|
||||
source sphereToCell;
|
||||
sourceInfo
|
||||
{
|
||||
centre (-0.3 -0.3 -0.3);
|
||||
origin (-0.3 -0.3 -0.3);
|
||||
radius 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ FoamFile
|
||||
// // Cells with centre within sphere
|
||||
// source sphereToCell;
|
||||
// {
|
||||
// centre (0.2 0.2 -10);
|
||||
// origin (0.2 0.2 -10);
|
||||
// radius 5.0;
|
||||
// }
|
||||
//
|
||||
|
||||
@ -27,8 +27,9 @@ regions
|
||||
(
|
||||
sphereToCell
|
||||
{
|
||||
centre (0.5 0.5 0);
|
||||
radius 0.1;
|
||||
centre (0.5 0.5 0);
|
||||
radius 0.1;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 0
|
||||
|
||||
@ -27,8 +27,9 @@ regions
|
||||
(
|
||||
sphereToCell
|
||||
{
|
||||
centre (0.5 0.5 0.5);
|
||||
radius 0.1;
|
||||
origin (0.5 0.5 0.5);
|
||||
radius 0.1;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 0
|
||||
|
||||
Reference in New Issue
Block a user