|
NEML2 2.1.0
|
Nonlinear system wrapper for models.
Public Member Functions | |
| AssembledMatrix | A (self) |
| tuple[AssembledMatrix, AssembledMatrix] | A_and_B (self) |
| tuple[AssembledMatrix, AssembledMatrix, AssembledVector] | A_and_B_and_b (self) |
| tuple[AssembledMatrix, AssembledVector] | A_and_b (self) |
| neml2.core.TensorValue | __getattr__ (self, str arg0) |
| None | __setattr__ (self, str arg0, neml2.TensorLike arg1) |
| AssembledVector | b (self) |
| AxisLayout | blayout (self) |
| AssembledVector | g (self) |
| neml2.core.TensorValue | get_parameter (self, str arg0) |
| AxisLayout | glayout (self) |
| neml2.core.Model | model (self) |
| dict[str, neml2.core.TensorValue] | named_buffers (self) |
| dict[str, neml2.core.TensorValue] | named_parameters (self) |
| None | set_g (self, AssembledVector g) |
| None | set_parameter (self, str arg0, neml2.TensorLike arg1) |
| None | set_parameters (self, dict[str, neml2.TensorLike] arg0) |
| None | set_u (self, AssembledVector u) |
| None | to (self, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False) |
| AssembledVector | u (self) |
| AxisLayout | ulayout (self) |
| neml2.core.TensorValue __getattr__ | ( | self, | |
| str | arg0 ) |
Get a model parameter given its name
| None __setattr__ | ( | self, | |
| str | arg0, | ||
| neml2.TensorLike | arg1 ) |
Set the value for a model parameter
| AssembledMatrix A | ( | self | ) |
Get the system matrix for this nonlinear system
| tuple[AssembledMatrix, AssembledMatrix] A_and_B | ( | self | ) |
Get the system matrix and the auxiliary system matrix for this nonlinear system
| tuple[AssembledMatrix, AssembledVector] A_and_b | ( | self | ) |
Get the system matrix and the right-hand side vector for this nonlinear system
| tuple[AssembledMatrix, AssembledMatrix, AssembledVector] A_and_B_and_b | ( | self | ) |
Get the system matrix, auxiliary system matrix, and the right-hand side vector for this nonlinear system
| AssembledVector b | ( | self | ) |
Get the right-hand side vector for this nonlinear system
| AxisLayout blayout | ( | self | ) |
Get the ID-to-RHS-shape mapping for this nonlinear system
| AssembledVector g | ( | self | ) |
Get the given variables for this nonlinear system
| neml2.core.TensorValue get_parameter | ( | self, | |
| str | arg0 ) |
Get a model parameter given its name
| AxisLayout glayout | ( | self | ) |
Get the ID-to-given-base-shape mapping for this nonlinear system
| neml2.core.Model model | ( | self | ) |
Get the model defining this nonlinear system
| dict[str, neml2.core.TensorValue] named_buffers | ( | self | ) |
Get the model buffers. The keys of the returned dictionary are the buffers' names.
| dict[str, neml2.core.TensorValue] named_parameters | ( | self | ) |
Get the model parameters. The keys of the returned dictionary are the parameters' names.
| None set_g | ( | self, | |
| AssembledVector | g ) |
Set the given variables for this nonlinear system
| None set_parameter | ( | self, | |
| str | arg0, | ||
| neml2.TensorLike | arg1 ) |
Set the value for a model parameter
| None set_parameters | ( | self, | |
| dict[str, neml2.TensorLike] | arg0 ) |
Set the values for multiple model parameters
| None set_u | ( | self, | |
| AssembledVector | u ) |
Set the unknowns for this nonlinear system
| None to | ( | self, | |
| * | , | ||
| torch.dtype | dtype = ..., | ||
| torch.device | device = ..., | ||
| bool | requires_grad = False ) |
| AssembledVector u | ( | self | ) |
Get the unknowns for this nonlinear system
| AxisLayout ulayout | ( | self | ) |
Get the ID-to-unknown-base-shape mapping for this nonlinear system