General question: how to build laminar flow with one particle #1580
Replies: 4 comments 1 reply
-
I think you've started in the right place by looking at the examples. I suggest reading a few more examples! The "Model setup" section in the documentation should also be useful. If you can describe your problem in more detail then we may be in a better position to help. Here's some guiding questions:
The term "laminar flow" is not specific --- it's possible to have laminar flows in both two and three dimensions, and in bounded or periodic domains and with a variety of boundary conditions. I'm not sure what you mean by "single particle". We have some functionality for modeling what we call "Lagrangian particles", which are like grains of sand that are advected by the flow. We can explain how to model a single Lagrangian particle, if that is indeed what you are trying to do. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response and for providing the guiding questions. I summarized the motivation and context of the project below.
It is a thesis project about the dispersal and migration of fish larvae in the sea. Juveniles from a coral reef fish population can return to their natal reef after being dispersed into the open ocean by the currents. Fish larvae, in particular, have the ability to swim directionally and increasingly fast during ontogeny, indicating that they may not only disperse, but also migrate to their natal reef using environmental signals. How and when larvae use local and large-scale cues remains a mystery. To bring light into this we want to build a simulation where we simulate the ocean including some Lagrangian particles in it(which simulate the larvae). Then we will try out several possible factors, which might help the larvae to find their natal reefs after being dispersed.
We plan to do this two-dimensionaly at first since it is „just“ a bachelor’s thesis.
Although I did a lot of reading on CFD basics, I yet have to fully grasp the different kinds of boundary conditions(especially differences between periodic, bounded and flat). Concerning laminar flow I have been reading about inlet and outlet conditions. That’s why I have been thinking about those in particular but maybe it would be better without the outlet ones.
I am not sure about that question, so I will come back to it. |
Beta Was this translation helpful? Give feedback.
-
Great, thank you for providing context! I would focus on setting up a two-dimensional flow first, and then tackle the problem of adding particles to the simulation that behave in the manner you prescribe. There's no reason to do both of these things at the same time and adding particles to an existing simulation will hopefully be straightforward. In Oceananigans, A When a direction is I am happy to help more if you like. You can also try to force your flow to drive motion, rather than by imposing boundary conditions. Sometimes this approach is a bit simpler than forcing a flow by applying boundary conditions. |
Beta Was this translation helpful? Give feedback.
-
I hope it's okay with everyone if I convert this to a GitHub discussion. |
Beta Was this translation helpful? Give feedback.
-
Hello,
maybe this question is not specific enough but I am trying to understand how to build a laminar flow with a single particle.
It is my understanding that I would need a two-dimensional grid with a topology=(Periodic, Flat, Bounded) (because the same one is used in the convecting_plankton example).
But how do I generate the correct inlet and outlet boundary conditions? Do the docs provide this information?
I should say that I am not an engineer but my background is computer science with a current application in ecology. So I know how to write and read code but am not an expert in physics.
Can you point me into a direction where I can gather the needed understanding to tackle such problems with Oceananigans?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions