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

Simplifies API for stress rotation at the particle level #277

Merged
merged 9 commits into from
Nov 27, 2024

Conversation

albert-de-montserrat
Copy link
Collaborator

@albert-de-montserrat albert-de-montserrat commented Nov 27, 2024

New syntaxes:

  • Create stress and vorticity tensor components on the particles:
τ_particles = StressParticles(particles)
  • Rotate stresses on the particles
rotate_stress!(τ_particles, stokes, particles, xci, xvi, dt)
  • Interpolate rotated stress from particles to the grid
stress2grid!(stokes, τ_particles, xvi, xci, particles)

Example here

@boriskaus
Copy link
Collaborator

are you not supposed to use τ_particles in step 2?

@albert-de-montserrat
Copy link
Collaborator Author

are you not supposed to use τ_particles in step 2?

Indeed thanks :) copy pasting typo

@albert-de-montserrat albert-de-montserrat merged commit 6ad28e4 into main Nov 27, 2024
5 of 6 checks passed
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.

2 participants