Skip to content

Commit 7d9eebb

Browse files
committed
Merge remote-tracking branch 'origin/zzqbranch'
2 parents 609673c + d457f10 commit 7d9eebb

40 files changed

+814
-150
lines changed

doc/source/getting-started/SERVER_PRE_README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Run an example on the client side
99
hostname = "localhost"
1010
if len(sys.argv) > 1:
1111
hostname = sys.argv[1]
12-
solution = DynaSolution(hostname)
12+
solution = launch_dynapre(ip = hostname)
1313
......
1414
15-
#. The function of DynaSolution() can download and start the preprocessing server automatically.
15+
#. The function of launch_dynapre() can download and start the preprocessing server automatically.

doc/source/getting-started/example.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the Python file from ``examples/Explicit/ball_plate.py``.
1010
1111
import os
1212
import sys
13-
from ansys.dyna.core.pre.dynasolution import DynaSolution
13+
from ansys.dyna.core.pre import launch_dynapre
1414
from ansys.dyna.core.pre.dynamech import (
1515
DynaMech,
1616
Velocity,
@@ -34,7 +34,7 @@ the Python file from ``examples/Explicit/ball_plate.py``.
3434
hostname = "localhost"
3535
if len(sys.argv) > 1:
3636
hostname = sys.argv[1]
37-
solution = DynaSolution(hostname)
37+
solution = launch_dynapre(ip = hostname)
3838
3939
fns = []
4040
path = examples.ball_plate + os.sep

examples/Airbag/airbag_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515

1616

17-
from ansys.dyna.core.pre.dynasolution import DynaSolution
17+
from ansys.dyna.core.pre import launch_dynapre
1818
from ansys.dyna.core.pre.dynamech import (
1919
DynaMech,
2020
Airbag,
@@ -58,7 +58,7 @@
5858
# The ``DynaSolution`` class is like a workflow orchestrator.
5959
# It inherits methods from other classes and helps create a complete workflow.
6060
#
61-
airbag_solution = DynaSolution(hostname)
61+
airbag_solution = launch_dynapre(ip = hostname)
6262
fns = []
6363
# path = sys.path[0] + os.sep + "input" + os.sep + "airbag_deploy" + os.sep
6464
path = examples.airbag_deploy + os.sep

examples/EM/em_resistive_heating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111
import sys
1212

13-
from ansys.dyna.core.pre.dynasolution import DynaSolution
13+
from ansys.dyna.core.pre import launch_dynapre
1414
from ansys.dyna.core.pre.dynaem import (
1515
DynaEM,
1616
NodeSet,
@@ -31,7 +31,7 @@
3131
if len(sys.argv) > 1:
3232
hostname = sys.argv[1]
3333

34-
solution = DynaSolution(hostname)
34+
solution = launch_dynapre(ip = hostname)
3535
fns = []
3636
path = examples.em_resistive_heating + os.sep
3737
fns.append(path + "em_resistive_heating.k")

examples/EM/em_resistive_heating_2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import os
1010
import sys
1111

12-
from ansys.dyna.core.pre.dynasolution import DynaSolution
12+
from ansys.dyna.core.pre import launch_dynapre
1313
from ansys.dyna.core.pre.dynaem import (
1414
DynaEM,
1515
PartSet,
@@ -32,7 +32,7 @@
3232
if len(sys.argv) > 1:
3333
hostname = sys.argv[1]
3434

35-
solution = DynaSolution(hostname)
35+
solution = launch_dynapre(ip = hostname)
3636
fns = []
3737
path = examples.em_resistive_heating_2d + os.sep
3838
fns.append(path + "em_resistive_heating_2d.k")

examples/EM/em_resistive_heating_2d_isopots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import sys
1313

14-
from ansys.dyna.core.pre.dynasolution import DynaSolution
14+
from ansys.dyna.core.pre import launch_dynapre
1515
from ansys.dyna.core.pre.dynaem import (
1616
DynaEM,
1717
PartSet,
@@ -38,7 +38,7 @@
3838
if len(sys.argv) > 1:
3939
hostname = sys.argv[1]
4040

41-
solution = DynaSolution(hostname)
41+
solution = launch_dynapre(ip = hostname)
4242
fns = []
4343
path = examples.em_resistive_heating_2d_isopots + os.sep
4444
fns.append(path + "em_resistive_heating_2d_isopots.k")

examples/EM/em_resistive_heating_2d_multi_isopots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import os
1010
import sys
1111

12-
from ansys.dyna.core.pre.dynasolution import DynaSolution
12+
from ansys.dyna.core.pre import launch_dynapre
1313
from ansys.dyna.core.pre.dynaem import (
1414
DynaEM,
1515
PartSet,
@@ -36,7 +36,7 @@
3636
if len(sys.argv) > 1:
3737
hostname = sys.argv[1]
3838

39-
solution = DynaSolution(hostname)
39+
solution = launch_dynapre(ip = hostname)
4040
fns = []
4141
path = examples.em_resistive_heating_2d_multi_isopots + os.sep
4242
fns.append(path + "em_resistive_heating_2d_multi_isopots.k")

examples/EM/em_rlc_define_func.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111
import sys
1212

13-
from ansys.dyna.core.pre.dynasolution import DynaSolution
13+
from ansys.dyna.core.pre import launch_dynapre
1414
from ansys.dyna.core.pre.dynaem import (
1515
DynaEM,
1616
NodeSet,
@@ -31,7 +31,7 @@
3131
if len(sys.argv) > 1:
3232
hostname = sys.argv[1]
3333

34-
solution = DynaSolution(hostname)
34+
solution = launch_dynapre(ip = hostname)
3535
fns = []
3636
path = examples.em_rlc_define_func + os.sep
3737
fns.append(path + "em_rlc_define_func.k")

examples/EM/em_rlc_isopotential.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import sys
1313

14-
from ansys.dyna.core.pre.dynasolution import DynaSolution
14+
from ansys.dyna.core.pre import launch_dynapre
1515
from ansys.dyna.core.pre.dynaem import (
1616
DynaEM,
1717
NodeSet,
@@ -32,7 +32,7 @@
3232
if len(sys.argv) > 1:
3333
hostname = sys.argv[1]
3434

35-
solution = DynaSolution(hostname)
35+
solution = launch_dynapre(ip = hostname)
3636
fns = []
3737
path = examples.em_rlc_isopotential + os.sep
3838
fns.append(path + "em_rlc_isopotential.k")

examples/EM/railgun/em_railgun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import os
1010
import sys
1111

12-
from ansys.dyna.core.pre.dynasolution import DynaSolution
12+
from ansys.dyna.core.pre import launch_dynapre
1313
from ansys.dyna.core.pre.dynaem import (
1414
DynaEM,
1515
Circuit,
@@ -32,7 +32,7 @@
3232
if len(sys.argv) > 1:
3333
hostname = sys.argv[1]
3434

35-
solution = DynaSolution(hostname)
35+
solution = launch_dynapre(ip = hostname)
3636
fns = []
3737
path = examples.em_railgun + os.sep
3838
fns.append(path + "em_railgun.k")

0 commit comments

Comments
 (0)