diff --git a/ExampleInput/building/0/U b/ExampleInput/building/0/U index a3200d3..ecd986d 100644 --- a/ExampleInput/building/0/U +++ b/ExampleInput/building/0/U @@ -20,54 +20,52 @@ internalField uniform (10 0 0); boundaryField { - inlet + bottom { - type digitalFilter; - - value $internalField; - - // filter function shape - // valid options are exponential and gaussian - // default to exponential - filterShape exponential; - - // virtual grid spacing to mesh size ratio - // should be no smaller than 1 - // default to one - gridFactor 1; - - // filter width to length scale ratio - // should be a positive even bumber no smaller than 8 - // default to 8 - filterFactor 8; + type syntheticEddie; + filterShape gaussian; + eddieDensity 1; + intersection ( 1 0 0 ); + yOffset 0; + zOffset 0; + value uniform (0 0 0); } - outlet + cylinder { - type zeroGradient; + type fixedValue; + value uniform (0 0 0); } - cylinder + inlet { - type fixedValue; - value uniform (0 0 0); + filterFactor 4; + filterShape gaussian; + gridFactor 1; + intersection ( 1 0 0 ); + type digitalFilter; + value $internalField; + yOffset 0; + zOffset 0; } - top + outlet { - type slip; + type zeroGradient; } - bottom + side { - type fixedValue; - value uniform (0 0 0); + type slip; } - side + top { - type slip; + type slip; } + } // ************************************************************************* // + + diff --git a/ExampleInput/building/controlDict b/ExampleInput/building/controlDict new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ExampleInput/building/controlDict @@ -0,0 +1 @@ + diff --git a/widgets/exportwidget.cpp b/widgets/exportwidget.cpp index da581c1..769de32 100644 --- a/widgets/exportwidget.cpp +++ b/widgets/exportwidget.cpp @@ -259,7 +259,7 @@ void ExportWidget::exportUFile(QString fileName) break; case 1: - out << " type syntheticEddie;" << endl; + out << " type syntheticEddy;" << endl; switch (int(theParameters.value("shapeFunction"))) { case 0: out << " filterShape gaussian;" << endl; @@ -273,7 +273,7 @@ void ExportWidget::exportUFile(QString fileName) default: out << " filterShape gaussian;" << endl; } - out << " eddieDensity " << theParameters.value("eddieDensity") << ";" << endl; + out << " eddyDensity " << theParameters.value("eddyDensity") << ";" << endl; break; default: @@ -291,7 +291,7 @@ void ExportWidget::exportUFile(QString fileName) if (theMap.contains("filterShape")) theMap.remove("filterShape"); if (theMap.contains("filterFactor")) theMap.remove("filterFactor"); if (theMap.contains("gridFactor")) theMap.remove("gridFactor"); - if (theMap.contains("eddieDensity")) theMap.remove("eddieDensity"); + if (theMap.contains("eddyDensity")) theMap.remove("eddyDensity"); if (theMap.contains("intersection")) theMap.remove("intersection"); if (theMap.contains("yOffset")) theMap.remove("yOffset"); diff --git a/widgets/inflowparameterwidget.cpp b/widgets/inflowparameterwidget.cpp index f520811..c438f60 100644 --- a/widgets/inflowparameterwidget.cpp +++ b/widgets/inflowparameterwidget.cpp @@ -258,7 +258,7 @@ void InflowParameterWidget::sendParameterMap(void) data.insert("filterFactor",ui->filterFactor->value()); data.insert("velocityShape",ui->velocityShape->currentIndex()); - data.insert("eddieDensity",ui->eddieDensity->value()); + data.insert("eddyDensity",ui->eddyDensity->value()); data.insert("intersection0",ui->dir1->value()); data.insert("intersection1",ui->dir2->value()); diff --git a/widgets/inflowparameterwidget.ui b/widgets/inflowparameterwidget.ui index 2de9cf3..6a66669 100644 --- a/widgets/inflowparameterwidget.ui +++ b/widgets/inflowparameterwidget.ui @@ -154,7 +154,7 @@ - 1 + 0 @@ -272,7 +272,7 @@ - + 1.000000000000000