Use the function mphinputmatrix to set a linear matrix system to a model:
This command set the matrices of a linear system stored in the MATLAB® structure
<str> into the model. The linear system is associated to the solver sequence
<soltag> and is to be solved by the solver
<soltypetag>.
mphinputmatrix only supports the solver types Stationary, Eigenvalue, and Time.
A valid structure <str> for a stationary solver includes the following fields:
A valid structure <str> for a time-dependent or an eigenvalue solver includes the following fields:
With the mesh data structure data, you can get the element indices that belong to edge 2. Use the MATLAB
find function to list all the indices:
With the function mphxmeshinfo, retrieve the finite element mesh information associated to solver sequence
sol1:
In the info structure you can get the DOFs indices that belong to the edge element defined with the indices
elem_idx:
edgdofs_idx might contain duplicate DOFs indices. This is because the information is from the element level; the duplicate indices correspond to the connecting node between two adjacent elements.