<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can't use Dof{eps[{d u}]}, that is not allowed. Sorry!<div>That is the reason why we split the displacement in components with a basis function per compoment: BF_NodeX, BF_NodeY and BF_NodeZ.</div><div><br></div><div><br></div><div>HTH,</div><div>Ruth</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering & Computer Science, </div><div>Applied & Computational Electromagnetics (ACE),</div><div>phone: +32-4-3663737 - fax: +32-4-3662910 - <a href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="Apple-interchange-newline"><br></div></span></div></span></span>
</div>
<br><div><div>On 25 Nov 2011, at 00:51, Saurabh Srivastava wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I am interested in the elasticity example, as I realized a new operator was D1/D2 was hard-coded to obtain symmetric gradient (which are unlike curl, grad, or div) of displacements. I'm attempting to get around this using the following approach ...essentially, I compute the exterior derivative of displacement vector then pass it to a function which converts this 2nd rank tensor into a vectorial (Voigt's) notation, <br>
<br>Thus I replace these lines ...<br><br>Formulation {<br>  { Name Mec2D_u ; Type FemEquation ;<br>    Quantity {<br>      { Name u ; Type Local ; NameOfSpace H_u_Mec2D ; }<br>    }<br>    Equation {<br>    //gu = Tensor[{d u}];<br>
      Galerkin { [ C_m[] * Dof{D1 u}, {D1 u} ] ;<br>                 In Domain_Disp ; Jacobian Vol ; Integration GradGrad ; } <br>      Galerkin { [ -F[] , {u} ] ;     <br>                 In Domain_Force; Jacobian SurLinVol; Integration GradGrad; }  <br>
    }<br>  }<br>}<br><br>-----------------with these lines------------------------<br>Function {<br>  eps[] = Vector[CompXX[$1], CompYY[$1], CompXY[$1] ];<br>}<br><br>Formulation {<br>  { Name Mec2D_uxuy ; Type FemEquation ;<br>
    Quantity {<br>      //{ Name ux; Type Local ; NameOfSpace H_uxuy_Mec2D ; }<br>      //{ Name uy; Type Local ; NameOfSpace H_uxuy_Mec2D ; }<br>      { Name u ; Type Local ; NameOfSpace H_u_Mec2D ; }<br>    }<br>    Equation {<br>
      Galerkin { [ C_m[] * Dof{eps[{d u}]}, {eps[{d u}]} ]; //line 175<br>                 In Domain_Disp ; Jacobian Vol ; Integration GradGrad ; } <br>      Galerkin { [ -F[] , {u} ] ;     <br>                 In Domain_Force; Jacobian SurLinVol; Integration GradGrad; } <br>
    }<br>  }<br><br>But I get the following error during pre-processing...<br><br>GetDP   : 'C:/Documents and Settings/xx/Desktop/getdp-2.1.1-Win32c/<a href="http://elasticity2d2.pro/">elasticity2d2.pro</a>', line 175 : syntax error ([)<br>
<br>Doesn't looks like its any bracketing issue as i fiddled around with that, What am I doing wrong?<br><br>Any help is appreciated.<br><br>Thank You,<br>-ss<br><br><br><br><br>
_______________________________________________<br>getdp mailing list<br><a href="mailto:getdp@geuz.org">getdp@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/getdp<br></blockquote></div><br></div></body></html>