Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
fc941467
Commit
fc941467
authored
May 06, 2020
by
Ned Coltman
Browse files
[test][rans][ransnc] clean up spacing style
parent
e4046356
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/freeflow/rans/problem.hh
View file @
fc941467
...
...
@@ -72,7 +72,6 @@ struct PipeLauferNILowReKEpsilon { using InheritsFrom = std::tuple<RANSModel, Lo
struct
PipeLauferNIKEpsilon
{
using
InheritsFrom
=
std
::
tuple
<
RANSModel
,
KEpsilonNI
>
;
};
}
// end namespace TTag
// the fluid system
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
RANSModel
>
...
...
@@ -181,9 +180,7 @@ public:
}
Scalar
sandGrainRoughnessAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
sandGrainRoughness_
;
}
{
return
sandGrainRoughness_
;
}
/*!
* \brief Returns the temperature [K] within the domain for the isothermal model.
...
...
@@ -224,7 +221,6 @@ public:
else
values
.
setDirichlet
(
Indices
::
temperatureIdx
);
#endif
// turbulence model-specific boundary types
setBcTypes_
(
values
,
globalPos
);
...
...
@@ -300,11 +296,9 @@ public:
:
time
()
/
initializationTime_
*
inletVelocity_
;
if
(
isOnWallAtPos
(
globalPos
))
values
[
Indices
::
velocityXIdx
]
=
0.0
;
#if NONISOTHERMAL
values
[
Indices
::
temperatureIdx
]
=
isOnWallAtPos
(
globalPos
)
?
wallTemperature_
:
inletTemperature_
;
#endif
// turbulence model-specific initial conditions
setInitialAtPos_
(
values
,
globalPos
);
return
values
;
...
...
@@ -313,25 +307,17 @@ public:
// \}
void
setTimeLoop
(
TimeLoopPtr
timeLoop
)
{
timeLoop_
=
timeLoop
;
}
{
timeLoop_
=
timeLoop
;
}
Scalar
time
()
const
{
return
timeLoop_
->
time
();
}
{
return
timeLoop_
->
time
();
}
private:
bool
isInlet_
(
const
GlobalPosition
&
globalPos
)
const
{
return
globalPos
[
0
]
<
this
->
gridGeometry
().
bBoxMin
()[
0
]
+
eps_
;
}
{
return
globalPos
[
0
]
<
this
->
gridGeometry
().
bBoxMin
()[
0
]
+
eps_
;
}
bool
isOutlet_
(
const
GlobalPosition
&
globalPos
)
const
{
return
globalPos
[
0
]
>
this
->
gridGeometry
().
bBoxMax
()[
0
]
-
eps_
;
}
{
return
globalPos
[
0
]
>
this
->
gridGeometry
().
bBoxMax
()[
0
]
-
eps_
;
}
//! Initial conditions for the komega, kepsilon and lowrekepsilon turbulence models
void
setInitialAtPos_
(
PrimaryVariables
&
values
,
const
GlobalPosition
&
globalPos
)
const
...
...
test/freeflow/ransnc/problem.hh
View file @
fc941467
...
...
@@ -177,9 +177,7 @@ public:
// \{
bool
isOnWallAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
globalPos
[
1
]
<
eps_
;
}
{
return
globalPos
[
1
]
<
eps_
;
}
/*!
* \brief Returns the temperature within the domain in [K].
...
...
@@ -273,7 +271,6 @@ public:
{
values
[
transportCompIdx
]
=
(
time
()
>
10.0
)
?
inletMoleFraction_
:
0.0
;
}
#if NONISOTHERMAL
if
(
time
()
>
10.0
&&
isOnWallAtPos
(
globalPos
))
{
...
...
@@ -317,7 +314,6 @@ public:
#if NONISOTHERMAL
values
[
Indices
::
temperatureIdx
]
=
temperature
();
#endif
// block velocity profile
values
[
Indices
::
velocityXIdx
]
=
0.0
;
if
(
!
isOnWallAtPos
(
globalPos
))
...
...
@@ -332,25 +328,17 @@ public:
// \}
void
setTimeLoop
(
TimeLoopPtr
timeLoop
)
{
timeLoop_
=
timeLoop
;
}
{
timeLoop_
=
timeLoop
;
}
Scalar
time
()
const
{
return
timeLoop_
->
time
();
}
{
return
timeLoop_
->
time
();
}
private:
bool
isInlet_
(
const
GlobalPosition
&
globalPos
)
const
{
return
globalPos
[
0
]
<
eps_
;
}
{
return
globalPos
[
0
]
<
eps_
;
}
bool
isOutlet_
(
const
GlobalPosition
&
globalPos
)
const
{
return
globalPos
[
0
]
>
this
->
gridGeometry
().
bBoxMax
()[
0
]
-
eps_
;
}
{
return
globalPos
[
0
]
>
this
->
gridGeometry
().
bBoxMax
()[
0
]
-
eps_
;
}
//! Initial conditions for the komega, kepsilon and lowrekepsilon turbulence models
void
setInitialAtPos_
(
PrimaryVariables
&
values
,
const
GlobalPosition
&
globalPos
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment