Models
This module contains premade jax-transformable partial differential equation (PDE) formulations, weak forms, user-defined elements, and time integration procedures.
The models-functions return callables with appropriate arguments for the use required in the other modules of AutoPDEx. These functions can then be passed e.g. to the solver via static_settings[‘model’].
- For instance, a typical weak form function has the following arguments:
x (jnp.ndarray): Spatial coordinates at the integration point.
ansatz (function): Ansatz function representing the field variable (e.g., displacement or temperature).
test_ansatz (function): Test ansatz function representing the virtual displacement or virtual temperature.
settings (dict): Settings for the computation.
static_settings (dict): Static settings for the computation.
int_point_number (int): Integration point number.
set: Number of domain.
Note: Some of the models work for degrees of freedoms (dofs) as a jnp.ndarray and some work for dicts of jnp.ndarrays. It is specified in each docstring.
User potentials/elements
Constructs a multi-field 'user potential' for integration of a potential in the reference configuration of finite elements. |
|
Constructs a multi-field 'user residual' for integration of a weak form in the reference configuration of finite elements. |
|
Constructs a multi-field 'user potential' for integration of a potential in the reference configuration of surface elements. |
|
Constructs a multi-field 'user residual' for integration of a weak form in the reference configuration of surface elements. |
|
Constructs a local integrand fun (user potential) for integration of functions in the reference configuration of isoparametric elements. |
|
|
Constructs an isoparametric domain element for Galerkin methods using a given weak form function and DOFs as jnp.ndarray. |
Constructs an isoparametric surface element for Galerkin methods using a given weak form function and DOFs as jnp.ndarray. |
Functions for coupling with DAE solver
Constructs a multi-field 'user residual' for time-dependent weak forms. |
|
Similar as mixed_reference_domain_residual_time, but generates a function that doesn't compute the residual, but the internal variables based on the local_int_var_updates_fun. |
Convenience functions for modelling
|
Augmented Lagrangian potential function for an inequality constraint (constr >= 0). |
Converts a 6-component Kelvin-Mandel representation vector into a 3x3 symmetric matrix. |
Linear equations
Transport equation: du/dt + c * du/dx = 0 |
|
|
Poisson equation in n dimensions: coefficient * Laplace(Theta) + source_term = 0 |
|
Poisson equation in n dimensions as weak form. |
|
Poisson equation as set of first order models augmented by curl(v)=0 |
|
Space-time heat equation with thermal diffusivity alpha. |
|
Space-time heat equation with thermal diffusivity alpha as a first order system with curl-augmentation for more than 2 spatial dimensions |
|
Space-time d'Alembert operator 1 temporal [-1] and (n-1) spatial [:n-1] dimension with wave number c. |
|
Constructs a first-order system for the space-time d'Alembert operator with wave speed c. |
|
Constructs the strong form of linear elasticity in Voigt notation, displacement based. |
|
Constructs the weak form of linear elasticity in Voigt notation, displacement based. |
|
Constructs the first order system (FOS) of linear elasticity in Voigt notation, displacement based. |
|
Constructs the weak form of Neumann boundary conditions for the virtual work of surface tractions or heat inflow. |
Nonlinear equations
Constructs the inviscid Burgers' equation: du/dt + u * du/dx = 0. |
|
|
Constructs a first-order PDE system for given strain energy function |
|
Constructs the weak form of hyperelasticity for given strain energy function |
|
Constructs the steady-state incompressible Navier-Stokes equations. |
|
Constructs the transient incompressible Navier-Stokes equations. |
Strain energy functions
|
Computes the strain energy for a neo-Hookean material model of Ciarlet type given the deformation gradient. |
|
Computes the strain energy for an isochoric neo-Hookean material model. |
|
Computes the strain energy for a linear elastic material for small deformations. |