DynaSALE#

class ansys.dyna.core.pre.dynasale.DynaSALE#

Bases: ansys.dyna.core.pre.dynabase.DynaBase

Sets up the S-ALE simulation process.

Overview#

set_termination

Set the time for ending the simulation.

set_output_interval

Request binary output.

set_analysis_type

Set the analysis type.

set_output_database

Obtain output files containing the results.

save_file

Save keyword files.

Import detail#

from ansys.dyna.core.pre.dynasale import DynaSALE

Method detail#

DynaSALE.set_termination(endtime)#

Set the time for ending the simulation.

Parameters:
endtimefloat

Time for ending the simulation.

Returns:
bool

True when successful, False when failed.

DynaSALE.set_output_interval(database_plot_interval)#

Request binary output.

Parameters:
database_plot_intervalfloat

Time interval between output states.

Returns:
bool

True when successful, False when failed.

DynaSALE.set_analysis_type(num_of_cycle=1, method=AdvectionMethod.DONOR_CELL_WITH_HALF_INDEX_SHIFT, background_pressure=0)#

Set the analysis type.

Parameters:
num_of_cyclefloat, optional

Total time of simulation for the fluid problem. The default is 1.

methodfloat, optional

Time step for the fluid problem. The default is DONOR_CELL_WITH_HALF_INDEX_SHIFT.

background_pressureint, optional

Reference pressure for computing the internal forces. The default is 0.

Returns:
bool

True when successful, False when failed.

DynaSALE.set_output_database(matsum=0, glstat=0)#

Obtain output files containing the results.

Parameters:
matsumfloat, optional

Time interval between outputs of part energies. The default is 0.

glstatfloat, optional

Time interval between outputs of global statistics and energies. The default is 0.

Returns:
bool

True when successful, False when failed.

DynaSALE.save_file()#

Save keyword files.

Returns:
bool

True when successful, False when failed.