Skip to content

Commit

Permalink
support to just write DEFINE_CURVR without calling inside other function
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhanqun committed Aug 2, 2023
1 parent 5d68fe9 commit cfa5aeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansys/dyna/core/pre/dynabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ def __init__(self, sfo=1, x=[], y=[], func=None):
self.ordinate = y
self.func = func

def create(self, stub):
def create(self, stub=None):
"""Create a curve."""
if stub is None:
stub = DynaBase.get_stub()
if self.func != None:
ret = stub.CreateDefineCurveFunction(DefineCurveFunctionRequest(function=self.func))
else:
Expand Down

0 comments on commit cfa5aeb

Please sign in to comment.