-
Notifications
You must be signed in to change notification settings - Fork 0
feat: update conductionpath #1147
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
base: main
Are you sure you want to change the base?
Conversation
Returns | ||
------- | ||
ConductionPath | None | ||
The updated conduction path if successful, None otherwise. |
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.
The updated conduction path if successful, None otherwise. | |
Updated conduction path if successful, None otherwise. |
We omit a leading article (An, A, The) in brief descriptions so the first word is an important one.
segment = [] | ||
for i, j in zip(ids[0:-1], ids[1:]): | ||
for tri in triangles: | ||
if i in tri and j in tri: | ||
segment.append(tri) | ||
break | ||
break # keep only one triangle per line is enough |
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.
break # keep only one triangle per line is enough | |
break # keeping only one triangle per line is enough |
) | ||
return path, surf | ||
|
||
# keep global point ids as a necessary property for the surface mesh |
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.
# keep global point ids as a necessary property for the surface mesh | |
# keep global point IDs as a necessary property for the surface mesh |
assert np.allclose(cp.mesh.points[0], np.array([0, 2, 0])) | ||
assert np.allclose(cp.mesh.points[1], np.array([0.6, 0.6, 0])) | ||
|
||
|
||
def test_create_path_on_surface_center(): | ||
"""Test conductionbeams can be initialized correctly on a pyvista sphere with 3 keypoints.""" |
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.
"""Test conductionbeams can be initialized correctly on a pyvista sphere with 3 keypoints.""" | |
"""Test that conduction beams can be initialized correctly on a PyVista sphere with three keypoints.""" |
add the ability to update coordinates of conductionpath by providing deformed relying surface.
This permits to generate conductio sytem before running zeropressure.