dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11737
Re: [Deb-dev] Runtime Error when running the FEniCS tutorial demo after installation on kubuntu-hardy system
On Thu, Jan 15, 2009 at 11:52:59PM +0100, Timm Höhr wrote:
> I just installed it a few days ago but, yes, there was a more recent
> FEniCS available. After updating, the newer example works, the old one
> not anymore, so it makes sense.
>
> But - new or old example - still I did not succeed to plot it in
> paraview as a surface plot. I want it displayed in a similar way as what
> is popping up after running the demo script.
> 'warp scalar' did not help. I wonder whats wrong, it should be a common
> way to plot.
Just open the plot (poisson.pvd), then press
Filters - Alphabetical - Warp (scalar) - Apply
Then rotate the figure and change the scaling. Works for me.
> Let me know, if this discussion should take place elsewhere.
Probably on some paraview-users list, but dolfin-dev is the closest
we've got.
--
Anders
> Regards,
> Timm
>
> Anders Logg wrote:
>> On Wed, Jan 14, 2009 at 10:41:56PM +0100, Timm Höhr wrote:
>>> Johannes Ring wrote:
>>>
>>>>>>> ParaView is in the latest Ubuntu release (Intrepid) and you should be
>>>>>>> able
>>>>>>> to install it on Hardy by enabling the Intrepid sources temporarily.
>>>>>>> Let
>>>>>>> me know if you want some instructions on how to do this.
>>>>>>>
>>>>>> Yes, I would appreciate some instructions.
>>>>> If you can't get it through your package manager, the the easiest it to
>>>>> just download ParaView from www.paraview.org. It's distributed as a
>>>>> binary executable.
>>> Hi Garth and Johannes,
>>>
>>> I tried the ParaView binary and it worked. Thanks.
>>> I was able to load the vtk-file that was produced by running the
>>> FEniCS demo script.
>>> But I did not find out how to plot something different than a flat
>>> surface where u(x,y) only determines the color. I would have liked
>>> u(x,y) to define the height z of the graph, to get a topographic
>>> impression of the solution. But that is maybe a ParaView question and
>>> does not belong here, unless you happen to know.
>>
>> Try the filter named "warp scalar".
>>
>>> By the way, I used the old demo.py that is presented in the FEniCS
>>> tutorial. The current one results in the following error (thereby
>>> getting back to - well, closer to - the original thread topic):
>>>
>>> # python demo.py
>>> Traceback (most recent call last):
>>> File "demo.py", line 5, in <module>
>>> V = FunctionSpace(mesh, "CG", 1)
>>> NameError: name 'FunctionSpace' is not defined
>>
>> Looks like you have an old version of DOLFIN installed.
>>
Attachment:
signature.asc
Description: Digital signature