<div dir="ltr">Hello Victor.<div style>First you must add the printing function to your element </div><div style><br></div><div style><div>   //TO PRINT ELEMENTAL VARIABLES (ONLY ONE GAUSS POINT PER ELEMENT)</div><div>    void FluidPhasePFEM22D::GetValueOnIntegrationPoints(const Variable&lt;double&gt;&amp; rVariable,</div><div>            std::vector&lt;double&gt;&amp; rValues,</div><div>            const ProcessInfo&amp; rCurrentProcessInfo)</div><div><span class="" style="white-space:pre">        </span>{</div><div><span class="" style="white-space:pre">                </span>if (rVariable == VISCOSITY)</div><div><span class="" style="white-space:pre">                </span>{</div><div><span class="" style="white-space:pre">                        </span>// Set output vector (for a single integration point)</div><div><span class="" style="white-space:pre">                        </span>rValues.resize(1, false);</div><div><span class="" style="white-space:pre">                        </span>rValues[0]=this-&gt;GetValue(VISCOSITY);</div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span>else if (rVariable == TAU)</div><div><span class="" style="white-space:pre">                </span>{</div><div><span class="" style="white-space:pre">                        </span>// Set output vector (for a single integration point)</div><div><span class="" style="white-space:pre">                        </span>rValues.resize(1, false);</div><div><span class="" style="white-space:pre">                        </span>rValues[0]=this-&gt;GetValue(TAU);</div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>else // Default behaviour (returns elemental data)</div><div><span class="" style="white-space:pre">                </span>{</div><div><span class="" style="white-space:pre">                        </span>rValues.resize(1, false);</div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div><br></div></div><div style><br></div><div style>and then, from python, the command is :</div><div style><br></div><div style>gid_io.PrintOnGaussPoints(TAU,model_part,time)<br></div><div style><br></div><div style>Hope that helps,</div><div style><br></div><div style>Pablo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2015 at 18:14, Víctor B <span dir="ltr">&lt;<a href="mailto:victorbzs@yahoo.es" target="_blank">victorbzs@yahoo.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>Hi everyone,</div><div><br></div><div dir="ltr">How I could write in the gid output from kratos variables by element?. I mean variables from the element database... I&#39;ve tried with writeElementalResults but it doesn&#39;t work (I found a document from the internet with that method: <a href="http://www.tdx.cat/bitstream/handle/10803/6868/10_PD_Capitol09_pp_205_258.pdf?sequence=10" style="background-color:rgb(255,255,255)" target="_blank">writeElementalResults</a>)</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Thanks in advanced</div><div dir="ltr"><br></div><div dir="ltr">Best</div><div dir="ltr"><br></div></div></div><br>_______________________________________________<br>
Kratos mailing list<br>
<a href="mailto:Kratos@listas.cimne.upc.edu">Kratos@listas.cimne.upc.edu</a><br>
<a href="http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/kratos" rel="noreferrer" target="_blank">http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/kratos</a><br>
<br></blockquote></div><br></div>