Skip to content

Adding Rake Example#260

Open
msaffarini90 wants to merge 1 commit intoORNL:mainfrom
msaffarini90:Raking_Example
Open

Adding Rake Example#260
msaffarini90 wants to merge 1 commit intoORNL:mainfrom
msaffarini90:Raking_Example

Conversation

@msaffarini90
Copy link
Copy Markdown
Collaborator

@msaffarini90 msaffarini90 commented Sep 25, 2025

Initial example of raking a pile of particles. The file was created by modifying the AoR example file #220

Missing inputs and CMake

@msaffarini90 msaffarini90 self-assigned this Sep 25, 2025
@msaffarini90 msaffarini90 added the example New example problem label Sep 25, 2025
Copy link
Copy Markdown
Collaborator

@streeve streeve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably simplify some more of the code, but it looks reasonable on first look

Comment thread examples/dem/Raking.cpp
Comment on lines +354 to +359
for ( int step = 1; step <= solver.num_steps; ++step )
{
solver.runStep( step, body );

// Removed feeding of particles
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for ( int step = 1; step <= solver.num_steps; ++step )
{
solver.runStep( step, body );
// Removed feeding of particles
}
solver.run( body );

Comment thread examples/dem/Raking.cpp
Comment on lines +261 to +263
vel( pid, 0 ) = 0.0;
vel( pid, 1 ) = 0.0;
vel( pid, 2 ) = 0.0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vel( pid, 0 ) = 0.0;
vel( pid, 1 ) = 0.0;
vel( pid, 2 ) = 0.0;

Always initialized to zero

Comment thread examples/dem/Raking.cpp
int seed = 3837485;
addConeParticles( solver, inputs, seed );
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
updateParticles( solver, inputs );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need to do this once, so it could be prior to creating the solver (as in most of the examples)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

example New example problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants