Skip to content
Discussion options

You must be logged in to vote

Yes, you can define your own grid and pass it to calculate_electric_potential!.

I guess the easiest way to do it would be something like

    T = Float32
    sim = Simulation{T}(SSD_examples[:CGD])
    calculate_electric_potential!(sim, 
        max_refinements = 0, 
        max_n_iterations = 10, 
        init_grid_spacing =  T.((0.01, 0.01, 0.01)), 
    )
    g = sim.electric_potential.grid
    ax1, ax2, ax3 = g.axes
    user_additional_ticks_ax1 = T[0.002123] # here add your ticks of interest
    user_additional_ticks_ax2 = T[0.003123] # here add your ticks of interest
    user_additional_ticks_ax3 = T[0.004123] # here add your ticks of interest
    user_ax1 = typeof(ax1)(ax1.interval, s…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fhagemann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #143 on April 13, 2022 18:11.