Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual horizon PD #146

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Dual horizon PD #146

wants to merge 2 commits into from

Conversation

kinanbezem7
Copy link

@kinanbezem7 kinanbezem7 commented Nov 6, 2024

The implementation of DHPD.

This still hasn't been tested yet, I also have just copied the normal neighbour list for the dual neighbour list since variable horizon calculation is not yet available on the Cabana level.

Let me know if anything stand out in this, we can also test it by running a normal PD simulation with half the bond constant and it should arrive to the same solution as normal PD.

Relevant changes are in solver, force and force_PMB.hpp

@streeve streeve changed the title DHPD Dual horizon PD Nov 6, 2024
Copy link
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.

Great start - few initial suggestions

_init_timer.stop();
}

void init_dual_mu()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be in the DHPD class?

@@ -662,6 +682,8 @@ class SolverFracture

using NeighborView = typename Kokkos::View<int**, memory_space>;
NeighborView mu;
NeighborView dual_mu; // Bond damage for dual horizon
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here - should be below in the DHPD class

@@ -225,7 +225,7 @@ template <class ForceType, class ParticleType, class NeighListType,
class NeighborView, class ParallelType>
void computeForce( ForceType& force, ParticleType& particles,
const NeighListType& neigh_list, NeighborView& mu,
const ParallelType& neigh_op_tag )
double multiplier, const ParallelType& neigh_op_tag )
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can put this last and default to 1.0 to make things simpler throughout

@streeve streeve mentioned this pull request Nov 13, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants