Commit c57c106a authored by Nils Kohl's avatar Nils Kohl 🌝
Browse files

Added particle rank to VTK output

parent b90b63cc
Pipeline #18154 canceled with stages
......@@ -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 ***");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment