[Paraview] Plot over spline or intersecting plane

2017-06-09 Thread Scott, W Alan
I am trying to figure out how to plot over more complex surfaces than a 
straight line.  Say a user wants to plot over a curved line, with the line 
matching the inside surface of the can.exo.  Can you now do this?  How would a 
user control the line?

Is the Plot On Intersection Curves filter what I want?

Thanks,

Alan

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Calculation of Lambda2 using ParaView...

2017-06-09 Thread Andy Bauer
Hi,

Maybe compute each portion manually and check that against the correct
values. Also, verifying the gradient calculation is correct is another
thing to look at. If the grid isn't specified properly then the gradient
operation will likely be wrong.

On Fri, Jun 9, 2017 at 8:46 AM, Stefan Melber  wrote:

> Hi,
>
>
> for vortex-detection i (tried) to calculate the lambda2-criterion (see
> e.g. https://en.wikipedia.org/wiki/Lambda2_method) with ParaView. The way
> of calculation is based on this link http://www.iesensor.com/blog/
> 2016/01/24/using-paraview-to-visualise-vorticity-lambda2-
> vorticity-q-criterion/.
>
> However - the results are a kind of "wrong" - see attached pictures:
> l2_solver.png shows what the flow solver writes out for lambda2,
> l2_paraview.png shows what calculated with the algorithm below.
>
> Calculation of lambda2:
>
> D = Gradients = [d_ij]
> S = strain(Vel)
>
> S = (D + D^T)/2
> Omega = (D - D^T)/2
>
> lambda = EigenValue_of(S^2 + Omega^2)
>= EigenValue_of(S^2 + (D - S)^2)
>= EigenValue_of(S^2 + (Gradients - strain(vel))^2)
>
> lambda2 = lambda_Y
>
> and in ParaView this mean
>
> o Vector of velocity with "Calculator".: Vel =
> iHat*x_velocity+jHat*y_velocity+kHat*z_velocity
> o Gradients of Vel with "GradientOfUnstructuredDataSet": switch on
> "compute gradient" and name it "Gradients"
> o Calculate lambda with "PythonCalculator".: lambda =
> eigenvalue(strain(Vel)**2+(Gradients - strain(Vel))**2)
> o Caluclate lambda2 with Calculator: lambda2 =
> lambda_Y
>
>
>
> Does anyone see the error why the calculation of lambda2 with ParaView
> does not work?
>
> Remark: i contacted the author of the blog above already - seems he never
> tested his calculation and has no idea what is "wrong".
>
> Stefan
>
>
>
> 
>
>  _/ *Dr. Stefan Melber-Wilkending*
>_/_/
>  _/  _/ Deutsches Zentrum für Luft-
>  _/_/_/_/_/_/_/_/_/_/ und Raumfahrt e.V. (DLR)
>_/_/_/_/
>  _/_/_/_/ German Aerospace Center
>_/_/_/_/_/_/_/_/_/_/  Institute of Aerodynamics
>  _/  _/  _  _   and Flow Technology
>  _/_/   | \ |  |_|   Transport Aircraft Branch
>  _/ |_/ |_ | \
>  Lilienthalplatz 7
>  Fields of activities:  38108 Braunschweig
>  Germany
>  o Numerical Windtunnel Simulation
>  o Aero-Acoustic Windtunnel DesignPhone : +49 531/295-2836
> <(531)%20295-2836>
>  o Numerical Optimization Fax. .: +49 531/295-2914
> <(531)%20295-2914>
>  o Visualization Techniques
>  o High-Lift Aerodynamics   Email : stefan.mel...@dlr.de
>  o Glider-Aerodynamics  Web ..: http://www.dlr.de/AS
>
>
> 
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] How to create a vtkModule in Paraview

2017-06-09 Thread Simon-Pierre Desjardins
Hi,


Still no success trying to make the module produce a .lib. Does anyone have an 
idea of what I could be missing?


Thank you,


Simon-Pierre Desjardins



De : Simon-Pierre Desjardins 
Envoyé : 6 juin 2017 14:52
À : Utkarsh Ayachit
Cc : paraview@paraview.org
Objet : RE: [Paraview] How to create a vtkModule in Paraview


Hi Utkarsh,


I have tried adding the path to my external module via 
PARAVIEW_EXTERNAL_MODULE_ROOTS in cmake. I am able to compile the module in 
VS2015 but it only creates a .dll file. Usually, at least from what I've seen 
with the other modules, a library is also created which is needed to use the 
plugins in the modules. I have checked all the documentation and did a really 
simple module containing only a single plugin.


Here is an overview of what it looks like:


module.cmake:


vtk_module(vtkSPXModule
  GROUPS
StandAlone
  DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkCommonMisc
vtkPVVTKExtensionsRendering
vtkFiltersGeneral
TEST_DEPENDS
vtkTestingCore
KIT
vtkRemote
  )



and the Cmakelist.txt:


set(Module_SRCS
  TestPlugin.cxx
  )


vtk_module_library(vtkSPXModule ${Module_SRCS})


I referred myself to this example that seemed to work 
https://github.com/lorensen/vtkAddon/blob/master/module.cmake


Overall, to make sure it's clear, I am able to compile the module and I'm able 
to see it in my solution. The problem is more so linked to the creation of the 
.lib that isn't being done. Any idea what could cause that?

Thank you,

Simon-Pierre


De : Utkarsh Ayachit 
Envoyé : 5 juin 2017 11:02
À : Simon-Pierre Desjardins
Cc : paraview@paraview.org
Objet : Re: [Paraview] How to create a vtkModule in Paraview

Simon,

While plugins can have internal modules, it's really not designed to share 
those with other plugins. You have two options:

1. combine both plugins into a single one.
2. make the module a standard ParaView/VTK module that added via 
PARAVIEW_EXTERNAL_MODULE_ROOTS CMake variable, then the two plugins can use the 
module just liek any other ParaView/VTK module.

Utkarsh

On Thu, Jun 1, 2017 at 3:03 PM, Simon-Pierre Desjardins 
mailto:sp_desjard...@hotmail.com>> wrote:

Hi,

I created a custom plugin that I want to use in a second plugin. To do so, I 
want to create a module with the custom plugin to be able to use it in my 
second one.

I tried creating the module following the instructions on 
http://www.vtk.org/Wiki/VTK/Module_Development but it did not work.


Basically, I am able to compile my module and create a .dll with it but I can't 
seem to be able to create the .lib and .ext necessary.

I also added my module in the VTKModule.cmake. I'm unsure why it is not 
generating a .lib since I can see the line add_library in the cmake file 
generated for vtkmodules with my module name.


Could anyone try to help me figure out what I'm missing?


Thank you,


Simon-Pierre Desjardins




I'm compiling using Visual studio 2015 and Windows 10 64bits


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] VTU files for multi-body FEA models.

2017-06-09 Thread kenichiro yoshimi
Hi Jesse,

Usually vtkMultiBlockDataSet is used so as to store multi-body datasets and
the corresponding file format is a VTK vtkMultiBlockDataSet format
(.vtm). But in time development model such as your case, you'd better
use a ParaView Data format (.pvd) because vtm can't handle time
information. I attach the pvd file sample.

I also think the Multiblock Inspector is very convenient in multiblock
processing.
https://blog.kitware.com/upgrades-to-the-multiblock-inspector/

Thanks,

2017-06-07 1:22 GMT+09:00 Jesse Gerber :
> Hello,
>
> I am a mechanical engineering grad student. This question is regarding an
> active research project in our lab. We wrote a FEA program in C++ for 3D
> solid mechanics problems. At each time step, we output a vtu file using the
> unstructured grid format. Finally, we output a pvd file that creates a
> collection and associates a time step value with each vtu file. So far, we
> have been working with a single body, comprised of multiple hexahedral
> elements. Our point data consists of displacement, velocity, and
> acceleration. Our cell data consists of centroid stress and centroid strain.
>
> We now want to start solving multi-body models. Do we have to write a
> separate vtu file for each body, at each time step? Is there a way to
> combine multiple bodies into a single vtu file, at each time step, in a way
> that we can still view them as separate parts in ParaView? I would like be
> able to use show/hide and color on a part basis. How do people usually
> handle this sort of thing? For example, if I have 10 parts, will I have 10
> separate vtu files at each time step? Note that, within the FEA code, we
> define a part_id for each element in the model. Is there a way I can
> associate each element with a part_id in the vtu file? That way ParaView
> could tell the difference between each part?
>
> Thank you for your help!
>
>
>
> Best regards,
>
>
>
> Jesse
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


pvd_sample.7z
Description: Binary data
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview