Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fluidparticles
MigFlow
Commits
5a7790ca
Commit
5a7790ca
authored
Jun 14, 2018
by
Matthieu Constant
Browse files
un petit progres
parent
3a2911b5
Pipeline
#3730
failed with stage
in 16 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/2fluids.tex
View file @
5a7790ca
...
...
@@ -104,8 +104,8 @@ Balance equations resulting from applying Navier-Stokes equations to a control v
\begin{align*}
N
_
f
\times\left\lbrace
\begin{aligned}
\rho
_
k
\dpartial
{
\ub
}{
t
}
+
\rho
_
k
\nb\cdot\left
(
\dfrac
{
\ub\ub
}{
q
_
k
}
\right
)
\\
\dpartial
{
q
}{
t
}
+
\nb\cdot\ub
+
\varepsilon\nb\cdot
\bm
{
r
}_
k
\end{aligned}
\right
.
&
\begin{aligned}
&
=-q
_
k
\nb
p+
\nb\cdot\taub
+q
_
k
\rho
_
k
\gb\phantom
{
\dpartial
{
\ub
}{
t
}}
\\
\dpartial
{
q
_
k
}{
t
}
+
\nb\cdot\ub
+
\varepsilon\nb\cdot
\bm
{
r
}_
k
\end{aligned}
\right
.
&
\begin{aligned}
&
=-q
_
k
\nb
p+
\nb\cdot
(q
_
k
\taub
)
+q
_
k
\rho
_
k
\gb\phantom
{
\dpartial
{
\ub
}{
t
}}
\\
&
=0
\end{aligned}
\\
1-c-
\sum
_{
k=1
}^{
N
_
f
}
q
_
k
&
\begin{aligned}
&
=0
\phantom
{
\dpartial
{
q
}{
t
}}
\end{aligned}
\end{align*}
...
...
src/fluid_problem.c
View file @
5a7790ca
...
...
@@ -351,7 +351,7 @@ static void fluid_problem_f(FluidProblem *problem, double *f0, double *f1, doubl
utau
[
i
]
+=
u
[
j
]
*
tau
[
i
][
j
];
}
}
f0
[
Q
]
=
(
q
-
qold
)
/
dt
;
f0
[
Q
]
=
(
q
-
qold
)
/
dt
+
epsilonp
*
dq
[
1
]
*
rho
*
problem
->
g
;
f0
[
P
]
-=
q
;
for
(
int
i
=
0
;
i
<
D
;
++
i
)
{
//f0[Q] += epsilonp*dq[i]*dp[i];
...
...
testcases/separation/rest.py
View file @
5a7790ca
...
...
@@ -65,7 +65,7 @@ p = 6
strong_boundaries
=
[
#("Top",u0,u0,0),
#("Top",u1,u1,0),
(
"PtFix"
,
q
0
,
p
,
0
),
(
"PtFix"
,
q
1
,
p
,
0
),
#("Bottom",u0,u0,0),
#("Bottom",u1,u1,0),
(
"Left"
,
u0
,
u0
,
0
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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