about operations on Functions

Asked by Dupront on 2013-01-25

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:
2013-01-25
Last query:
2013-01-25
Last reply:
2013-01-25

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.
>

Dupront (michel-dupront) said : #2

Thanks a lot !