Model.hm_getsolverfileprofilename#

Model.hm_getsolverfileprofilename(filename)#

Returns the profile name for an FE input file. This is based on the file extension. If the file extension is ambiguous, then it identifies the profile name based on the file extension and the solver format. If the file extension is missing, then it identifies the profile name based only on the solver format.

Parameters:

filename (hwString) – The full path and filename of the FE solver file, enclosed in quotes.

Returns:

Example#

Get the solver profile name for “ C:/temp / test.dat “#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getsolverfileprofilename(filename="C:/temp/test.dat")

print("Solver Profile Name:", result.solverProfile)