transfer of solution from one script to another

Asked by Hossein Nili on 2013-03-25

Hi

I tried to find this from the documentation but couldn't - may be I am searching for the wrong terminology. I'd be very thankful if you could help me out here:

I solve a PDE using a FEniCS script, and find a solution u. What I wish to do is to export/transfer this solution to another script which takes u as "input" (i.e. known) and solves another PDE in terms of another variable based on this given input.

Any help please?

Many thanks,

Question information

Language:
English Edit question
Status:
Answered
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
2013-03-25
Last reply:
2013-03-27
Patrick Farrell (pefarrell) said : #1

See page 206/207 of the FEniCS book.

Anders Logg (logg) said : #2

On Mon, Mar 25, 2013 at 11:56:01AM -0000, Hossein Nili wrote:
> New question #225096 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/225096
>
> Hi
>
> I tried to find this from the documentation but couldn't - may be I am searching for the wrong terminology. I'd be very thankful if you could help me out here:
>
> I solve a PDE using a FEniCS script, and find a solution u. What I wish to do is to export/transfer this solution to another script which takes u as "input" (i.e. known) and solves another PDE in terms of another variable based on this given input.
>
> Any help please?

Look at the Stokes and advection-diffusion demos in DOLFIN. The
computed Stokes velocity from one demo is used as input to the
advection-diffusion demo.

--
Anders

Can you help with this problem?

Provide an answer of your own, or ask Hossein Nili for more information if necessary.

To post a message you must log in.