This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/coupled/pUCoupledFoam/initializeBlockMatrix.H

9 lines
258 B
C

// Create block matrix
BlockLduMatrix<vector4> A(mesh);
// Block matrix - create x and b
vector4Field& x = Up.internalField();
vector4Field b(x.size(), vector4::zero);
// Set block interfaces properly
A.interfaces() = Up.boundaryField().blockInterfaces();