DynaSettings#

class ansys.health.heart.settings.settings.DynaSettings(lsdyna_path: pathlib.Path = 'lsdyna.exe', dynatype: Literal['smp', 'intelmpi', 'platformmpi', 'msmpi'] = 'intelmpi', num_cpus: int = 1, platform: Literal['windows', 'wsl', 'linux'] = 'windows', dyna_options: str = '', mpi_options: str = '')#

Class for collecting, managing, and validating LS-DYNA settings.

Overview#

get_commands

Get command line arguments from the defined settings.

lsdyna_path

Path to LS-DYNA executable.

dynatype

Type of DYNA executable.

num_cpus

Number of CPU’s requested.

platform

Platform DYNA is executed on.

dyna_options

Additional command line options for dyna.

__repr__

Represent self as string.

Import detail#

from ansys.health.heart.settings.settings import DynaSettings

Attribute detail#

DynaSettings.lsdyna_path: pathlib.Path = 'lsdyna.exe'#

Path to LS-DYNA executable.

DynaSettings.dynatype: str = 'intelmpi'#

Type of DYNA executable.

DynaSettings.num_cpus: int = 1#

Number of CPU’s requested.

DynaSettings.platform: str = 'windows'#

Platform DYNA is executed on.

DynaSettings.dyna_options = ''#

Additional command line options for dyna.

Method detail#

DynaSettings.get_commands(path_to_input: pathlib.Path) List[str]#

Get command line arguments from the defined settings.

Parameters:
path_to_inputpathlib.Path

Path to the LS-DYNA input file.

Returns:
List[str]

List of strings of each of the commands.

DynaSettings.__repr__()#

Represent self as string.