-
Notifications
You must be signed in to change notification settings - Fork 247
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
last version of the code breaks the wind setup when isink_radiation=1 #538
Comments
Hi, |
Hi, Thanks! |
Thanks ! I'll try to fix that soon ! |
Can you precise a bit more what is wrong now in this setup ? I tried both methods but I can't see a major difference... |
I had a look in the code and could not spot any obvious errors here, except maybe that tau is not updated? Is tau used for this test? |
No, isink_radiation should only add the radiation pressure force : kappa L/(4 pi r^2 c) |
yes but there is the e^(-tau) term used in some cases |
tau should only be needed in Mat's ray tracing, i.e. if iray_resolution /= -1. |
the issue comes from the radiation pressure force that is not accounted during the middle force (using extrapolation) with FSI... I forgot to make a patch for this part of the code. I'm working on it. |
Ok I made a patch, but I had to merge get_rad_accel_radiation routine with my main gas force loop. was there a specific reason that the two forces were calculated separately in the previous code ? |
Should be fixed with #539 |
see comment on #539, it would be much nicer for this to stay inside the get_force routine if possible. Do we understand why there is a difference between calling it there and separately in the step routine? |
I probably explained my patch badly... The radiation pressure forces are still computed inside the get_force routine. Before that, it was calculated outside the gas force loop (but still inside get_force). Now these radiation forces are computed inside gas loop of the get_force routine. I didn't understand why it wasn't the case in the previous version of the code (before FSI)... |
After the addition of the 4th order scheme (April 22, hash 282e51), the wind setup does not work anymore when isink_radiation = 1
The text was updated successfully, but these errors were encountered: