Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- add3
- Element-wise addition of two 3D vectors.
- allen_
cahn_ step - Advance the Allen-Cahn phase-field
φby one explicit time step. - arlequin_
blend_ energy - Handshake zone energy correction to remove double-counting in concurrent multiscale coupling.
- atomistic_
temperature - Compute the instantaneous temperature of a group of atoms via the
equipartition theorem:
T = 2 KE / (3 N k_B). - cauchy_
born_ modulus - Linear elasticity tangent modulus from a set of atom-pair bond stiffnesses.
- cauchy_
born_ stress_ 1d - Cauchy-Born rule: compute the first Piola-Kirchhoff stress from a
deformation gradient
Fusing a linearised atomistic model. - cell_
problem_ 1d - Solve the scalar periodic cell problem via finite differences to obtain the effective conductivity in the x-direction.
- centre_
of_ mass_ velocity - Compute the centre-of-mass velocity of a group of atoms.
- cg_
bond_ force - Compute harmonic bond force between two CG beads.
- check_
scale_ separation - Check scale separation: verifies that the micro length scale is at
least
factortimes smaller than the macro length scale. - dot3
- Dot product of two 3D vectors.
- hill_
mandel_ error - Compute the Hill-Mandel macrohomogeneity condition error.
- hmm_
estimate_ flux - Compress micro-scale simulation data into a macro-scale flux estimate.
- homogenize_
two_ phase - Compute homogenized (effective) properties of a two-phase unit cell.
- lennard_
jones_ force - Lennard-Jones force magnitude (scalar, positive = repulsive).
- lennard_
jones_ potential - Lennard-Jones pair potential energy between two atoms.
- mat3_
add - Add two 3×3 matrices stored row-major.
- mat3_
frob - Frobenius norm of a 3×3 matrix.
- mat3_
identity - Identity 3×3 matrix.
- mat3_
scale - Scale a 3×3 matrix.
- mat3_
vec - Multiply a 3×3 row-major matrix by a 3-vector.
- mean_
squared_ displacement - Compute the mean squared displacement (MSD) of atoms relative to their reference positions.
- multigrid_
vcycle - Multigrid V-cycle for a 1-D Poisson problem.
- neb_
step - Perform one NEB step with spring forces.
- norm3
- Euclidean norm of a 3D vector.
- normalize3
- Normalize a 3D vector to unit length.
- prolongation_
linear - Prolongation operator: interpolate a coarse-grid vector to the fine grid using piecewise-linear interpolation.
- restriction_
l2 - Restriction operator: project a fine-grid vector onto a coarse grid by L2-projection (average over blocks).
- scale3
- Scale a 3D vector by a scalar.
- solve_
macro_ diffusion_ 1d - Solve 1-D steady-state diffusion with heterogeneous effective conductivity using a finite-difference discretisation.
- sub3
- Element-wise subtraction of two 3D vectors.
- umbrella_
free_ energy - Compute the coarse-grained potential energy surface along a reaction coordinate.
- virial_
stress_ tensor - Hardy stress tensor estimator for the atomistic region.