Replies: 23 comments 11 replies
-
Hi @kufapetr, there's an example of a space- and time-dependent BC in the That problem implements a custom |
Beta Was this translation helpful? Give feedback.
-
Thank you very much (as a late response); this works perfectly.
However, I have another similar question: If I need to permanently fill
a space- and time-dependent constraint not only to BCs but to either the
whole or at least some spatially defined region of the computational
domain? What is the best way to do it?
Thanks in advance,
Petr
On 2023-04-18 15:23, Michael Zingale wrote:
Hi @kufapetr [1], there's an example of a space- and time-dependent BC
in the double_mach_reflection problem (see
Exec/hydro_tests/double_mach_reflection.
That problem implements a custom problem_bc_fill.H that fills the ghost
cells directly.
--
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Could you give an example of the kind of constraint you want to apply? Depending on what it looks like, we may need to add some code to support this. |
Beta Was this translation helpful? Give feedback.
-
Yes, thank you. An example: I need to keep the central region of the
computational domain (spherical star) at a constant density, temperature
and pressure throughout the entire simulation, regardless of how the
surroundings evolve hydrodynamically.
Thanks, Petr
On 2023-06-22 13:55, Max Katz wrote:
Could you give an example of the kind of constraint you want to apply?
Depending on what it looks like, we may need to add some code to
support this.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I would recommend achieving this using There are a couple examples of this in Castro/Exec, the one in Exec/science/wdmerger is the most fleshed out. I didn't test this but here is most of a possible implementation I just typed out:
|
Beta Was this translation helpful? Give feedback.
-
Dear all,
I apologize I ask once again for the same thing, but I accidentally
deleted all the previous incoming messages which I did not backup; could
you please send me again the supporting code for this (or an example
reference)...
Thank you very very much,
Petr
On 2023-06-23 04:52, Petr_Kurfurst wrote:
Yes, thank you. An example: I need to keep the central region of the
computational domain (spherical star) at a constant density,
temperature and pressure throughout the entire simulation, regardless
of how the surroundings evolve hydrodynamically.
Thanks, Petr
On 2023-06-22 13:55, Max Katz wrote:
> Could you give an example of the kind of constraint you want to apply?
> Depending on what it looks like, we may need to add some code to
> support this.
>
> --
> Reply to this email directly, view it on GitHub [1], or unsubscribe
> [2].
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure what examples you mean, but the previous examples are still in this discussion thread on github. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I have another question: In the inputs file, I limit the minimum density for example as "castro.small_dens = 1.e-18" and at the same time in the inputs file, I also specify "castro.retry_small_density_cutoff" which according to the manual should prevent retry in low-density areas. However, after some time the negative density message will still appear, along with "Advance was unsuccessful with reason: invalid density; proceeding to a retry". What's the problem? Should the limiting commands be entered somewhere other than in the "inputs" file? Thank you, Petr. Translated with www.DeepL.com/Translator (free version) |
Beta Was this translation helpful? Give feedback.
-
Hello, everybody, |
Beta Was this translation helpful? Give feedback.
-
Dear Max,
thank you for the reply, I'll do the debugging and let you know.
However, this will take some time because the calculation in the debug
mode is significantly slower and the crash may occur in a rather late
phase of computation.
Best,
Petr
On 2023-10-02 14:28, Max Katz wrote:
In principle you can do whatever you want, we have a hook that allows
you to modify the state at the end of each timestep. However, we also
shouldn't be letting you get into a state where you are generating
NaN's. Can you compile in debug mode, and use amrex.fpe_trap_invalid=1
(more info on our debugging page [1]), and let us know what the content
of the Backtrace file is when you crash?
--
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
run with the current executable but increase the checkpoint frequency to be something like every 10 steps or so. Then once it crashes, rebuild in debug mode and restart from the last checkpoint file, and you should only need to evolve for (at most) 10 steps to get the crash. |
Beta Was this translation helpful? Give feedback.
-
Hello everybody, |
Beta Was this translation helpful? Give feedback.
-
what type of supernova? Not that neutrino radiation was removed some time ago from the code. |
Beta Was this translation helpful? Give feedback.
-
Standard type II, let's say RSG 15M_sun, 1000R_sun. I can use the MESA
model for the initial state as an input file and, if necessary, I can
also use the very early phase of SN blast calculation (until the shock
breakout) from 1D SNEC pre-calculation and remap it into Castro.
Neutrino radiation is not necessary.
Thanks, Petr
Initial profile On 2023-10-09 14:43, Michael Zingale wrote:
what type of supernova? Not that neutrino radiation was removed some
time ago from the code.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am not sure if we have a setup that is a match for what you want to do. But you can start with |
Beta Was this translation helpful? Give feedback.
-
Hello all, I understand how to interpolate a 1D model using Model Parser, even on the part of the computational domain; it is OK and works perfectly. However, I cannot figure out how to proceed if I want to remap the initial state of some quantities, like density, temperature, etc, from a multidimensional (like 2D) precomputed model stored in some "model file"? It doesn't, in fact, have to be an interpolation; it can just be a mapping of the values onto the Castro grid within an identical grid geometry. |
Beta Was this translation helpful? Give feedback.
-
it's probably easiest that you start just by doing it in your problem directory. For each file that needs to be compiled, you'll have to add a line in the |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm interested in one more thing: How to get the current TIME in Prob.cpp and Problem.H in my problem directory, where I implement the problem_post_timestep() function; I need to achieve this function being on or off in various time intervals. For example in "problem_bc_fill.H" the current time is loaded, I tried to get it in Prob.cpp but so far I can't. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
In
see the version in |
Beta Was this translation helpful? Give feedback.
-
Hello, I have the following question: I calculate a standard hydro model (in 2D) and I need to integrate (not permanently but at least at certain selected times) the total mass inside a region, namely inside a selected radius. So, not within the whole domain but only within a certain part of it. What is the best way to do it please? |
Beta Was this translation helpful? Give feedback.
-
hi, can you start a new discussion thread for each different topic -- this one still refers to boundary conditions, so it is a bit confusing to follow. |
Beta Was this translation helpful? Give feedback.
-
Hello, I also want to implemented inflow boundary conditions, etc. For example, constant heat flux in low boundary. How can I make it |
Beta Was this translation helpful? Give feedback.
-
you can take a look at |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I implemented my initial and boundary conditions, etc. However, I need to include a change of some low boundary values in density during the calculation. How can I make it? (if there is a possibility to do so). Thanks, Petr
Beta Was this translation helpful? Give feedback.
All reactions