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
91e721f3
Commit
91e721f3
authored
Nov 07, 2018
by
Matthieu Constant
Browse files
old stab
parent
81f90f75
Pipeline
#4544
passed with stage
in 1 minute and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fluid/fluid_problem.c
View file @
91e721f3
...
...
@@ -565,7 +565,7 @@ static void fluid_problem_f(FluidProblem *problem, double *f0, double *f1, doubl
f1
[(
U
+
i
)
*
D
+
j
]
=
-
rho
*
u
[
i
]
*
u
[
j
]
/
c
+
mu
*
(
tau
[
i
][
j
]
+
tau
[
j
][
i
])
+
(
i
==
j
?
-
p
:
0
)
+
R
*
u
[
j
]
*
rho
*
taup
;
}
f1
[(
U
+
i
)
*
D
+
i
]
+=
divu
*
tauc
*
rho
;
f1
[
P
*
D
+
i
]
=
-
u
[
i
]
+
5
*
taup
*
R
;
f1
[
P
*
D
+
i
]
=
-
u
[
i
]
+
0
.
025
*
dp
[
i
]
;
if
(
problem
->
n_fluids
==
2
){
f1
[
P
*
D
+
i
]
+=
taua
*
(
divu
+
(
c
-
cold
)
/
dt
)
*
u
[
i
];
f1
[
A
*
D
+
i
]
=
-
u
[
i
]
*
a
+
taua
*
Ra
*
u
[
i
]
+
taup
*
R
*
a
+
da
[
i
]
*
(
1e-7
+
extraa
);
...
...
@@ -883,7 +883,7 @@ static void fluid_problem_assemble_system(FluidProblem *problem, double *rhs, co
}
}
node_force_volume
(
problem
,
solution_old
,
dt
,
all_local_vector
,
all_local_matrix
,
reduced_gravity
);
//
compute_weak_boundary_conditions(problem, dt, all_local_vector, all_local_matrix);
compute_weak_boundary_conditions
(
problem
,
dt
,
all_local_vector
,
all_local_matrix
);
fluid_problem_volume
(
problem
,
solution_old
,
dt
,
all_local_vector
,
all_local_matrix
,
reduced_gravity
);
for
(
int
iel
=
0
;
iel
<
mesh
->
n_elements
;
++
iel
)
{
double
*
local_vector
=
&
all_local_vector
[
local_size
*
iel
];
...
...
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