about operations on Functions

Asked by Dupront

Hello
 A function can be printed in a vtu file for later use in mayavi for example.

 if k = Function(V)
     e = Function(V)
    ......
    nu = k / e
    ...

 Can I make nu a function to save it in a vtu file ?

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Dupront
Solved:
Last query:
Last reply:
Revision history for this message
Martin Sandve Alnæs (martinal) said :
#1

You can project any expression:
  nu_h = project(nu, V)
  File("nu.pvd") << nu_h

Martin

On 25 January 2013 14:05, Dupront <email address hidden>wrote:

> New question #220136 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/220136
>
> Hello
> A function can be printed in a vtu file for later use in mayavi for
> example.
>
> if k = Function(V)
> e = Function(V)
> ......
> nu = k / e
> ...
>
> Can I make nu a function to save it in a vtu file ?
>
>
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
>

Revision history for this message
Dupront (michel-dupront) said :
#2

Thanks a lot !