TUT: remove superfluous 'sourceInfo' (topo sets)

- update annotated dicts, remove tabs

- use point1/point2 for cylinder sources
This commit is contained in:
Mark Olesen
2022-05-25 10:48:24 +02:00
parent 832fbd954f
commit 500c7047b2
30 changed files with 197 additions and 331 deletions

View File

@ -89,7 +89,7 @@ baffles
{ {
//- Select faces and orientation through a searchableSurface //- Select faces and orientation through a searchableSurface
type searchableSurface; type searchableSurface;
surface searchablePlate; surface plate;
origin (0.099 -0.006 0.004); origin (0.099 -0.006 0.004);
span (0 0.012 0.012); span (0 0.012 0.012);

View File

@ -39,8 +39,7 @@ addLayers false;
// keepPatches true; // keepPatches true;
// Geometry. Definition of all surfaces. All surfaces are of class // Geometry. All surfaces are of class searchableSurface.
// searchableSurface.
// Surfaces are used // Surfaces are used
// - to specify refinement for any mesh cell intersecting it // - to specify refinement for any mesh cell intersecting it
// - to specify refinement for any mesh cell inside/outside/near // - to specify refinement for any mesh cell inside/outside/near
@ -49,7 +48,7 @@ geometry
{ {
box1x1x1 box1x1x1
{ {
type searchableBox; type box;
min (1.5 1 -0.5); min (1.5 1 -0.5);
max (3.5 2 0.5); max (3.5 2 0.5);
} }
@ -57,7 +56,7 @@ geometry
// Shell for directional refinement // Shell for directional refinement
wakeBox wakeBox
{ {
type searchableBox; type box;
min (1.5 1 -0.5); min (1.5 1 -0.5);
max (3.5 2 0.5); max (3.5 2 0.5);
} }
@ -86,7 +85,7 @@ geometry
sphere2 sphere2
{ {
type searchableSphere; type sphere;
centre (1.5 1.5 1.5); centre (1.5 1.5 1.5);
radius 1.03; radius 1.03;
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -46,28 +46,16 @@ cellSet_doc
} }
//- Cells with centre within cylinder or cylinder annulus //- Cells with centres within cylinder or cylinder annulus
{ {
source cylinderToCell; source cylinderToCell;
p1 (0.2 0.2 -10); // start point on cylinder axis point1 (0.2 0.2 -10); // beg point on cylinder axis
p2 (0.2 0.2 0); // end point on cylinder axis point2 (0.2 0.2 0); // end point on cylinder axis
radius 5.0; radius 5.0;
// optional // optional
innerRadius 1.0; innerRadius 1.0;
} }
//- Cells with centre within cylinder annulus
// Can also simply use cylinderToCell
{
source cylinderAnnulusToCell;
p1 (0.2 0.2 -10); // start point on cylinder axis
p2 (0.2 0.2 0); // end point on cylinder axis
outerRadius 5.0;
innerRadius 1.0;
}
//- Select based on faceSet //- Select based on faceSet
{ {
source faceToCell; source faceToCell;
@ -87,15 +75,10 @@ cellSet_doc
{ {
source faceZoneToCell; source faceZoneToCell;
zones (".*Zone"); // Names of faceZones, word or regex zones (".*Zone"); // Names of faceZones, word or regex
// OR zone ".*Zone"; // Name of faceZone, word or regex // or
option master; // master/slave zone ".*Zone"; // Name of faceZone, word or regex
//- Compat option master; // master/slave
// sourceInfo
// {
// name ".*Zone";
// option master;
// }
} }
@ -170,13 +153,11 @@ cellSet_doc
} }
//- Select cells with centres within a searchableSurface //- Select cells with centres within a (closed!) searchableSurface
{ {
source searchableSurfaceToCell; source searchableSurfaceToCell;
surfaceType triSurfaceMesh; // The surface type surfaceType triSurfaceMesh; // Type of surface
surfaceName blob.obj; // Name for the IOobject surfaceName blob.obj; // Name for surface object
// or
surface triSurfaceMesh; // Same as surface type
} }
@ -192,6 +173,7 @@ cellSet_doc
source sphereToCell; source sphereToCell;
origin (0.2 0.2 -10); origin (0.2 0.2 -10);
radius 5.0; radius 5.0;
// optional // optional
innerRadius 1.0; innerRadius 1.0;
} }
@ -233,13 +215,8 @@ cellSet_doc
{ {
source zoneToCell; source zoneToCell;
zones (".*Zone"); // Names of cellZones, word or regex zones (".*Zone"); // Names of cellZones, word or regex
// OR zone ".*Zone"; // Name of cellZone, word or regex // or
zone ".*Zone"; // Name of cellZone, word or regex
//- Compat
// sourceInfo
// {
// name ".*Zone";
// }
} }
//- Cells attached to the outside of the input cellSet //- Cells attached to the outside of the input cellSet
@ -283,28 +260,17 @@ faceSet_doc
} }
//- Faces with centre within cylinder or cylinder annulus //- Faces with centres within cylinder or cylinder annulus
{ {
source cylinderToFace; source cylinderToFace;
p1 (0.2 0.2 -10); // start point on cylinder axis point1 (0.2 0.2 -10); // beg point on cylinder axis
p2 (0.2 0.2 0); // end point on cylinder axis point2 (0.2 0.2 0); // end point on cylinder axis
radius 5.0; radius 5.0;
// optional // optional
innerRadius 1.0; innerRadius 1.0;
} }
//- Faces with centre within cylinder annulus
// Can also simply use cylinderToCell
{
source cylinderAnnulusToFace;
p1 (0.2 0.2 -10); // start point on cylinder axis
p2 (0.2 0.2 0); // end point on cylinder axis
outerRadius 5.0;
innerRadius 1.0;
}
//- Copy elements from faceSet //- Copy elements from faceSet
{ {
source faceToFace; source faceToFace;
@ -333,12 +299,6 @@ faceSet_doc
patches ("patch.*"); patches ("patch.*");
// or // or
patch somePatch; patch somePatch;
// Compat
sourceInfo
{
name ".*Wall"; // Name of patch or patch group,
}
} }
@ -368,10 +328,8 @@ faceSet_doc
// be ignored) // be ignored)
{ {
source searchableSurfaceToFace; source searchableSurfaceToFace;
surfaceType triSurfaceMesh; // The surface type surfaceType triSurfaceMesh; // Type of surface
surfaceName blob.obj; // Name for the IOobject surfaceName blob.obj; // Name for surface object
// or
surface triSurfaceMesh; // Same as surface type
} }
@ -412,13 +370,8 @@ faceSet_doc
source zoneToFace; source zoneToFace;
zones (".*Zone"); // Names of faceZones, word or regex zones (".*Zone"); // Names of faceZones, word or regex
// OR zone ".*Zone"; // Name of faceZone, word or regex // or
zone ".*Zone"; // Name of faceZone, word or regex
// Compat
// sourceInfo
// {
// name ".*Zone1";
// }
} }
} }
@ -452,8 +405,8 @@ pointSet_doc
//- Points within cylinder or cylinder annulus //- Points within cylinder or cylinder annulus
{ {
source cylinderToPoint; source cylinderToPoint;
p1 (0.2 0.2 -10); // start point on cylinder axis point1 (0.2 0.2 -10); // beg point on cylinder axis
p2 (0.2 0.2 0); // end point on cylinder axis point2 (0.2 0.2 0); // end point on cylinder axis
radius 5.0; radius 5.0;
// optional // optional
innerRadius 1.0; innerRadius 1.0;
@ -494,13 +447,11 @@ pointSet_doc
} }
//- Points within a searchableSurface //- Cell centres within a searchableSurface
{ {
source searchableSurfaceToCell; source searchableSurfaceToCell;
surfaceType triSurfaceMesh; // The surface type surfaceType triSurfaceMesh; // Type of surface
surfaceName blob.obj; // Name for the IOobject surfaceName blob.obj; // Name for surface object
// or
surface triSurfaceMesh; // Same as surface type
} }
@ -516,7 +467,7 @@ pointSet_doc
//- Select based on surface //- Select based on surface
{ {
source surfaceToPoint; source searchableSurfaceToPoint;
file "geometry.stl"; file "geometry.stl";
nearDistance 0.1; // points near to surface nearDistance 0.1; // points near to surface
includeInside false; // points on inside of surface includeInside false; // points on inside of surface
@ -530,13 +481,8 @@ pointSet_doc
{ {
source zoneToPoint; source zoneToPoint;
zones (".*Zone"); // Names of pointZones, word or regex zones (".*Zone"); // Names of pointZones, word or regex
// OR zone ".*Zone"; // Name of pointZone, word or regex // or
zone ".*Zone"; // Name of pointZone, word or regex
//- Compat
// sourceInfo
// {
// name ".*Zone";
// }
} }
} }
@ -577,11 +523,8 @@ faceZoneSet_doc
//- Select based on surface. Orientation from normals on surface //- Select based on surface. Orientation from normals on surface
{ {
source searchableSurfaceToFaceZone; source searchableSurfaceToFaceZone;
surfaceType searchableSphere; surfaceType sphere; // Type of surface
surfaceName blob.obj; // Optional name if surface triSurfaceMesh surfaceName blob.obj; // Name for surface object
// or
surface searchableSphere; // Same as 'surfaceType'
// Parameters for surface // Parameters for surface
origin (0.05 0.05 0.005); origin (0.05 0.05 0.005);

View File

@ -855,8 +855,6 @@ DebugSwitches
scalarField 0; scalarField 0;
scaleSimilarity 0; scaleSimilarity 0;
scatterModel 0; scatterModel 0;
searchableBox 0;
searchableSurface 0;
sequential 0; sequential 0;
setUpdater 0; setUpdater 0;
sets 0; sets 0;

View File

@ -43,7 +43,7 @@ geometry
{ {
rotatingZone rotatingZone
{ {
type searchableCylinder; type cylinder;
point1 (0 0 -100); point1 (0 0 -100);
point2 (0 0 100); point2 (0 0 100);
radius $:backgroundMesh.radIn; radius $:backgroundMesh.radIn;
@ -51,7 +51,7 @@ geometry
fixed fixed
{ {
type searchableCylinder; type cylinder;
point1 (0 0 -100); point1 (0 0 -100);
point2 (0 0 100); point2 (0 0 100);
radius $:backgroundMesh.radOut; radius $:backgroundMesh.radOut;

View File

@ -43,7 +43,7 @@ geometry
{ {
rotatingZone rotatingZone
{ {
type searchableCylinder; type cylinder;
point1 (0 0 -100); point1 (0 0 -100);
point2 (0 0 100); point2 (0 0 100);
radius $:backgroundMesh.radIn; radius $:backgroundMesh.radIn;
@ -51,7 +51,7 @@ geometry
fixed fixed
{ {
type searchableCylinder; type cylinder;
point1 (0 0 -100); point1 (0 0 -100);
point2 (0 0 100); point2 (0 0 100);
radius $:backgroundMesh.radOut; radius $:backgroundMesh.radOut;

View File

@ -27,7 +27,7 @@ baffles
{ {
//- Select faces and orientation through a searchableSurface //- Select faces and orientation through a searchableSurface
type searchableSurface; type searchableSurface;
surface searchablePlate; surface plate;
origin (0.061 -0.3 -0.3); origin (0.061 -0.3 -0.3);
span (0.0 0.6 0.6); span (0.0 0.6 0.6);

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -23,42 +23,34 @@ actions
type cellSet; type cellSet;
action new; action new;
source boxToCell; source boxToCell;
sourceInfo
{
box (-0.1001 -100 -100 )(0.0 100 100); box (-0.1001 -100 -100 )(0.0 100 100);
} }
}
{ {
name leftSolid; name leftSolid;
type cellZoneSet; type cellZoneSet;
action new; action new;
source setToCellZone; source setToCellZone;
sourceInfo
{
set heaterCellSet; set heaterCellSet;
} }
}
// rightFluid // rightFluid
{ {
name rightFLuidCellSet; name rightFluidCellSet;
type cellSet; type cellSet;
action new; action new;
source boxToCell; source boxToCell;
sourceInfo
{
box (0.00 -100 -100 )(0.1001 100 100); box (0.00 -100 -100 )(0.1001 100 100);
} }
}
{ {
name rightFluid; name rightFluid;
type cellZoneSet; type cellZoneSet;
action new; action new;
source setToCellZone; source setToCellZone;
sourceInfo
{ set rightFluidCellSet;
set rightFLuidCellSet;
}
} }
); );

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Web: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -24,7 +24,6 @@ actions
action new; action new;
source zoneToCell; source zoneToCell;
zones (leftSolid); zones (leftSolid);
} }
{ {
name f1; name f1;
@ -33,7 +32,6 @@ actions
source cellToFace; source cellToFace;
option all; option all;
sets (c1); sets (c1);
} }
{ {
@ -42,7 +40,6 @@ actions
action new; action new;
source zoneToCell; source zoneToCell;
zones (rightFluid); zones (rightFluid);
} }
{ {
name f2; name f2;
@ -51,7 +48,6 @@ actions
source cellToFace; source cellToFace;
option all; option all;
sets (c2); sets (c2);
} }
); );

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -33,13 +33,13 @@ geometry
} }
rbox_f rbox_f
{ {
type searchableBox; type box;
min (0.7 0 0.7); min (0.7 0 0.7);
max (1.3 0.5 1.3); max (1.3 0.5 1.3);
} }
rbox_c rbox_c
{ {
type searchableBox; type box;
min (0 0 0); min (0 0 0);
max (2 1 2); max (2 1 2);
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,21 +21,17 @@ actions
type faceSet; type faceSet;
action new; action new;
source boxToFace; source boxToFace;
sourceInfo
{
box (-0.001 0.25 1.1)(0.001 0.75 1.3); box (-0.001 0.25 1.1)(0.001 0.75 1.3);
} }
}
{ {
name outlet; name outlet;
type faceSet; type faceSet;
action new; action new;
source boxToFace; source boxToFace;
sourceInfo
{
box (1.75 2.999 0.3)(2.25 3.001 0.5); box (1.75 2.999 0.3)(2.25 3.001 0.5);
} }
}
); );

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Web: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -72,7 +72,6 @@ actions
action new; action new;
source zoneToCell; source zoneToCell;
zones (rightSolid); zones (rightSolid);
} }
{ {
name f4; name f4;
@ -97,7 +96,6 @@ actions
source cellToFace; source cellToFace;
option all; option all;
sets (c5); sets (c5);
} }
); );

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -22,7 +22,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source searchableSurfaceToCell; source searchableSurfaceToCell;
surfaceType searchableCylinder; surfaceType cylinder;
point1 (-0.0032 0.037517 -0.058); point1 (-0.0032 0.037517 -0.058);
point2 (-0.015 0.037517 -0.058); point2 (-0.015 0.037517 -0.058);
radius 0.021; radius 0.021;

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Web: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -59,7 +59,6 @@ actions
// source cellToFace; // source cellToFace;
// option all; // option all;
// sets (c2); // sets (c2);
//
// } // }
// //
// { // {
@ -77,7 +76,6 @@ actions
// source cellToFace; // source cellToFace;
// option all; // option all;
// sets (c3); // sets (c3);
//
// } // }
); );

View File

@ -12,7 +12,7 @@ _planes
type patchEdge; type patchEdge;
axis xyz; axis xyz;
patches ( bottom ); patches ( bottom );
surfaceType searchablePlane; surfaceType plane;
planeType pointAndNormal; planeType pointAndNormal;
origin ( 0 0 1.57079632679 ); origin ( 0 0 1.57079632679 );
} }

View File

@ -22,7 +22,7 @@ geometry
{ {
cylinder cylinder
{ {
type searchableCylinder; type cylinder;
point1 (0 0 -0.00375); point1 (0 0 -0.00375);
point2 (0 0 0.00375); point2 (0 0 0.00375);
radius 0.06; radius 0.06;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -91,24 +91,13 @@ actions
set boundary1; set boundary1;
} }
{
name cylinderAnnulus1;
type cellSet;
action new;
source cylinderAnnulusToCell;
p1 (0.05 0.05 0);
p2 (0.05 0.05 0.01);
outerRadius 0.06;
innerRadius 0.01;
}
{ {
name cylinder1; name cylinder1;
type cellSet; type cellSet;
action new; action new;
source cylinderToCell; source cylinderToCell;
p1 (0.05 0.05 0); point1 (0.05 0.05 0);
p2 (0.05 0.05 0.01); point2 (0.05 0.05 0.01);
radius 0.06; radius 0.06;
innerRadius 0.01; innerRadius 0.01;
} }
@ -314,24 +303,13 @@ actions
set cylinder1; set cylinder1;
} }
{
name faceCylinderAnnulus1;
type faceSet;
action new;
source cylinderAnnulusToFace;
p1 (0.05 0.05 0);
p2 (0.05 0.05 0.01);
outerRadius 0.06;
innerRadius 0.01;
}
{ {
name faceCylinder1; name faceCylinder1;
type faceSet; type faceSet;
action new; action new;
source cylinderToFace; source cylinderToFace;
p1 (0.05 0.05 0); point1 (0.05 0.05 0);
p2 (0.05 0.05 0.01); point2 (0.05 0.05 0.01);
radius 0.06; radius 0.06;
innerRadius 0.01; innerRadius 0.01;
} }
@ -343,7 +321,6 @@ actions
source faceToFace; source faceToFace;
sets sets
( (
faceCylinderAnnulus1
faceCylinder1 faceCylinder1
); );
} }
@ -484,8 +461,8 @@ actions
type pointSet; type pointSet;
action new; action new;
source cylinderToPoint; source cylinderToPoint;
p1 (0.05 0.05 0); point1 (0.05 0.05 0);
p2 (0.05 0.05 0.01); point2 (0.05 0.05 0.01);
radius 0.06; radius 0.06;
innerRadius 0.01; innerRadius 0.01;
} }

View File

@ -60,8 +60,8 @@ subset
{ {
action subtract; action subtract;
source cylinder; source cylinder;
p1 (125 100 0); point1 (125 100 0);
p2 (125 100 100); point2 (125 100 100);
radius 20; radius 20;
} }
outlet outlet

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,19 +21,14 @@ actions
type faceSet; type faceSet;
action new; action new;
source boxToFace; source boxToFace;
sourceInfo
{
box (-100 -100 -100) (1.01 1.01 1.01); box (-100 -100 -100) (1.01 1.01 1.01);
} }
}
{ {
name f0; name f0;
type faceSet; type faceSet;
action delete; action delete;
source boundaryToFace; source boundaryToFace;
sourceInfo
{
}
} }
////- Remove internal faces; do boundary faces only ////- Remove internal faces; do boundary faces only
@ -43,40 +38,33 @@ actions
// action clear; // action clear;
//} //}
//- Add single external face //- Add single external face (min-z)
{ {
name f0; name f0;
type faceSet; type faceSet;
action add; action add;
source boxToFace; source boxToFace;
sourceInfo
{
// Minz face
box (-100 -100 -100) (1.01 1.01 0.01); box (-100 -100 -100) (1.01 1.01 0.01);
} }
}
{ {
name c0; name c0;
type cellSet; type cellSet;
action new; action new;
source nearestToCell; source nearestToCell;
sourceInfo
{
points ((0.5 0.5 0.5)); points ((0.5 0.5 0.5));
} }
}
{ {
name f0Zone; name f0Zone;
type faceZoneSet; type faceZoneSet;
action new; action new;
source setsToFaceZone; source setsToFaceZone;
sourceInfo
{
faceSet f0; faceSet f0;
cellSet c0; cellSet c0;
} }
}
); );
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,16 +21,15 @@ actions
type cellSet; type cellSet;
action new; action new;
source nearestToCell; source nearestToCell;
sourceInfo
{
points ((1.5 1.5 0.5)); points ((1.5 1.5 0.5));
} }
}
{ {
name f0; name f0;
type faceSet; type faceSet;
action new; action new;
source cellToFace; source cellToFace;
set c0; set c0;
option all; option all;
} }
@ -39,12 +38,10 @@ actions
type faceZoneSet; type faceZoneSet;
action new; action new;
source setsToFaceZone; source setsToFaceZone;
sourceInfo
{
faceSet f0; faceSet f0;
cellSet c0; cellSet c0;
} }
}
); );
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,8 +21,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source surfaceToCell; source surfaceToCell;
sourceInfo
{
file "<constant>/triSurface/flange.obj"; file "<constant>/triSurface/flange.obj";
outsidePoints ((-0.026 -0.0275 -0.0235)); outsidePoints ((-0.026 -0.0275 -0.0235));
includeCut true; includeCut true;
@ -31,7 +30,6 @@ actions
nearDistance -1; nearDistance -1;
curvature -100; curvature -100;
} }
}
); );

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -44,7 +44,7 @@ geometry
{ {
refinement1 refinement1
{ {
type searchableBox; type box;
min (-1 -2 -1); min (-1 -2 -1);
max ( 1 2 1); max ( 1 2 1);
} }
@ -52,7 +52,7 @@ geometry
// Shell for directional refinement // Shell for directional refinement
wakeBox wakeBox
{ {
type searchableBox; type box;
min (1.5 1 -0.5); min (1.5 1 -0.5);
max (3.5 2 0.5); max (3.5 2 0.5);
} }
@ -85,7 +85,7 @@ geometry
/* /*
sphere2 sphere2
{ {
type searchableSphere; type sphere;
centre (1.5 1.5 1.5); centre (1.5 1.5 1.5);
radius 1.03; radius 1.03;
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -25,8 +25,8 @@ actions
// box (0.015 0.010 0.015) (0.035 0.015 0.035); // box (0.015 0.010 0.015) (0.035 0.015 0.035);
source cylinderToCell; source cylinderToCell;
p1 (0.025 0.02 0.025); point1 (0.025 0.02 0.025);
p2 (0.025 0.022 0.025); point2 (0.025 0.022 0.025);
radius 0.01; radius 0.01;
} }
{ {

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -23,8 +23,8 @@ actions
action new; action new;
source cylinderToCell; source cylinderToCell;
p1 (0.025 1 0.025); point1 (0.025 1 0.025);
p2 (0.025 0.049 0.025); point2 (0.025 0.049 0.025);
radius 0.0015; radius 0.0015;
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -22,7 +22,7 @@ geometry
{ {
BoxRefinement_1 BoxRefinement_1
{ {
type searchableBox ; type box;
min (-3.8 -0.8 -0.2 ); min (-3.8 -0.8 -0.2 );
max (3.8 0.8 0.75 ); max (3.8 0.8 0.75 );
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,22 +21,18 @@ actions
type cellSet; type cellSet;
action new; action new;
source regionsToCell; source regionsToCell;
sourceInfo
{
insidePoints ((-6 0 0.0)); insidePoints ((-6 0 0.0));
} }
}
{ {
name c1; name c1;
type cellSet; type cellSet;
action new; action new;
source cellToCell; source cellToCell;
sourceInfo
{
set c0; set c0;
} }
}
{ {
name c1; name c1;
@ -49,23 +45,19 @@ actions
type cellSet; type cellSet;
action new; action new;
source regionsToCell; source regionsToCell;
sourceInfo
{
set c1; set c1;
insidePoints ((-3.4 0.1 0.1)); insidePoints ((-3.4 0.1 0.1));
} }
}
{ {
name c1; name c1;
type cellSet; type cellSet;
action delete; action delete;
source cellToCell; source cellToCell;
sourceInfo
{
set c2; set c2;
} }
}
); );

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,22 +21,16 @@ actions
type cellSet; type cellSet;
action new; action new;
source cellToCell; source cellToCell;
sourceInfo
{
set c1; set c1;
} }
}
{ {
name cHullProp; name cHullProp;
type cellSet; type cellSet;
action add; action add;
source cellToCell; source cellToCell;
sourceInfo
{
set c2; set c2;
} }
}
); );

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -39,14 +39,14 @@ geometry
BoxRefinement_1 BoxRefinement_1
{ {
type searchableBox ; type box;
min ( -3.60318 -0.20025 -0.039084 ); min ( -3.60318 -0.20025 -0.039084 );
max ( -3.20311 0.20025 0.395883 ); max ( -3.20311 0.20025 0.395883 );
} }
BoxRefinement_3_hub BoxRefinement_3_hub
{ {
type searchableBox ; type box;
min ( -3.54 -0.12 0.010); min ( -3.54 -0.12 0.010);
max ( -3.34 0.12 0.26); max ( -3.34 0.12 0.26);
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -46,7 +46,7 @@ geometry
BoxRefinement_3 BoxRefinement_3
{ {
type searchableBox ; type box;
min ( -4 -0.135 0.0085 ); min ( -4 -0.135 0.0085 );
max ( -3.3 0.135 0.26 ); max ( -3.3 0.135 0.26 );
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -23,8 +23,8 @@ regions
( (
cylinderToCell cylinderToCell
{ {
p1 (0 0 -5); point1 (0 0 -5);
p2 (0 0 0); point2 (0 0 0);
radius 1; radius 1;
fieldValues fieldValues
( (