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

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

View File

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

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Web: www.openfoam.com |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -23,35 +23,31 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (leftSolid);
zones (leftSolid);
}
{
{
name f1;
type faceSet;
action new;
source cellToFace;
option all;
sets (c1);
sets (c1);
}
{
{
name c2;
type cellSet;
action new;
source zoneToCell;
zones (rightFluid);
zones (rightFluid);
}
{
{
name f2;
type faceSet;
action new;
source cellToFace;
option all;
sets (c2);
sets (c2);
}
);

View File

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

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -21,20 +21,16 @@ actions
type faceSet;
action new;
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;
type faceSet;
action new;
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++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Web: www.openfoam.com |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -23,7 +23,7 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (bottomAir);
zones (bottomAir);
}
{
name f1;
@ -31,7 +31,7 @@ actions
action new;
source cellToFace;
option all;
sets (c1);
sets (c1);
}
{
@ -39,7 +39,7 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (heater);
zones (heater);
}
{
name f2;
@ -47,7 +47,7 @@ actions
action new;
source cellToFace;
option all;
sets (c2);
sets (c2);
}
{
@ -55,7 +55,7 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (leftSolid);
zones (leftSolid);
}
{
name f3;
@ -63,7 +63,7 @@ actions
action new;
source cellToFace;
option all;
sets (c3);
sets (c3);
}
{
@ -71,8 +71,7 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (rightSolid);
zones (rightSolid);
}
{
name f4;
@ -80,7 +79,7 @@ actions
action new;
source cellToFace;
option all;
sets (c4);
sets (c4);
}
{
@ -88,7 +87,7 @@ actions
type cellSet;
action new;
source zoneToCell;
zones (topAir);
zones (topAir);
}
{
name f5;
@ -96,8 +95,7 @@ actions
action new;
source cellToFace;
option all;
sets (c5);
sets (c5);
}
);

View File

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

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Web: www.openfoam.com |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -23,25 +23,25 @@ actions
// type cellSet;
// action new;
// source zoneToCell;
// zones (domain0);
// zones (domain0);
//
// }
{
{
name c1;
type cellSet;
action new;
source faceZoneToCell;//zoneToCel;
option master;
zones (domain0_to_v_CPU);
zones (domain0_to_v_CPU);
}
{
{
name c1;
type cellSet;
action add;
source faceZoneToCell;//zoneToCel;
option slave;
zones (domain0_to_v_CPU);
zones (domain0_to_v_CPU);
}
// {
@ -49,35 +49,33 @@ actions
// type cellSet;
// action new;
// source zoneToCell;
// zones (v_CPU);
// zones (v_CPU);
//
// }
// {
// {
// name f2;
// type faceSet;
// action new;
// source cellToFace;
// option all;
// sets (c2);
//
// sets (c2);
// }
//
// {
// {
// name c3;
// type cellSet;
// action new;
// source zoneToCell;
// zones (v_fins);
// zones (v_fins);
//
// }
// {
// {
// name f3;
// type faceSet;
// action new;
// source cellToFace;
// option all;
// sets (c3);
//
// sets (c3);
// }
);

View File

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

View File

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

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -92,25 +92,14 @@ actions
}
{
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;
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;
name cylinder1;
type cellSet;
action new;
source cylinderToCell;
point1 (0.05 0.05 0);
point2 (0.05 0.05 0.01);
radius 0.06;
innerRadius 0.01;
}
{
@ -315,25 +304,14 @@ actions
}
{
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;
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;
name faceCylinder1;
type faceSet;
action new;
source cylinderToFace;
point1 (0.05 0.05 0);
point2 (0.05 0.05 0.01);
radius 0.06;
innerRadius 0.01;
}
{
@ -343,7 +321,6 @@ actions
source faceToFace;
sets
(
faceCylinderAnnulus1
faceCylinder1
);
}
@ -484,8 +461,8 @@ actions
type pointSet;
action new;
source cylinderToPoint;
p1 (0.05 0.05 0);
p2 (0.05 0.05 0.01);
point1 (0.05 0.05 0);
point2 (0.05 0.05 0.01);
radius 0.06;
innerRadius 0.01;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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