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
80974a1a
Commit
80974a1a
authored
Sep 06, 2021
by
Michel Henry
Browse files
wip
parent
960d9115
Changes
1
Hide whitespace changes
Inline
Side-by-side
fluid/fluid_problem.c
View file @
80974a1a
...
...
@@ -122,7 +122,6 @@ void fluid_problem_node_force_volume(FluidProblem *problem, const double *soluti
}
double
f
[
D
],
dfdu
,
dfddp
;
particle_force_f
(
problem
,
f
,
&
dfdu
,
&
dfddp
,
s
,
ds
,
sold
,
c
,
dc
,
a
,
dt
,
iel
,
ip
);
if
(
ip
==
0
)
printf
(
"Force : %14.7f
\n
"
,
f
[
0
]);
if
(
!
local_vector
)
continue
;
...
...
@@ -372,6 +371,15 @@ static void particle_force_f(FluidProblem *problem, double *f, double *dfdu, dou
}
*
dfdu
=
gammastar
/
c
;
*
dfddp
=
gammastar
*
dt
/
mass
*
vol
;
//-vol;
if
(
ip
==
2
){
for
(
int
i
=
0
;
i
<
D
;
++
i
){
printf
(
"u : %14.7f
\n
"
,
u
[
i
]);
}
printf
(
"c : %14.7f
\n
"
,
c
);
printf
(
"f : %14.7f
\n
"
,
f
[
0
]);
printf
(
"dfdu : %14.7f
\n
"
,
*
dfdu
);
printf
(
"dfddp : %14.7f
\n
"
,
*
dfddp
);
}
}
static
void
fluid_problem_f
(
const
FluidProblem
*
problem
,
const
double
*
sol
,
double
dsol
[][
D
],
const
double
*
solold
,
const
double
dsolold
[][
D
],
const
double
*
mesh_velocity
,
const
double
c
,
const
double
*
dc
,
const
double
*
bf
,
const
double
cold
,
const
double
rho
,
const
double
mu
,
double
dt
,
int
iel
,
double
*
f0
,
double
f1
[][
D
],
double
f00
[],
double
f10
[][
D
],
double
f01
[][
D
],
double
f11
[][
D
][
D
])
{
...
...
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