<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>I post the problem abou itk::fem several times, but no any 
reply. I need your help very much and any reply will be 
appreciated!</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>1. may be a bug in the itk::fem::applyBC</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>The extracted code from the 
code\numerics\fem\femsolver.cxx is shown below:</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>&nbsp; // Step over each nonzero matrix element in a 
row<BR>&nbsp; for(LinearSystemWrapper::ColumnArray::iterator c=cols.begin(); 
c!=cols.end(); c++)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; // Get value from the 
stiffness matrix<BR><STRONG>&nbsp;&nbsp;&nbsp; Float 
d=this-&gt;m_ls-&gt;GetMatrixValue(fdof, *c, matrix);</STRONG></FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>&nbsp;&nbsp;&nbsp; // Store the appropriate value in bc 
correction vector (-K12*u2)<BR>&nbsp;&nbsp;&nbsp; //<BR>&nbsp;&nbsp;&nbsp; // 
See </FONT><A 
href="http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch04.d/IFEM.Ch04.pdf"><FONT 
size=3>http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch04.d/IFEM.Ch04.pdf</FONT></A><BR><FONT 
size=3>&nbsp;&nbsp;&nbsp; // chapter 4.1.3 (Matrix Forms of DBC Application 
Methods) for more info.<BR>&nbsp;&nbsp;&nbsp; 
this-&gt;m_ls-&gt;AddVectorValue(*c,-d*fixedvalue,1);<BR>&nbsp; }</FONT></DIV>
<DIV><FONT size=3><BR></FONT>&nbsp;</DIV>
<DIV><FONT size=3>the method which itk use to apply BC&nbsp;is in the </FONT><A 
href="http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch04.d/IFEM.Ch04.pdf"><FONT 
size=3>http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch04.d/IFEM.Ch04.pdf</FONT></A><FONT 
size=3>&nbsp;</FONT></DIV>
<DIV><FONT size=3>However, the code in the Bold format may be wrong. It should 
be :</FONT></DIV>
<DIV><STRONG><FONT size=3>Float 
d=this-&gt;m_ls-&gt;GetMatrixValue(*c,fdof,&nbsp; matrix);</FONT></STRONG></DIV>
<DIV><STRONG><FONT size=3></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT size=3>I need your affirmation!</FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>2. I fix some DOFs with specific values when applying the BC, 
however, the solution of the linear system is different&nbsp;at&nbsp;DOF which 
I&nbsp;fix&nbsp;with&nbsp;the specific value. </FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>Thank you in advance!</FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>Regards,</FONT></DIV>
<DIV><FONT size=3></FONT>&nbsp;</DIV>
<DIV><FONT size=3>Yixun Liu</FONT></DIV>
<DIV><FONT face=ËÎÌå></FONT>&nbsp;</DIV></FONT></BODY></HTML>