Using interpolate() to track lagrangian particle velocity/temperature over time #4655
Unanswered
sebasti4nmc
asked this question in
Computational science!
Replies: 1 comment 5 replies
-
Hi @sebasti4nmc, You shouldn't need to write a custom dynamics for tracking fields, if you omit the (You haven't include the line where you make the model, but just in case make sure that you pass the fields |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, my name is Sebastian and I'm an undergraduate student working on a summer research project investigating upper ocean mixing under Dr. Amrapalli Garanaik (@amrapallig) at Oregon State University.
I've implemented lagrangian particle tracking into my Oceananigans simulation with custom particles that have temperature and velocity properties, and I'm trying to see how I can track those fields on each individual particle using an interpolation function that I can pass to the "dynamics" keyword in LagrangianParticles(). However, when I try to run my simulation, I keep getting errors related to unsafe_trunc() and method errors related to my tracking function track_fields!(). Any idea how to fix this? Here is the setup for my particles:
Beta Was this translation helpful? Give feedback.
All reactions