-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Dear All,
This is Shin Taniguchi of JSOL.
Now, we have been trying to execute PyDYNA solver module.
We cannnot execute Ansys LS-DYNA solver in both of MPP and SMP.
We're trying localhost definition and your WEB documentation based python script.
solver\server_start.py:
import os, sys
import ansys.dyna.core.solver as solver
hostname = "localhost"
port = "5000"
dyna=solver.launch_dyna(ip = hostname, port = port)
dyna.push("./output/ball_plate.k")
dyna.start_locally(input="ball_plate.k", nproc=1)
The solver server is downloaded automatically.
But following error message is output.
Error message:
COMMAND: python solver_server_start.py
[INSTALLED_FOLDER]\PYDYNA\ansys-pydyna-solver-server.zip: 100%
grpc Server listening on: localhost:5000
CRITICAL - - dynalogging - handle_exception - Uncaught exception
Traceback (most recent call last):
File "[CURRENT_FOLDER]\solver_server_start.py", line 6, in dyna.push("./output/ball_plate.k")
TypeError: DynaSolver.push() missing 1 required positional argument: 'workdir'
CRITICAL:pydyna_global:Uncaught exception
Traceback (most recent call last):
File "[CURRENT_FOLDER]\solver_server_start.py", line 6, in dyna.push("./output/ball_plate.k")
TypeError: DynaSolver.push() missing 1 required positional argument: 'workdir'
In the "INSTALLED FOLDER", grpc.log is generated.
Ansys PKG we have installed can be accessed.
grpc.log:
11/26/2024 15:29:31 - server - GRPC server starting
11/26/2024 15:29:32 - server - Receiving file ./ball_plate.k
11/26/2024 15:29:32 - server - Starting DYNA on 1 processors
11/26/2024 15:29:32 - server - Starting DYNA
11/26/2024 15:29:32 - server - ansys version 241
11/26/2024 15:29:32 - server - ansys dir C:\Program Files\ANSYS Inc\v241\ansys
11/26/2024 15:30:37 - grpc._server - Exception calling application: [Errno 2] No such file or directory: 'dyna.out'
Could you tell me the solution about this trouble?
We had already achieved to executed solver last year.
But, in this time, solver server wasn't downloaded automatically, and we modified the script "server.py".
Best Regards,
Shin Taniguchi/JSOL