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
fa7ec368
Commit
fa7ec368
authored
May 15, 2018
by
Matthieu Constant
Browse files
local matrix
parent
86d4fb24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fluid_problem.c
View file @
fa7ec368
...
...
@@ -355,7 +355,7 @@ static void fluid_problem_assemble_system(FluidProblem *problem, double *rhs, co
for
(
int
j
=
0
;
j
<
DIMENSION
;
++
j
)
{
int
U
=
j
;
LOCAL_MATRIX
(
U
,
P
)
+=
-
jw
*
dphii
[
j
]
*
phij
;
LOCAL_MATRIX
(
P
,
U
)
+=
jw
*
phii
*
dphij
[
j
];
LOCAL_MATRIX
(
Q
,
U
)
+=
jw
*
phii
*
dphij
[
j
];
double
utau
=
0
;
double
dphisigmadq
=
0
;
double
dutaudq
=
0
;
...
...
@@ -374,9 +374,9 @@ static void fluid_problem_assemble_system(FluidProblem *problem, double *rhs, co
LOCAL_MATRIX
(
U
,
U
)
+=
jw
*
mu
[
ff
]
*
2
*
0
.
5
*
dphiidtau
+
jw
*
rho
[
ff
]
*
phii
*
(
phij
/
dt
+
phij
/
q
*
divu
+
udtau
/
q
);
LOCAL_MATRIX
(
U
,
Q
)
+=
jw
*
rho
[
ff
]
*
phii
*
(
-
u
[
j
]
*
divu
*
phij
/
(
q
*
q
)
-
utau
*
phij
/
(
q
*
q
)
+
dutaudq
/
q
)
+
jw
*
dphisigmadq
;
}
LOCAL_MATRIX
(
P
,
P
)
+=
jw
*
epsilon
*
dphiidphij
;
LOCAL_MATRIX
(
Q
,
Q
)
+=
-
jw
*
phii
*
phij
;
LOCAL_MATRIX
(
P
,
Q
)
+=
jw
*
phii
*
phij
/
dt
;
LOCAL_MATRIX
(
Q
,
P
)
+=
jw
*
epsilon
*
dphiidphij
;
LOCAL_MATRIX
(
P
,
Q
)
+=
-
jw
*
phii
*
phij
;
LOCAL_MATRIX
(
Q
,
Q
)
+=
jw
*
phii
*
phij
/
dt
;
}
}
}
...
...
Write
Preview
Supports
Markdown
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