Skip to content

AutoConstraintHandler

AutoConstraintHandler

AutoConstraintHandler(verbose: bool = False, auto_penalty: Optional[float] = None, user_penalty: Optional[float] = None)

Bases: ConstraintHandler

Automatic constraint handler.

AutoConstraintHandler automatically selects appropriate penalty numbers for compatibility constraints based on the surrounding structural stiffness elements.

Tcl form

constraints Auto [-verbose] [-autoPenalty <value>] [-userPenalty <value>]

Example
from femora.core.model import Model

model = Model()
handler = model.analysis.constraint.auto(verbose=True, auto_penalty=1e8)

Create an Auto constraint handler.

Parameters:

Name Type Description Default
verbose bool

If True, outputs diagnostic selection steps.

False
auto_penalty Optional[float]

Optional automatic penalty scaling value.

None
user_penalty Optional[float]

Optional user override penalty value.

None