Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean-Noël Grad
waLBerla
Commits
b9b3b011
Commit
b9b3b011
authored
Sep 13, 2021
by
Jean-Noël Grad
Browse files
Make offset visible with an impulsion
parent
e15e8b6d
Pipeline
#34181
failed with stages
in 349 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/showcases/LeesEdwards/LeesEdwards.cpp
View file @
b9b3b011
...
...
@@ -161,6 +161,18 @@ int main(int argc, char** argv)
for
(
auto
&
block
:
*
blocks
)
setterSweep
(
&
block
);
// create impulsion
{
auto
&
block
=
*
(
blocks
->
begin
());
auto
pdf_field
=
block
.
template
getData
<
PdfField_T
>(
pdfFieldID
);
auto
const
dim_x
=
blocks
->
getNumberOfXCells
(
block
);
auto
const
dim_y
=
blocks
->
getNumberOfYCells
(
block
);
Cell
const
cell1
{
dim_x
/
2
,
dim_y
-
4
,
0u
};
Cell
const
cell2
{
dim_x
/
2
,
dim_y
-
5
,
0u
};
pdf_field
->
get
(
cell1
,
cell_idx_t
(
2
))
=
real_t
(
1e8
);
pdf_field
->
get
(
cell2
,
cell_idx_t
(
2
))
=
real_t
(
1e8
);
}
// create time loop
SweepTimeloop
timeloop
(
blocks
->
getBlockStorage
(),
timesteps
);
...
...
apps/showcases/LeesEdwards/LeesEdwards.prm
View file @
b9b3b011
Parameters
{
timesteps
1000
1;
vtkWriteFrequency
500
;
timesteps
5
1;
vtkWriteFrequency
1
;
remainingTimeLoggerFrequency 3; // in seconds
offset 1
0
;
offset 1
6
;
}
DomainSetup
...
...
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