<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Chaitanya,</tt></p>
<p><tt>Make two VTK-formatted files from MATLAB -- one with 'x' and
one with 'Y'.</tt></p>
<p><tt>Read both into ParaView and use the Group capability to
nominally join them to get a single datum set. From there you
can process them as a single datum set. If you need a 2-vector,
use the calculator filter using ihat and jhat to them
represented as a two-vector.</tt></p>
<p><tt>Sam</tt><br>
</p>
<br>
<div class="moz-cite-prefix">On 11/20/2016 10:41 AM, Chaitanya Raj
Goyal wrote:<br>
</div>
<blockquote
cite="mid:CAPXVtiRn+GpbMDNqZ1H0TEcCk=FkEXRe+kxFdkaH0OUve7xhdQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello fellow members,</div>
<div><br>
</div>
<div>I am solving a 2D hyperbolic PDE, which gives me a solution
in 'x' and 'y' direction for each node on the mesh, for each
time step. Therefore, if I freeze the time step, I have a
solution vector in 'x', and 'y', for the whole mesh, i.e., a
single value in both 'x' and 'y' direction, for each node on
mesh.</div>
<div><br>
</div>
<div>It looks like this when the solution is initially viewed in
Paraview. Observe any one of the below.</div>
<div><br>
</div>
<div><img src="cid:part1.26CE586F.BF8E2DB2@bresnan.net"
height="306" width="544"><br>
<br>
</div>
<div>
<div>You can notice the 'x' and 'y' solution for all points
(nodes). The no. of rows is the total no. of nodes on mesh.</div>
<div><br>
</div>
<div>Then, I convert this vtk file to .csv, and import it to
MATLAB, where I run some post processing on the 'x' and 'y'
solution vectors. Now, I have replaced the originally
imported solution vectors 'x' and 'y', with some new values.
I wanted to take back these new solutions to Paraview again
for plotting. So I used a tool called vtktrisurf in MATLAB.
The problem was that this tool only takes 1 solution vector,
i.e., I can either give the 'x' solution vector or 'y'. So,
I used pythagoras theorem on respective elements of 'x' and
'y' solutions, to generate a single vector. The vtk was
created, and the simulation in PARAVIEW was exactly what I
was hoping to see. However, when I use pythagoras theorem, I
convert all negative components of the solution to positive.
It will show me what I want to see when there is no scalar
warping. However, when I warp it with scalar in Paraview, it
shows the entire profile in positive values. That is not
actually true, because there were negative values in the
solution. Long story short, how can I view the correct
simulation. Maybe the answer goes back to the point where I
convert my matrix in MATLAB to vtk. I also have the option
of creating a separate vtk for 'x' solution and separate for
'y'. In that case, is there a way to superpose them in
Paraview to view the correct profile?</div>
<div><br>
</div>
<div>Thanks a lot for your time and help!</div>
</div>
<div><br>
</div>
<div>Sincerely,</div>
<div>Chaitanya</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>