Skip to content

Commit

Permalink
remove opensees-specific items
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Ranaudo committed May 10, 2024
1 parent 98ea2ed commit 2c33515
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/compas_fea2/model/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class _Element0D(_Element):
"""Element with 1 dimension.
"""
def __init__(self, nodes, frame, implementation=None, rigid=False, **kwargs):
super(_Element1D, self).__init__(nodes, section=None, implementation=implementation, rigid=rigid, **kwargs)
super(_Element0D, self).__init__(nodes, section=None, implementation=implementation, rigid=rigid, **kwargs)
self._frame = frame

class SpringElement(_Element0D):
Expand All @@ -205,7 +205,7 @@ class LinkElement(_Element0D):
class _Element1D(_Element):
"""Element with 1 dimension.
"""
def __init__(self, nodes, section, frame, implementation=None, rigid=False, **kwargs):
def __init__(self, nodes, section, frame=None, implementation=None, rigid=False, **kwargs):
super(_Element1D, self).__init__(nodes, section, implementation=implementation, rigid=rigid, **kwargs)
self._frame = frame
self._curve = Line(nodes[0].point, nodes[-1].point)
Expand Down
2 changes: 1 addition & 1 deletion src/compas_fea2/model/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def shell_from_compas_mesh(cls, mesh, section, name=None, **kwargs):
"""
implementation = kwargs.get("implementation", None)
ndm = kwargs.get("ndm", None)
part = cls(name=name, ndm=ndm)
part = cls(name=name, ndm=ndm) if ndm else cls(name=name)
vertex_node = {vertex: part.add_node(Node(mesh.vertex_coordinates(vertex))) for vertex in mesh.vertices()}

for face in mesh.faces():
Expand Down

0 comments on commit 2c33515

Please sign in to comment.