-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pushing latest * fix a bug with facets * removing unneccesary computations in segment stiffness * add function for boundary stiffness * compute nphases from length of ABD * add function to API * add new script for boundary computations * add some docstring information * update test * add back in missing nullspaces * cleanup * expand test * fix bug where wrong mesh was used to initialize nullspaces * add testing files
- Loading branch information
Showing
8 changed files
with
2,716 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from os.path import join | ||
|
||
import opensg | ||
import numpy as np | ||
import time | ||
|
||
|
||
mesh_yaml = join("data", "bar_urc_shell_mesh.yaml") | ||
mesh_data = opensg.load_yaml(mesh_yaml) | ||
|
||
blade_mesh = opensg.BladeMesh(mesh_data) | ||
stiffness_matrices = [] | ||
for i in range(1, 10): | ||
|
||
segment_mesh = blade_mesh.generate_segment_mesh(segment_index=i, filename="section.msh") | ||
|
||
ABD = segment_mesh.compute_ABD() | ||
|
||
stiffness_matrix_l, stiffness_matrix_r = segment_mesh.compute_stiffness_EB_boundary(ABD) | ||
|
||
stiffness_matrices.append((stiffness_matrix_l, stiffness_matrix_r)) | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.