-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using placement as default input method for Plate orientation as oppo…
…sed to origin, xdir and zdir (normal). Created test to handle line/shell meshing to ensure line elements are connected to adjoining shell elements
- Loading branch information
Showing
24 changed files
with
104 additions
and
72 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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
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,29 @@ | ||
import ada | ||
from ada.core.utils import Counter | ||
|
||
test_dir = ada.config.Settings.test_dir / "meshing" | ||
|
||
|
||
def test_edges_intersect(): | ||
bm_name = Counter(1, "bm") | ||
pl = ada.Plate("MyPlate", [(0, 0), (1, 0), (1, 1), (0, 1)], 10e-3) | ||
points = pl.poly.points3d | ||
objects = [pl] | ||
|
||
# Beams along 3 of 4 along circumference | ||
for p1, p2 in zip(points[:-1], points[1:]): | ||
objects.append(ada.Beam(next(bm_name), p1, p2, "IPE100")) | ||
|
||
# Beam along middle in x-dir | ||
objects.append(ada.Beam(next(bm_name), (0, 0.5, 0.0), (1, 0.5, 0), "IPE100")) | ||
|
||
# Beam along diagonal | ||
objects.append(ada.Beam(next(bm_name), (0, 0, 0.0), (1, 1, 0), "IPE100")) | ||
|
||
a = ada.Assembly() / (ada.Part("MyPart") / objects) | ||
p = a.get_part("MyPart") | ||
p.connections.find() | ||
p.fem = p.to_fem_obj(0.1) | ||
|
||
a.to_fem("MyIntersectingedge_ufo", "usfos", overwrite=True, scratch_dir=test_dir) | ||
a.to_ifc(test_dir / "IntersectingFEM", include_fem=False) |
Empty file.
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.