[Paraview] plot a field on a deformed domain?

Chong Luo luo.chong at yahoo.com
Wed Nov 18 15:38:35 EST 2009


Sven,

It works great! Thank you so much for your help!

Best,
Chong

----- Original Message ----
From: Sven Buijssen <sven.buijssen at tu-dortmund.de>
To: Chong Luo <luo.chong at yahoo.com>
Cc: paraview at paraview.org
Sent: Wed, November 18, 2009 1:58:08 PM
Subject: Re: [Paraview] plot a field on a deformed domain?

Chong Luo

Basically, you are looking for the Append Attributes filter.
There is just the small difficulty that both your data sets provide a
point data set with the same name. The Append Attributes filter does not
handle that case particularly well, it discards the second point data
set. To work around this, either manipulate the *.vtu files and change
the name from "U" to something else (or instruct FEniCS to do so) or use
a calculator filter in ParaView first to rename the point data set
(actually, to clone the point data set using a different name).

Here's how:
  Load displacement000010.vtu
  Apply Calculator filter:
    Operation: U.
    Result Array Name: DISP
  Load orientation000010.vtu
  Apply Calculator filter:
    Operation: U.
    Result Array Name: ORIENTATION
  Select both Calculator objects (by Ctrl key + mouse click) and
   apply AppendAttributes filter
  Apply WarpByVector filter
  Color by "ORIENTATION"

Sven


> The results are saved by the software FEniCS, and have ending ".vtu".  I have attached them in the attachment. 
> 
> The file displacment000010.vtu stores the displacement field u, and the file orientation000010.vtu stores the director field n. They are both defined on the same mesh. I want to plot the glyph of the field n on the deformed domain (the domain after applying the warp filter on the displacement u). 
> 
> I hope I have made myself clear. Thank you for your time.
> 
> Best,
> Chong
> 
> ----- Original Message ----
> From: Samuel Key <samuelkey at bresnan.net>
> To: Chong Luo <luo.chong at yahoo.com>
> Sent: Wed, November 18, 2009 12:38:53 PM
> Subject: Re: [Paraview] plot a field on a deformed domain?
> 
> Chong Luo--
> 
> Let us go back to square 1.  What is the results file-format in which 
> you have placed your computed results and expect ParaView to read? 
> vtk-legacy, vtk-XML, EnSight, Exodus-II, ...
> 
> --Sam
> 
> Chong Luo wrote:
>> Sam, thank you for your reply.
>>
>> But the pressure p and displacement u are saved in two different files. For each field, I know how to use warp filter or glyph filter etc. But I don't know how to plot field p on the domain warped by displacement u. 
>>
>> Any suggestions? Thank you!
>>
>> Best,
>> Chong
>>
>> ----- Original Message ----
>> From: Samuel Key <samuelkey at bresnan.net>
>> To: Chong Luo <luo.chong at yahoo.com>
>> Cc: paraview at paraview.org
>> Sent: Wed, November 18, 2009 7:48:29 AM
>> Subject: Re: [Paraview] plot a field on a deformed domain?
>>
>> Chong Luo--
>>
>> Use the Warp filter.
>>
>> --Sam
>>
>> Chong Luo wrote:
>>> Hi,
>>>
>>> Suppose we solve for elasticity, and get displacement field u and pressure field p. How do we plot the field p on the deformed domain \Omega+u(\Omega), instead of the original domain \Omega?
>>>
>>> Thank you!
>>>
>>> Best,
>>> Chong



      


More information about the ParaView mailing list