-
Notifications
You must be signed in to change notification settings - Fork 20
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
Collective Effects Config in Dashboard #690
base: development
Are you sure you want to change the base?
Collective Effects Config in Dashboard #690
Conversation
src/python/impactx/dashboard/Input/space_charge_configuration/spaceChargeFunctions.py
Fixed
Show resolved
Hide resolved
src/python/impactx/dashboard/Input/space_charge_configuration/spaceChargeFunctions.py
Outdated
Show resolved
Hide resolved
src/python/impactx/dashboard/Input/space_charge_configuration/spaceChargeMain.py
Outdated
Show resolved
Hide resolved
src/python/impactx/dashboard/Input/space_charge_configuration/spaceChargeMain.py
Outdated
Show resolved
Hide resolved
d6d3cb1
to
c08a1be
Compare
src/python/impactx/dashboard/Analyze/plot_PhaseSpaceProjections/phaseSpace.py
Outdated
Show resolved
Hide resolved
src/python/impactx/dashboard/Input/space_charge_configuration/spaceChargeFunctions.py
Fixed
Show fixed
Hide fixed
for more information, see https://pre-commit.ci
folder name is still called 'csrConfiguration'
last step is to connect to simulation
prob_relative values are required to decrease with increasing index
No validation yet and not yet connected to simulation
Space charge/csr simulation content did not merge in correctly originally, this fixes it.
2ddadf9
to
774b365
Compare
for more information, see https://pre-commit.ci
…ace_charge_configuration
…y30/impactx into dashboard/space_charge_configuration
csr_bins int and positive number
to ensure that users cannot run a simulation when inputs have errors
sim.blocking_factor_x = [state.blocking_factor_x] | ||
sim.blocking_factor_y = [state.blocking_factor_y] | ||
sim.blocking_factor_z = [state.blocking_factor_z] |
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.
I can't remember how this works on the AMReX end, so just to double check, do these have to be single-element lists or can they be simply integers?
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.
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.
Not sure if this is a git display issue, but the indentation of the function body for build_space_charge_or_csr
seems off. Could you double check?
with vuetify.VCol(cols=6, classes="py-0"): | ||
vuetify.VTextField( | ||
label="MLMG Relative Tolerance", | ||
v_model=("mlmg_relative_tolerance",), |
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.
In one discussion in the Trame repo, I was told that one could use v_model_number
as well (on top of type="number"
) and that it could render numbers better when it comes to formatting.
I did try it on my end without noticing any significant improvement, but maybe you could try it as well.
For reference, here's the comment where this was mentioned: Kitware/trame#599 (reply in thread).
if state.poisson_solver == "fft": | ||
state.prob_relative = [1.1] + [0.0] * (num_prob_relative_fields - 1) | ||
elif state.poisson_solver == "multigrid": | ||
state.prob_relative = [3.1] + [0.0] * (num_prob_relative_fields - 1) | ||
else: | ||
state.prob_relative = [0.0] * num_prob_relative_fields |
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.
Question for both you and @cemitch99, should we add a comment about the numbers that appear here (e.g., 1.1
, 3.1
, etc.)? I'm not too familiar with the context here, so I'm not sure if the meaning of these numbers should be clarified.
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.
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.
This looks good to me. We can discuss a little when we chat today.
PR adds in Space Charge and CSR configuration for users.
TODO:
blocking_factor
if possion_solver = "multigrid", index[0] >1
else index[1-(n-1)] >1
Resolves #665