Plotting surfaces doesn't work

Bug #1034187 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Undecided
Joachim Haga

Bug Description

It's not possible to view the mesh or contour field properly in 3D case. To reproduce, run elasticity demo

  demo/undocumented/elasticity

and press 'S' on plot screen. It does nothing.

Revision history for this message
Anders Logg (logg) wrote : Re: [Bug 1034187] [NEW] Plotting surfaces doesn't work

Yes it does. It toggles the wireframe/solid mode for the arrows.

--
Anders

On Tue, Aug 07, 2012 at 10:39:47PM -0000, Garth Wells wrote:
> Public bug reported:
>
> It's not possible to view the mesh or contour field properly in 3D case.
> To reproduce, run elasticity demo
>
> demo/undocumented/elasticity
>
> and press 'S' on plot screen. It does nothing.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>

Revision history for this message
Joachim Haga (jobh) wrote :

I have added a shortcut key 'm' that views the mesh (wireframe) also for glyps (arrows) mode. Is that sufficient, or do we also need a shortcut key to toggle between warped (displaced) mesh and glyphs (arrows)?

Changed in dolfin:
assignee: nobody → Joachim Haga (jobh)
status: New → In Progress
Revision history for this message
Joachim Haga (jobh) wrote :

Not sure if the "fix" of showing mesh along with glyphs (present in trunk) is sufficient to close this bug. Please advise.

Changed in dolfin:
status: In Progress → Incomplete
Revision history for this message
Anders Logg (logg) wrote :

I think the plotting for the elasticity demo looks perfect now. Open new bug if problem persists.

Changed in dolfin:
status: Incomplete → Fix Committed
Revision history for this message
Joachim Haga (jobh) wrote :

Just a couple of final notes:

1) This plot probably looks better when plotted as displacement (mode="displacement").

2) I see a problem with glyph scaling, which seems to be caused by mesh->hmax() returning a very high value on the gear mesh. Maybe a numerical precision thing. This:

In [1]: from dolfin import *
In [2]: m=Mesh("gear.xml.gz")
In [3]: c=Cell(m,18847)
In [4]: c.diameter()
Out[4]: 36.0014830310018
In [5]: c.volume()
Out[5]: 7.373890632542822e-11

Revision history for this message
Anders Logg (logg) wrote : Re: [Bug 1034187] Re: Plotting surfaces doesn't work

Yes, very suspicious.

Can you open a new bug report for this? (Fixing the gear grid).

--
Anders

On Mon, Nov 19, 2012 at 02:31:36PM -0000, Joachim Haga wrote:
> Just a couple of final notes:
>
> 1) This plot probably looks better when plotted as displacement
> (mode="displacement").
>
> 2) I see a problem with glyph scaling, which seems to be caused by
> mesh->hmax() returning a very high value on the gear mesh. Maybe a
> numerical precision thing. This:
>
> In [1]: from dolfin import *
> In [2]: m=Mesh("gear.xml.gz")
> In [3]: c=Cell(m,18847)
> In [4]: c.diameter()
> Out[4]: 36.0014830310018
> In [5]: c.volume()
> Out[5]: 7.373890632542822e-11
>

Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.