Replies: 5 comments 7 replies
-
Good afternoon, Mr. Ketch, I am a master student in fluid mechanics, now I am trying to use Pyclaw and specify boundary conditions by myself for shock tube type problems. However, the pressure value of the current time step on the boundary needs to be determined through the values of pressure and self-defined quantities in the previous time steps, I would like to ask that if there are some ways to extract and use them from the previous numerical results? Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
It sounds like all you need then is the previous time step's value of the pressure. We do this often with Riemann based FV methods. I am not sure why you would anything but the immediately available values in the cells though, especially given that this is a hyperbolic PDE. These are easily available unless there is some sort of history you are looking for.
Kyle
…On Feb 24, 2023 at 10:39 AM -0500, Chen Liu ***@***.***>, wrote:
The quantities(density, velocity, pressure, etc.) of the last cell in the inner domain are known at the current time step, and the pressure on the ghost cell is just set to the ambient pressure; two Riemann invariants are used to connect the values of the last cell and the boundary, as well as those of the boundary and the adjacent ghost cell; under a certain assumption, the normalized Riemann invariant for the right-traveling wave can connect the incident pressure waves with ambient pressure, and it is known from the internal solution. Therefore, the strength of each incident pressure wave element at different time steps can be calculated; Then the pressure on the boundary at different time steps will be affected jointly by these previous pressure waves elements according to acoustic response theory, so I would like to extract and use the previous numerical results to define the current pressure on the boundary, afterwards Riemann invariants are used to determine the velocities on the boundary and ghost cell.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
In general, if you need values from times earlier than the previous step, you could use the |
Beta Was this translation helpful? Give feedback.
-
I'm Pavel Komarov, PhD student at UW in the Electrical and Computer Engineering department, advised by Nathan Kutz. (There are corners of ECE that are basically applied math: systems, controls, signal processing, ML). I'll be using Clawpack to do PDE simulations. So far I've found it pretty confusing. I'm making a taxonomy of important objects for myself, which I may turn into some documentation for you all to host on the website, so hopefully new users can get up to speed faster than I've been unable to. I also hope to submit some PRs if I think of ways to make the interface of this project more intuitive. Who is in charge? I gather @ketch and @mandli and @rjleveque are pretty important players. (Thanks for moving the build system over to meson last year. I wasn't even aware at the time that setuptools had serious limitations. I was just pretty frustrated at the time that installation was broken, but I've had less problem lately.) |
Beta Was this translation helpful? Give feedback.
-
@pavelkomarov Welcome! Improvements to the documentation would be very welcome; @mandli has pointed out some resources, but I agree that the "new user" experience could be greatly improved and you are at the best stage to make contributions in that regard. I'm glad to hear that installation went better this time. For proposals that would change the user interface, it will be best to have a discussion first as those can affect people who don't use PyClaw directly but only through GeoClaw or AMRClaw. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions