From 75c5f9f0e324fea737534f784423cf966473d31b Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sat, 18 Jul 2015 18:58:14 +0100 Subject: [PATCH 1/3] surfaceFeatureExtractDict templates: added trimFeatures options --- etc/caseDicts/surface/surfaceFeatureExtractDict.cfg | 6 ++++++ etc/templates/closedVolume/system/surfaceFeatureExtractDict | 6 ++++++ .../inflowOutflow/system/surfaceFeatureExtractDict | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/etc/caseDicts/surface/surfaceFeatureExtractDict.cfg b/etc/caseDicts/surface/surfaceFeatureExtractDict.cfg index 3f832b92..6bed80ba 100644 --- a/etc/caseDicts/surface/surfaceFeatureExtractDict.cfg +++ b/etc/caseDicts/surface/surfaceFeatureExtractDict.cfg @@ -28,6 +28,12 @@ subsetFeatures openEdges yes; } +trimFeatures +{ + minElem 0; + minLen 0; +} + writeObj yes; // ************************************************************************* // diff --git a/etc/templates/closedVolume/system/surfaceFeatureExtractDict b/etc/templates/closedVolume/system/surfaceFeatureExtractDict index fab26191..96785f5e 100644 --- a/etc/templates/closedVolume/system/surfaceFeatureExtractDict +++ b/etc/templates/closedVolume/system/surfaceFeatureExtractDict @@ -29,6 +29,12 @@ CAD.obj openEdges yes; } + trimFeatures + { + minElem 0; + minLen 0; + } + writeObj yes; } diff --git a/etc/templates/inflowOutflow/system/surfaceFeatureExtractDict b/etc/templates/inflowOutflow/system/surfaceFeatureExtractDict index fab26191..96785f5e 100644 --- a/etc/templates/inflowOutflow/system/surfaceFeatureExtractDict +++ b/etc/templates/inflowOutflow/system/surfaceFeatureExtractDict @@ -29,6 +29,12 @@ CAD.obj openEdges yes; } + trimFeatures + { + minElem 0; + minLen 0; + } + writeObj yes; } From bb146c867bf2ddaf59bc1f5feb2fe84da8c14d7f Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Mon, 20 Jul 2015 13:28:34 +0100 Subject: [PATCH 2/3] Template case files: added model coeffs to transportProperties --- .../constant/transportProperties | 32 +++++++++++++++++++ .../constant/transportProperties | 32 +++++++++++++++++++ .../constant/transportProperties | 32 +++++++++++++++++++ .../constant/transportProperties | 32 +++++++++++++++++++ 4 files changed, 128 insertions(+) diff --git a/etc/templates/axisymmetricJet/constant/transportProperties b/etc/templates/axisymmetricJet/constant/transportProperties index ac1c91ae..25f0e2aa 100644 --- a/etc/templates/axisymmetricJet/constant/transportProperties +++ b/etc/templates/axisymmetricJet/constant/transportProperties @@ -18,4 +18,36 @@ transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05; +BirdCarreauCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +CrossPowerLawCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +powerLawCoeffs +{ + nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03; + nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + +HerschelBulkleyCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + // ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/constant/transportProperties b/etc/templates/closedVolumeRotating/constant/transportProperties index ac1c91ae..25f0e2aa 100644 --- a/etc/templates/closedVolumeRotating/constant/transportProperties +++ b/etc/templates/closedVolumeRotating/constant/transportProperties @@ -18,4 +18,36 @@ transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05; +BirdCarreauCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +CrossPowerLawCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +powerLawCoeffs +{ + nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03; + nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + +HerschelBulkleyCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + // ************************************************************************* // diff --git a/etc/templates/inflowOutflow/constant/transportProperties b/etc/templates/inflowOutflow/constant/transportProperties index ac1c91ae..25f0e2aa 100644 --- a/etc/templates/inflowOutflow/constant/transportProperties +++ b/etc/templates/inflowOutflow/constant/transportProperties @@ -18,4 +18,36 @@ transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05; +BirdCarreauCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +CrossPowerLawCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +powerLawCoeffs +{ + nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03; + nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + +HerschelBulkleyCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + // ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/constant/transportProperties b/etc/templates/inflowOutflowRotating/constant/transportProperties index ac1c91ae..25f0e2aa 100644 --- a/etc/templates/inflowOutflowRotating/constant/transportProperties +++ b/etc/templates/inflowOutflowRotating/constant/transportProperties @@ -18,4 +18,36 @@ transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05; +BirdCarreauCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +CrossPowerLawCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05; + m m [ 0 0 1 0 0 0 0 ] 1; + n n [ 0 0 0 0 0 0 0 ] 0.5; +} + +powerLawCoeffs +{ + nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03; + nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + +HerschelBulkleyCoeffs +{ + nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03; + tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1; + k k [ 0 2 -1 0 0 0 0 ] 1e-05; + n n [ 0 0 0 0 0 0 0 ] 1; +} + // ************************************************************************* // From fa54db85e23df94ae9ae8180ce9a6ed9d500960a Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Wed, 5 Aug 2015 18:44:26 +0100 Subject: [PATCH 3/3] inflowOutflow templates: added inlet and outlet groups in snappyHexMeshDict --- etc/templates/inflowOutflow/system/snappyHexMeshDict | 12 ++++++++++-- .../inflowOutflowRotating/system/snappyHexMeshDict | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/etc/templates/inflowOutflow/system/snappyHexMeshDict b/etc/templates/inflowOutflow/system/snappyHexMeshDict index 1d033ce2..ffb13c1b 100644 --- a/etc/templates/inflowOutflow/system/snappyHexMeshDict +++ b/etc/templates/inflowOutflow/system/snappyHexMeshDict @@ -53,13 +53,21 @@ castellatedMeshControls { level (2 2); - patchInfo { type patch; } + patchInfo + { + type patch; + inGroups (inlet); + } } { level (2 2); - patchInfo { type patch; } + patchInfo + { + type patch; + inGroups (outlet); + } } } } diff --git a/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict b/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict index 5693250b..a2231867 100644 --- a/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict +++ b/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict @@ -66,13 +66,21 @@ castellatedMeshControls { level (2 2); - patchInfo { type patch; } + patchInfo + { + type patch; + inGroups (inlet); + } } { level (2 2); - patchInfo { type patch; } + patchInfo + { + type patch; + inGroups (outlet); + } } } }