liblaf.apple.jax.sim.model
¤
Classes:
-
Model
– -
ModelBuilder
–
Model
¤
Parameters:
-
energies
(Mapping[str, Energy]
, default:<class 'dict'>
) –dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Methods:
-
fun
– -
fun_and_jac
– -
hess_diag
– -
hess_prod
– -
hess_quad
– -
jac
– -
jac_and_hess_diag
– -
mixed_derivative_prod
–
Attributes:
fun
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
16 17 18 19 20 |
|
fun_and_jac
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
hess_diag
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
hess_prod
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
hess_quad
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
76 77 78 79 80 81 82 |
|
jac
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
jac_and_hess_diag
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
|
mixed_derivative_prod
¤
Source code in src/liblaf/apple/jax/sim/model/_model.py
128 129 130 131 132 133 134 135 |
|
ModelBuilder
¤
Parameters:
-
dirichlet
(DirichletBuilder
, default:<dynamic>
) – -
energies
(dict[str, Energy]
, default:<class 'dict'>
) –dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
-
points
(Float[Array, 'p J']
, default:Array([], shape=(0, 3), dtype=float32)
) –
Methods:
-
add_dirichlet
– -
add_energy
– -
assign_dofs
– -
finish
–
Attributes:
-
dirichlet
(DirichletBuilder
) – -
energies
(dict[str, Energy]
) – -
n_points
(int
) – -
points
(Float[Array, 'p J']
) –
dirichlet
class-attribute
instance-attribute
¤
dirichlet: DirichletBuilder = field(
factory=DirichletBuilder
)
points
class-attribute
instance-attribute
¤
points: Float[Array, "p J"] = array(factory=_default_points)
add_dirichlet
¤
add_dirichlet(mesh: DataSet) -> None
Source code in src/liblaf/apple/jax/sim/model/_model_builder.py
27 28 |
|
add_energy
¤
add_energy(energy: Energy) -> None
Source code in src/liblaf/apple/jax/sim/model/_model_builder.py
30 31 |
|
assign_dofs
¤
assign_dofs(mesh: T) -> T
Source code in src/liblaf/apple/jax/sim/model/_model_builder.py
33 34 35 36 37 38 39 |
|