particula.execution._condensation_block_kernels
Conservative block-arrowhead linear algebra for material-coupled ROS3.
Each particle has a dense local material Jacobian A and gas derivative B. Inventory conservation fixes the gas rows to minus the weighted particle rows. Eliminate local blocks M=qI-A, then solve the small per-box Schur system q*(I+sum(WM^-1B)). No population-sized dense matrix is allocated.
Functions
| Name | Description |
|---|---|
assemble_reservoirs | Assemble independent Schur entries in parallel, in fixed slot order. |
back_substitute | No description. |
eliminate_local | No description. |
extract | No description. |
invert_local | Invert each small local block with partial pivoting in float64. |
solve_reservoirs | Pivot the small per-box Schur matrix. |
assemble_reservoirsfunction#
def assemble_reservoirs(local: FloatTensor, response: FloatTensor, particular: FloatMatrix, counts: FloatMatrix, volume: FloatVector, scale: FloatVector, rhs: FloatVector, targets: IntVector, sources: IntVector, materials: int, gases: int, resolved: int, h: FloatVector, schur: FloatTensor)Assemble independent Schur entries in parallel, in fixed slot order.
back_substitutefunction#
def back_substitute(response: FloatTensor, particular: FloatMatrix, rhs: FloatVector, targets: IntVector, sources: IntVector, reverse_target: IntVector, reverse_source: IntVector, slots: int, materials: int, gases: int, h: FloatVector, solution: FloatVector, invalid: IntVector)eliminate_localfunction#
def eliminate_local(inverse: FloatTensor, gas_columns: FloatTensor, rhs: FloatVector, targets: IntVector, materials: int, response: FloatTensor, particular: FloatMatrix)extractfunction#
def extract(plus: FloatVector, minus: FloatVector, span: FloatVector, counts: FloatMatrix, targets: IntVector, sources: IntVector, materials: int, gases: int, column: int, gas_column: int, derivative: FloatTensor, invalid: IntVector)invert_localfunction#
def invert_local(local: FloatTensor, h: FloatVector, augmented: FloatTensor, inverse: FloatTensor, invalid: IntVector)Invert each small local block with partial pivoting in float64.
solve_reservoirsfunction#
def solve_reservoirs(schur: FloatTensor, sources: IntVector, mass_size: int, gases: int, solution: FloatVector, invalid: IntVector)Pivot the small per-box Schur matrix.