ansys.dyna.core.pre.dynasolution#
Module for providing the top object that sets up a DYNA solution.
Attributes#
Classes#
Contains methods for creating a general LS-DYNA keyword. |
Functions#
|
Initialize a log file. |
Module Contents#
- ansys.dyna.core.pre.dynasolution.init_log(log_file)[source]#
Initialize a log file.
- Parameters:
- log_file
str
Name of the log file.
- log_file
- class ansys.dyna.core.pre.dynasolution.DynaSolution(hostname='localhost', port='50051', channel=None, server_path='')[source]#
Contains methods for creating a general LS-DYNA keyword.
- Parameters:
- static grpc_local_server_on() bool [source]#
Check if the server is launched locally.
- Returns:
- bool
True
when successful,False
when failed.
- upload(stub_, filename)[source]#
Upload files to the server.
- Parameters:
- stub_
- filename
str
Name of the file.
- download(remote_name, local_name)[source]#
Download files from the server.
- Parameters:
- stub_
- remote_name
- local_name
- create_database_binary(filetype='D3PLOT', dt=0, maxint=3, ieverp=0, dcomp=1, nintsld=1)[source]#
Request binary output.
- Parameters:
- filetype
str
,optional
Type of file. The default is
"D3PLOT"
.- dt
float
,optional
Time interval between output states. The default is
0
.- maxint
int
,optional
Number of shell and thick shell through-thickness integration points to output to the d3plot. The default is
3
.- ieverp
int
,optional
How to plot output states on plot files. The default is
0
. Every output state for the d3plot database is written to a separate file. Options are:EQ.0: More than one state can be on each plot file.
EQ.1: Only one state can be on each plot file.
- dcomp
int
,optional
Data compression to eliminate rigid body data. The default is
1
.- nintsld
int
,optional
Number of solid element integration points written to the LS-DYNA database. The default is
1
.
- filetype
- Returns:
- bool
True
when successful,False
when failed.
- create_database_ascii(type, dt=0.0, binary=1, lcur=0, ioopt=0)[source]#
Obtain output files containing result information.
- Parameters:
- type
str
Type of the database. Options are:
BNDOUT
GLSTAT
MATSUM
NODFOR
RCFORC
SLEOUT
- dt
float
,optional
Time interval between outputs. The default is
0.0
.- binary
int
,optional
Flag for whether to generate binary output. The default is
1
.- lcur
int
,optional
Curve ID specifying the time interval between outputs. The default is
0
.- ioopt
int
,optional
Flag for governing the behavior of the output frequency load curve defined by the
lcur
parameter. The default is0
.
- type
- Returns:
- bool
True
when successful,False
when failed.