From ff272000cb88b30c1636dddaa9e8593ef2e1cbb8 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Wed, 30 May 2018 12:36:21 +0100 Subject: [PATCH] template cases: Updated to use surfaceFeatures rather than the deprecated surfaceFeatureExtract utility --- .../closedVolume/system/surfaceFeaturesDict | 38 ++++++++++++++++++ etc/templates/closedVolumeRotating/README | 2 +- .../system/surfaceFeaturesDict | 40 +++++++++++++++++++ .../system/surfaceFeaturesDict | 38 ++++++++++++++++++ .../inflowOutflow/system/surfaceFeaturesDict | 38 ++++++++++++++++++ etc/templates/inflowOutflowRotating/README | 2 +- .../system/surfaceFeaturesDict | 40 +++++++++++++++++++ 7 files changed, 196 insertions(+), 2 deletions(-) create mode 100644 etc/templates/closedVolume/system/surfaceFeaturesDict create mode 100644 etc/templates/closedVolumeRotating/system/surfaceFeaturesDict create mode 100644 etc/templates/compressibleInflowOutflow/system/surfaceFeaturesDict create mode 100644 etc/templates/inflowOutflow/system/surfaceFeaturesDict create mode 100644 etc/templates/inflowOutflowRotating/system/surfaceFeaturesDict diff --git a/etc/templates/closedVolume/system/surfaceFeaturesDict b/etc/templates/closedVolume/system/surfaceFeaturesDict new file mode 100644 index 000000000..415f47e68 --- /dev/null +++ b/etc/templates/closedVolume/system/surfaceFeaturesDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeaturesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces +( + "CAD.obj" +); + +includedAngle 150; + +subsetFeatures +{ + nonManifoldEdges yes; + openEdges yes; +} + +trimFeatures +{ + minElem 0; + minLen 0; +} + +writeObj yes; + +// ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/README b/etc/templates/closedVolumeRotating/README index 79c0fbf85..72086ca5e 100644 --- a/etc/templates/closedVolumeRotating/README +++ b/etc/templates/closedVolumeRotating/README @@ -29,7 +29,7 @@ Background Mesh Features ======== -+ Run surfaceFeatureExtract to extract features for explicit feature capturing ++ Run surfaceFeatures to extract features for explicit feature capturing Castellated Mesh ================ diff --git a/etc/templates/closedVolumeRotating/system/surfaceFeaturesDict b/etc/templates/closedVolumeRotating/system/surfaceFeaturesDict new file mode 100644 index 000000000..8447795da --- /dev/null +++ b/etc/templates/closedVolumeRotating/system/surfaceFeaturesDict @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeaturesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces +( + "fixed.obj" + "rotating.obj" + "rotatingZone.obj" +); + +includedAngle 150; + +subsetFeatures +{ + nonManifoldEdges yes; + openEdges yes; +} + +trimFeatures +{ + minElem 0; + minLen 0; +} + +writeObj yes; + +// ************************************************************************* // diff --git a/etc/templates/compressibleInflowOutflow/system/surfaceFeaturesDict b/etc/templates/compressibleInflowOutflow/system/surfaceFeaturesDict new file mode 100644 index 000000000..415f47e68 --- /dev/null +++ b/etc/templates/compressibleInflowOutflow/system/surfaceFeaturesDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeaturesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces +( + "CAD.obj" +); + +includedAngle 150; + +subsetFeatures +{ + nonManifoldEdges yes; + openEdges yes; +} + +trimFeatures +{ + minElem 0; + minLen 0; +} + +writeObj yes; + +// ************************************************************************* // diff --git a/etc/templates/inflowOutflow/system/surfaceFeaturesDict b/etc/templates/inflowOutflow/system/surfaceFeaturesDict new file mode 100644 index 000000000..415f47e68 --- /dev/null +++ b/etc/templates/inflowOutflow/system/surfaceFeaturesDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeaturesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces +( + "CAD.obj" +); + +includedAngle 150; + +subsetFeatures +{ + nonManifoldEdges yes; + openEdges yes; +} + +trimFeatures +{ + minElem 0; + minLen 0; +} + +writeObj yes; + +// ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/README b/etc/templates/inflowOutflowRotating/README index 250b5a331..ecb355b45 100644 --- a/etc/templates/inflowOutflowRotating/README +++ b/etc/templates/inflowOutflowRotating/README @@ -31,7 +31,7 @@ Background Mesh Features ======== -+ Run surfaceFeatureExtract to extract features for explicit feature capturing ++ Run surfaceFeatures to extract features for explicit feature capturing Castellated Mesh ================ diff --git a/etc/templates/inflowOutflowRotating/system/surfaceFeaturesDict b/etc/templates/inflowOutflowRotating/system/surfaceFeaturesDict new file mode 100644 index 000000000..8447795da --- /dev/null +++ b/etc/templates/inflowOutflowRotating/system/surfaceFeaturesDict @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeaturesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaces +( + "fixed.obj" + "rotating.obj" + "rotatingZone.obj" +); + +includedAngle 150; + +subsetFeatures +{ + nonManifoldEdges yes; + openEdges yes; +} + +trimFeatures +{ + minElem 0; + minLen 0; +} + +writeObj yes; + +// ************************************************************************* //