autopdex.models.neumann_weak

autopdex.models.neumann_weak(neumann_fun)[source]

Constructs the weak form of Neumann boundary conditions for the virtual work of surface tractions or heat inflow.

This function can be used to impose Neumann boundary conditions in the weak form of problems such as linear momentum balance or heat conduction.

Parameters:

neumann_fun (callable) – A function that computes the Neumann boundary condition (e.g., surface tractions or heat inflow) given spatial coordinates. This function can optionally take the settings as an additional argument.

Returns:

function

A function that evaluates the weak form of the Neumann boundary condition.

The returned function computes the virtual work of the Neumann boundary condition, which is the dot product of the virtual displacement (or temperature) and the Neumann boundary condition (e.g., surface tractions or heat inflow).

Notes

  • This models works for DOFs as a jnp.ndarray.