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,17 +48,17 @@ 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);
} }
// 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);
} }
sphere.stl sphere.stl
@ -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,24 +75,19 @@ 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;
// }
} }
//- values of field within certain range //- values of field within certain range
{ {
source fieldToCell; source fieldToCell;
field U; // Note: uses mag(U) since volVectorField field U; // Note: uses mag(U) since volVectorField
min 0.1; min 0.1;
max 0.5; max 0.5;
} }
@ -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
@ -278,33 +255,22 @@ faceSet_doc
// or // or
set c0; // Name of cellSet set c0; // Name of cellSet
option all; // All faces of cells option all; // All faces of cells
//option both; // Only faces with owner+neighbour in cellSet //option both; // Only faces with owner+neighbour in cellSet
} }
//- 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,
}
} }
@ -367,11 +327,9 @@ faceSet_doc
// (if surface is not closed a warning will be given and surface will // (if surface is not closed a warning will be given and surface will
// 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,8 +467,8 @@ 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
// (requires closed surface with consistent // (requires closed surface with consistent
@ -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";
// }
} }
} }
@ -576,12 +522,9 @@ 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
@ -23,35 +23,31 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (leftSolid); zones (leftSolid);
} }
{ {
name f1; name f1;
type faceSet; type faceSet;
action new; action new;
source cellToFace; source cellToFace;
option all; option all;
sets (c1); sets (c1);
} }
{ {
name c2; name c2;
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (rightFluid); zones (rightFluid);
} }
{ {
name f2; name f2;
type faceSet; type faceSet;
action new; action new;
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,20 +21,16 @@ 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
@ -23,7 +23,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (bottomAir); zones (bottomAir);
} }
{ {
name f1; name f1;
@ -31,7 +31,7 @@ actions
action new; action new;
source cellToFace; source cellToFace;
option all; option all;
sets (c1); sets (c1);
} }
{ {
@ -39,7 +39,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (heater); zones (heater);
} }
{ {
name f2; name f2;
@ -47,7 +47,7 @@ actions
action new; action new;
source cellToFace; source cellToFace;
option all; option all;
sets (c2); sets (c2);
} }
{ {
@ -55,7 +55,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (leftSolid); zones (leftSolid);
} }
{ {
name f3; name f3;
@ -63,7 +63,7 @@ actions
action new; action new;
source cellToFace; source cellToFace;
option all; option all;
sets (c3); sets (c3);
} }
{ {
@ -71,8 +71,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (rightSolid); zones (rightSolid);
} }
{ {
name f4; name f4;
@ -80,7 +79,7 @@ actions
action new; action new;
source cellToFace; source cellToFace;
option all; option all;
sets (c4); sets (c4);
} }
{ {
@ -88,7 +87,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source zoneToCell; source zoneToCell;
zones (topAir); zones (topAir);
} }
{ {
name f5; name f5;
@ -96,8 +95,7 @@ actions
action new; action new;
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
@ -23,25 +23,25 @@ actions
// type cellSet; // type cellSet;
// action new; // action new;
// source zoneToCell; // source zoneToCell;
// zones (domain0); // zones (domain0);
// //
// } // }
{ {
name c1; name c1;
type cellSet; type cellSet;
action new; action new;
source faceZoneToCell;//zoneToCel; source faceZoneToCell;//zoneToCel;
option master; option master;
zones (domain0_to_v_CPU); zones (domain0_to_v_CPU);
} }
{ {
name c1; name c1;
type cellSet; type cellSet;
action add; action add;
source faceZoneToCell;//zoneToCel; source faceZoneToCell;//zoneToCel;
option slave; option slave;
zones (domain0_to_v_CPU); zones (domain0_to_v_CPU);
} }
// { // {
@ -49,35 +49,33 @@ actions
// type cellSet; // type cellSet;
// action new; // action new;
// source zoneToCell; // source zoneToCell;
// zones (v_CPU); // zones (v_CPU);
// //
// } // }
// { // {
// name f2; // name f2;
// type faceSet; // type faceSet;
// action new; // action new;
// source cellToFace; // source cellToFace;
// option all; // option all;
// sets (c2); // sets (c2);
//
// } // }
// //
// { // {
// name c3; // name c3;
// type cellSet; // type cellSet;
// action new; // action new;
// source zoneToCell; // source zoneToCell;
// zones (v_fins); // zones (v_fins);
// //
// } // }
// { // {
// name f3; // name f3;
// type faceSet; // type faceSet;
// action new; // action new;
// 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 | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -92,25 +92,14 @@ actions
} }
{ {
name cylinderAnnulus1; name cylinder1;
type cellSet; type cellSet;
action new; action new;
source cylinderAnnulusToCell; 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);
outerRadius 0.06; radius 0.06;
innerRadius 0.01; innerRadius 0.01;
}
{
name cylinder1;
type cellSet;
action new;
source cylinderToCell;
p1 (0.05 0.05 0);
p2 (0.05 0.05 0.01);
radius 0.06;
innerRadius 0.01;
} }
{ {
@ -315,25 +304,14 @@ actions
} }
{ {
name faceCylinderAnnulus1; name faceCylinder1;
type faceSet; type faceSet;
action new; action new;
source cylinderAnnulusToFace; 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);
outerRadius 0.06; radius 0.06;
innerRadius 0.01; innerRadius 0.01;
}
{
name faceCylinder1;
type faceSet;
action new;
source cylinderToFace;
p1 (0.05 0.05 0);
p2 (0.05 0.05 0.01);
radius 0.06;
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,17 +38,14 @@ 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
{ box (-100 -100 -100) (1.01 1.01 0.01);
// Minz face
box (-100 -100 -100) (1.01 1.01 0.01);
}
} }
{ {
@ -61,21 +53,17 @@ actions
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,11 +38,9 @@ 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,16 +21,14 @@ 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; includeInside true;
includeInside true; includeOutside false;
includeOutside false; 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 );
} }
@ -36,7 +36,7 @@ castellatedMeshControls
nCellsBetweenLevels 4; nCellsBetweenLevels 4;
maxLoadUnbalance 0.1; maxLoadUnbalance 0.1;
allowFreeStandingZoneFaces true; allowFreeStandingZoneFaces true;
resolveFeatureAngle 30; resolveFeatureAngle 30;
features features
( (
); );

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,10 +21,8 @@ actions
type cellSet; type cellSet;
action new; action new;
source regionsToCell; source regionsToCell;
sourceInfo
{ insidePoints ((-6 0 0.0));
insidePoints ((-6 0 0.0));
}
} }
{ {
@ -32,10 +30,8 @@ actions
type cellSet; type cellSet;
action new; action new;
source cellToCell; source cellToCell;
sourceInfo
{ set c0;
set c0;
}
} }
{ {
@ -49,11 +45,9 @@ 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));
}
} }
{ {
@ -61,10 +55,8 @@ actions
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,10 +21,7 @@ actions
type cellSet; type cellSet;
action new; action new;
source cellToCell; source cellToCell;
sourceInfo set c1;
{
set c1;
}
} }
{ {
@ -32,10 +29,7 @@ actions
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,9 +23,9 @@ 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
( (
volScalarFieldValue DT 1e6 volScalarFieldValue DT 1e6