Hello dear group,
I have one question which is about how to build global stiffness matrix with cell stiffness matrix.
In our project,the density is a vector (actually we need a mu vector but in the code of deallii mu is a scalar)with different values,I would like to use the element of density vector to build cell matrix as written in the link below:
(starting from line 1782)
And finally the cell stiffness matrix is used to build global stiffness matrix,but I don' know how the global stiffness matrix is bulit with cell stiffness matrix.
(starting from line 1599)
//>>>>>>>>>>>>>>>>>>>>>>>>>>
constraints.distribute_local_to_global(
data.cell_matrix,
data.cell_rhs,
data.local_dof_indices,
tangent_matrix,
system_rhs);
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I have a idea that I use mu[0] to obtain the first cell_matrix and use mu[1] to get the second cell stiffness matrix ,step by step then I got final mu[m] to obtain the last cell stiffness matrix and in the end I use some function like
distribute_local_to_global to construct the global stiffness matrix,and system rhs and even the solutions.
But the hint information guides me to read the cm.templates.h file.
ewcfp I was a little confused ,I did not find the file from dealii lib.
could anyone provide any information or hint?
Thanks in advance!
Best regards
Lance
Could
I