Skip to content
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

removed gel_layer_height in simulate_3D.m #252

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

faberno
Copy link
Collaborator

@faberno faberno commented Oct 1, 2023

Please check the following before creating the pull request (PR):

  • Did you run automatic tests?
  • Did you run manual tests?
  • Is the code provided in the PR still backwards compatible to previous SIMPA versions?

Provide issue / feature request fixed by this PR

Fixes #237

For now removed the gel_layer_height in the calculation of the element positions, because the gel layer is never padded to the arrays.

@faberno
Copy link
Collaborator Author

faberno commented Oct 6, 2023

Actually removing dx * GEL_LAYER_HEIGHT completely can place the sensors outside of the volume. To avoid this we need to add at least dx. But then we should probably add it to all directions.

@faberno faberno changed the base branch from main to develop October 6, 2023 13:35
@kdreher
Copy link
Collaborator

kdreher commented Jun 25, 2024

Yes, I guess we should add it to all directions probably in both simulate_2D.m and simulate_3D.m

Comment on lines +103 to 105
elem_pos(1, :) = elem_pos(1, :) - 0.5 * kgrid.x_size;
elem_pos(2, :) = elem_pos(2, :) - 0.5 * kgrid.y_size;
elem_pos(3, :) = elem_pos(3, :) - 0.5 * kgrid.z_size;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add dx for all directions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GEL_LAYER_HEIGHT in simulate_3d
2 participants