Model.morphapplyfesolver#

Model.morphapplyfesolver()#

This function will invoke a finite element solver, specified by the fesolver of the function Model.morphupdateparameter(), and solve for the internal perturbations for all domains which have fewer elements than that specified by the fesolverlimit of the function Model.morphupdateparameter() using enforced displacements applied at the domain handles, edges, and/or faces. The function will either use the properties and materials specified for the mesh or generate properties and materials automatically depending on the feuser of the function Model.morphupdateparameter().

Has no arguments but uses several parameters when it is executed which are described below. These parameters can be updated using the Model.morphupdateparameter() function.

More specifcally the arguments of this function to update are:

fesolver

0 - Linear solver (OptiStruct)

1 - Nonlinear solver (Radioss)

fesolverlimit

Domains containing less than this number of elements will be updated.

feuser

0 - Use automatically generated properties and materials

1 - Use properties and materials currently for the mesh

Example#

Invoke the FE solver#
import hm
import hm.entities as ent

model = hm.Model()

'''
FE Solver paramaters were set up before the following line...
'''

model.morphapplyfesolver()