dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #04866
Re: Plotting works for elasticity demo
On Thu, Apr 26, 2007 at 01:30:53PM +0200, Garth N. Wells wrote:
> [...]
>
> Viper works great! Is it easy to send a snapshot to a file? Can it be
> called from C++?
>
> Garth
DOLFIN now has C++ bindings for plotting. These work in the same way
as the Python bindings:
// Plot function
plot(u);
// Plot mesh
plot(mesh);
When plot() is called, a temporary data file (DOLFIN XML format) and a
temporary Python script is created in /tmp. Then system() is called to
run the Python script.
Try it out (for example by running the Poisson demo). There are
probably a few glitches that we need to take care of, in particular
failing gracefully when Viper or PyDOLFIN are not available.
/Anders
References
-
Plotting works for elasticity demo
From: Anders Logg, 2007-04-25
-
Re: Plotting works for elasticity demo
From: Garth N. Wells, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Ola Skavhaug, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Garth N. Wells, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Ola Skavhaug, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Garth N. Wells, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Ola Skavhaug, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Garth N. Wells, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Ola Skavhaug, 2007-04-26
-
Re: Plotting works for elasticity demo
From: Garth N. Wells, 2007-04-26