<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman"; color: black; font-size: 16px;">Dear All£¬</span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman"; color: black; font-size: 16px;"><br></span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman"; font-size: 16px;"> I hope you're having a nice day.</span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-size: 16px;"><span lang="EN-US" style="font-size: 16px; font-family: "Times New Roman", serif;"> In finite element problems</span><font face="Times New Roman">, </font><span lang="EN-US" style="font-size: 16px; font-family: "Times New Roman", serif;">the stiffness matrix and <span style="font-size: 16px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">load vector</span> are constructed to calculate the displacement
vector using DMCreateMatrix and DMCreateGlobalVector, respectively. For some reason, I need to
make sure that the displacements of nodes on the opposite edges of two-dimensional
structured grid domain satisfy relative displacement condition. For example, the
displacements of two points with natural coordinates (x,Ymin)
and (x,Ymax)</span></span><span style="font-size: 16px;"><span lang="EN-US" style="font-family: "Times New Roman", serif;">, i.e. the points are located on the upper and lower edges of 2D grid </span></span><span style="font-family: "Times New Roman", serif; font-size: 16px;">domain</span><span style="font-family: "Times New Roman", serif; font-size: 16px;"> </span><span style="font-family: "Times New Roman", serif; font-size: 16px;">and have the
same x-coordinates, are equal </span><span style="font-family: "Times New Roman", serif; font-size: 10.5pt;">respectively</span><span style="font-family: "Times New Roman", serif; font-size: 16px;">. To achieve this, I need to add particularly
big numbers to specific entries in stiffness matrix. In this way, the positions
of big numbers are usually far away from each other and belong to different
processes. I have tried many KSP types and PC settings to solve displacement
vector. However, the final results are mostly incorrect. The best solver type I
have tried is cg, but it still has some problems like excessive time consuming
and convergence steps. So, for this problem, what kind of KSP type and PC type are suitable? Or is there a way to speed up the calculation
process?</span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman", serif; font-size: 16px;"><br></span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman"; font-size: 16px;">Thanks,</span></div><div style="text-align:left;mso-pagination:widow-orphan"><span style="font-family: "Times New Roman"; font-size: 16px;">Jackie Chan</span></div><span style="font-family: "Times New Roman";"></span><br></div>