Skip to content

Commit

Permalink
Fixing typos in eddyDensity keyword(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmackenz committed Jul 3, 2019
1 parent 2432728 commit 80587d2
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 37 deletions.
60 changes: 29 additions & 31 deletions ExampleInput/building/0/U
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

// ************************************************************************* //


1 change: 1 addition & 0 deletions ExampleInput/building/controlDict
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 3 additions & 3 deletions widgets/exportwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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:
Expand All @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion widgets/inflowparameterwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions widgets/inflowparameterwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<item row="1" column="0" colspan="2">
<widget class="QStackedWidget" name="stackedMethods">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="digitalFilterPage">
<layout class="QGridLayout" name="gridLayout_5" columnstretch="1,3">
Expand Down Expand Up @@ -272,7 +272,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="eddieDensity">
<widget class="QDoubleSpinBox" name="eddyDensity">
<property name="minimum">
<double>1.000000000000000</double>
</property>
Expand Down

0 comments on commit 80587d2

Please sign in to comment.