Re: [deal.II] visualization with Matlab

2018-03-12 Thread Wolfgang Bangerth

On 03/12/2018 09:41 AM, Bryukhanov Ilya wrote:
Yeah, you're right that for analysis of FEM data it's more profitable to use 
for example Paraview.
However, I want to use Matlab not for the analysis of data but for the 
figures. I've got some points and lines
that I want to add on output figures. I can do these thing in Matlab easily, 
however, I need to somehow plot the

original solution. I'm just interesting if there is a simple way to do this.


I don't know of one. All of the visualization formats are complicated, so 
unless you can find a VTK or GMV or OpenDX reader for Matlab, it's going to be 
difficult. As I mentioned, the issue is made complicated by the fact that a 
mesh isn't just field data on a regular xyz grid, but also where the vertices 
are, how vertices connect to each other in cells, etc. Fields can also be 
discontinuous, in which case you have multiple values at the same point. All 
of this makes it difficult to define an "easy file format" that is then easy 
to read from Matlab.


If all you want is add some points and lines to a picture, then I'd say you'd 
be better off creating a VTK file that contains these points and lines, and 
make Paraview of Visit plot both the original solution file and your 
hand-written one.


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] visualization with Matlab

2018-03-12 Thread Bryukhanov Ilya
Yeah, you're right that for analysis of FEM data it's more profitable to 
use for example Paraview.
However, I want to use Matlab not for the analysis of data but for the 
figures. I've got some points and lines 
that I want to add on output figures. I can do these thing in Matlab 
easily, however, I need to somehow plot the 
original solution. I'm just interesting if there is a simple way to do 
this.  

On Monday, March 12, 2018 at 2:34:15 PM UTC+3, Wolfgang Bangerth wrote:
>
> On 03/12/2018 05:15 AM, Bryukhanov Ilya wrote: 
> > 
> > What is the easiest way to export the output field from dealii and plot 
> it in 
> > Matlab? 
>
> Why would you want to do that? Unless you have a structured mesh, the data 
> associated with a finite element field is a pretty complicated thing that 
> will 
> be difficult to import into Matlab. There are also much better 
> visualization 
> programs than Matlab. 
>
> But maybe you can explain in more detail what you want to do and why? 
>
> Best 
>   W. 
>
> -- 
>  
> Wolfgang Bangerth  email: bang...@colostate.edu 
>  
> www: http://www.math.colostate.edu/~bangerth/ 
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] visualization with Matlab

2018-03-12 Thread Wolfgang Bangerth

On 03/12/2018 05:15 AM, Bryukhanov Ilya wrote:


What is the easiest way to export the output field from dealii and plot it in 
Matlab?


Why would you want to do that? Unless you have a structured mesh, the data 
associated with a finite element field is a pretty complicated thing that will 
be difficult to import into Matlab. There are also much better visualization 
programs than Matlab.


But maybe you can explain in more detail what you want to do and why?

Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.