Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
c57c106a
Commit
c57c106a
authored
Nov 28, 2018
by
Nils Kohl
🌝
Browse files
Added particle rank to VTK output
parent
b90b63cc
Pipeline
#18154
canceled with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/tinyhhg_core/rpd_coupling/SyncNextNeighborsTest.cpp
View file @
c57c106a
...
...
@@ -81,7 +81,6 @@ int main( int argc, char ** argv )
{
//initialize particle
const
Vec3
position
(
0.1
,
y
*
0.1
,
z
*
0.1
);
// const Vec3 position( 0.4999, 0.3, 0.8 );
const
Vec3
velocity
(
0.01
,
0.0
,
0.0
);
const
real_t
radius
=
0.05
;
auto
uid
=
createSphere
(
position
,
velocity
,
radius
,
ps
,
rpdSetupStorage
);
...
...
@@ -94,6 +93,7 @@ int main( int argc, char ** argv )
WALBERLA_LOG_INFO_ON_ROOT
(
"*** VTK ***"
);
auto
vtkOutput
=
make_shared
<
rpd
::
vtk
::
ParticleVtkOutput
>
(
ps
)
;
vtkOutput
->
addOutput
<
rpd
::
data
::
SelectParticleOwner
>
(
"particleRank"
);
auto
vtkWriter
=
walberla
::
vtk
::
createVTKOutput_PointData
(
vtkOutput
,
"Bodies"
,
1
,
"../../output"
,
"simulation_step"
,
false
,
false
);
WALBERLA_LOG_INFO_ON_ROOT
(
"*** SIMULATION - START ***"
);
...
...
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