Model.solverconvert#
- Model.solverconvert(source_solver, destination_solver, source_type, destination_type, batch, config_file_path)#
Converts a model from one solver to another.
Supported solvers are:
Solver Name
Solver ID
Solver Type
Nastran
1
OptiStruct
1
Abaqus
2
Standard2D, Standard3D, Explicit
ANSYS
8
LS-DYNA
9
Keyword971_R12.0, Keyword971_R11.2, Keyword971_R10.1, Keyword971_R9.3,Keyword971_R8.0, Keyword971_R7.1, Keyword971_R6.1, Keyword971, Keyword970
PAM-CRASH
18
Pamcrash2G2020, Pamcrash2G2019, Pamcrash2G2018, Pamcrash2G2017, Pamcrash2G2016, Pamcrash2G2015, Pamcrash2G2014, Pamcrash2G2013, Pamcrash2G2012, Pamcrash2G2011, Pamcrash2G2010, Pamcrash2G2008, Pamcrash2G2007, Pamcrash2G2006, Pamcrash2G2005, Pamcrash2G2004
Radioss
20
Radioss2022, Radioss2021, Radioss2020, Radioss2019, Radioss2018, Radioss2017, Block140, Block130, Block120, Block110, Block100, Block90, Block51, Block44
Permas
21
Permas
ADVC
30
advc
Supported solvers are:
Source Solver Name
Destination Solver Name
Abaqus
Nastran
Abaqus
OptiStruct
ANSYS
Nastran
ANSYS
OptiStruct
LS-DYNA
Nastran
LS-DYNA
OptiStruct
Radioss
PAM-CRASH
PAM-CRASH
Radioss
Nastran
Abaqus
OptiStruct
Abaqus
Nastran
ANSYS
OptiStruct
ANSYS
Nastran
LS-DYNA
Nastran
Radioss
OptiStruct
Radioss
ANSYS
Abaqus
OptiStruct
Abaqus
Nastran
OptiStruct
Abaqus
Radioss
ADVC
OptiStruct
LS-DYNA
PAM-CRASH
LS-DYNA
Radioss
Nastran
PAM-CRASH
PAM-CRASH
LS-DYNA
PAM-CRASH
Nastran
Permas
OptiStruct
Radioss
OptiStruct
- Parameters:
source_solver (hwString) – The source solver name or ID.
destination_solver (hwString) – The destination solver name or ID.
source_type (hwString) – The source solver template type.
destination_type (hwString) – The destination solver template type.
batch (hwString) –
Flag that indicates if the conversion should be run in batch mode.
0 - No batch mode
1 - Batch mode for Solver Conversion
2 - Batch mode for Unified Conversion
config_file_path (hwString) –
The full path for the configuration file containing the entity mapping details, to be used for the conversion. This is useful when the user has restrictions on modifying the file in the installation. When the configuration file path is not specified or the path is not valid, the conversion will use the default configuration file from the installation.
It is recommended to use forward slashes while specifying the configuration file.
It is supported for the following conversions:
OptiStruct/Nastran to Abaqus
Abaqus to OptiStruct/Nastran
Examples#
Convert Abaqus Standard3D model to OptiStruct in batch mode#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="Abaqus", destination_solver="OptiStruct", source_type="Standard3D", destination_type="", batch="1", config_file_path="", )
Convert Abaqus Standard3D model to OptiStruct in batch mode ( Alternative way )#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="2", destination_solver="1", source_type="Standard3D", destination_type="", batch="1", config_file_path="", )
Convert Radioss Block90 model to PAM - CRASH Pamcrash2G2007 without batch mode#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="RadiossBlock", destination_solver="Pamcrash", source_type="Block90", destination_type="Pamcrash2G2007", batch="0", config_file_path="", )
Convert Radioss Block90 model to PAM - CRASH Pamcrash2G2007 without batch mode ( Alternative way )#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="20", destination_solver="18", source_type="Block90", destination_type="Pamcrash2G2007", batch="0", config_file_path="", )
Convert Abaqus Standard3D model to RadiossBlock Radioss2021 in Unified Conversion#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="Abaqus", destination_solver="RadiossBlock", source_type="Standard3D", destination_type="Radioss2021", batch="2", config_file_path="", )
Convert Abaqus Standard3D model to RadiossBlock Radioss2021 in Unified Conversion ( Alternative way )#import hm import hm.entities as ent model = hm.Model() model.solverconvert( source_solver="2", destination_solver="20", source_type="Standard3D", destination_type="Radioss2021", batch="2", config_file_path="", )