Skip to content

Add design variable support for aux elements#463

Draft
timryanb wants to merge 23 commits into
smdogroup:masterfrom
timryanb:aux_elem_dv_clean
Draft

Add design variable support for aux elements#463
timryanb wants to merge 23 commits into
smdogroup:masterfrom
timryanb:aux_elem_dv_clean

Conversation

@timryanb

@timryanb timryanb commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary
This PR enables entries of the inertia (acceleration) vector passed to addInertialLoad and pressures passed to addPressureToElements and addPressureLoadsToComponents and tractions passed to addTractionsToElements and addTractionsToComponents to be treated as design variables in an optimization. This allows, for example, the magnitude of a gravity/pressure load to be a DV without modifying the structural stiffness model.

Example

# Register gravity magnitude as a global DV (returns its DV number)
gravDVNum = FEAAssembler.addGlobalDV("g", -9.81)

# FEAAssembler intialization stuff
...

# Create problem
problem = FEAAssembler.createStaticProblem("dummy")

# z-component is the DV; x and y are fixed
g = np.array([0.0, 0.0, -9.81])
problem.addInertialLoad(g, [-1, -1, gravDVNum])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant