-
Notifications
You must be signed in to change notification settings - Fork 14
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
change initial condition of RadForce #627
Conversation
/azp run |
Azure Pipelines successfully started running 5 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
I made this change in order to do a scaling test for the RHD solver, but the result is surprising: the R1 norm of the error does not change with decreasing dt (see table below). I don't know why this happens.
|
I just realized that this problem is in the diffusion limit, so it's not a good test for scaling of the time integration scheme. But in any case, this PR is worth merging. |
This will happen if the error is dominated by the spatial discretization rather than the time discretization. In that case, you only get significantly smaller errors if you increase the spatial resolution. |
For a test problem, I don't think there's anything wrong with initializing to the exact solution. Is there any other benefit to changing this? |
I just think a test that is initialized with the exact solution is not super reliable. Support you accidentally changed some of the problem parameters and the simulation finishes at t = 0, or the system is frozen for some reason and never evolves, the test will still pass. This PR shows you can start from a realistic initial condition and end with the exact analytic solution, so why not apply it? |
@BenWibking Can you take a look at the
|
Ah, I am almost certain the cause is that I wrote this function to only fill the hydro variables. You will have to fill the ghost cells for the radiation variables yourself. However, I forgot that this was all designed for the full Euler equations, i.e. where there is also an energy equation, which is missing for an isothermal EOS. So your original approach is probably fine. The serious issues only arise when the pressure boundary condition is not specified at an outflow boundary, but here it is not an issue since the pressure is not an independent variable. Somehow I didn't connect the dots here, sorry. |
It shouldn't matter anyway, because the gas is definitely outflowing at the upper boundary. In my implementation of So, the foextrap B.C. is okay? I'll change it back. |
/azp run |
Azure Pipelines successfully started running 5 pipeline(s). |
@chongchonghe Can you take a look at the GPU test that failed? |
/azp run |
Azure Pipelines successfully started running 5 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
/azp run |
Azure Pipelines successfully started running 5 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 5 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
…ka-astro/quokka into chongchong/convergence-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
/azp run |
Azure Pipelines successfully started running 5 pipeline(s). |
Description
The RadForce test can be improved to be more realistic and less
ad hoc
. Instead of initializing with the exact solution and letting the simulation maintain a static state, we start the simulation with a uniform density of rho0 and zero velocity. The left boundary condition is kept the same as before, but the right boundary is set to be foextrap. The end result is exactly the same as before: the radiation blows away the gas and the system comes to the static state given by the differential equation.Checklist
Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an
x
inside the square brackets[ ]
in the Markdown source below:/azp run
.