<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1451509971344_4364">Hello all, <br></div><div id="yui_3_16_0_1_1451509971344_5138" dir="ltr"><br></div><div id="yui_3_16_0_1_1451509971344_5113" dir="ltr">I am trying to visualize complex vibration modes with Paraview. Unlike in a real mode, points in a complex mode have different phases. Please see previous discussions on this subject:</div><div id="yui_3_16_0_1_1451509971344_5168" dir="ltr"><a id="yui_3_16_0_1_1451509971344_5167" href="http://www.salome-platform.org/forum/forum_10/587894859">http://www.salome-platform.org/forum/forum_10/587894859</a></div><div id="yui_3_16_0_1_1451509971344_5170" dir="ltr"><a id="yui_3_16_0_1_1451509971344_5200" href="http://www.paraview.org/pipermail/paraview/2011-December/023538.html">http://www.paraview.org/pipermail/paraview/2011-December/023538.html</a><br></div><div id="yui_3_16_0_1_1451509971344_5088" dir="ltr"><br></div><div id="yui_3_16_0_1_1451509971344_5342" dir="ltr">The Paraview version included in Salome has a macro for modal visualization. I've put that macro and a MED file containing both real and imaginary parts of the mode shapes and another two other MED files for separate real and imaginary parts in the following shared folder. <br></div><div id="yui_3_16_0_1_1451509971344_5344" dir="ltr"><a id="yui_3_16_0_1_1451509971344_4927" href="http://1drv.ms/1TqggEK"><br></a></div><div id="yui_3_16_0_1_1451509971344_5087" dir="ltr"><a id="yui_3_16_0_1_1451509971344_4927" href="http://1drv.ms/1TqggEK">http://1drv.ms/1TqggEK</a><br></div><div id="yui_3_16_0_1_1451509971344_4364"><br></div><div class="" id="yui_3_16_0_1_1451509971344_7048" dir="ltr" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The real mode animation in the mode macro is based on applying ExtractSurface(), ScaleVector(), WarpByVector() in cascade and animating the ScaleVector using a sinusoidal interpolation in a CompositeKeyFrame. However for a complex mode two components should drive the WrapByVector filter.<br></div>
<div class="" id="yui_3_16_0_1_1451509971344_6970" dir="ltr" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br class="" id="yui_3_16_0_1_1451509971344_6972"></div><div id="yui_3_16_0_1_1451509971344_6931">I describe my thoughts, which didn't solve the problem, below:</div><div id="yui_3_16_0_1_1451509971344_5565"><br></div><div dir="ltr" id="yui_3_16_0_1_1451509971344_5507">If the complex mode shape is a+jb, the animated mode shape should have a form like a cos(wt)+b cos(wt+pi/2). w is only for visualization and can be 2pi, 1, etc. t can come from the animation time. I learned about GetAnimationTime () that can be accessed inside a PythonAnimationCue (). Another way of getting the time is through CompositeKeyFrame for real and imaginary parts where "Phase" for one of them should be set to pi/2 (it is not clear to me whether the phase should be defined as deg or rad for CompositeKeyFrame). I guess at least one of my problem is that I don't know how to access data of the imaginary and real fields in the complex file or data of the two separate reader sources and do math operation on them to make a new field out of them and feed it to a wrap filter. <br></div><div id="yui_3_16_0_1_1451509971344_7438" dir="ltr"><br></div><div id="yui_3_16_0_1_1451509971344_7437" dir="ltr">Any thoughts would be appreciated.</div><div id="yui_3_16_0_1_1451509971344_7463" dir="ltr">Nima<br></div></div></body></html>