[petsc-users] Suggestions for code with dof >> 1 ?

Christophe Ortiz christophe.ortiz at ciemat.es
Mon Oct 7 08:16:41 CDT 2013


Hi Barry,

Thanks for the reply.

I had a look at the example ex10.c. But I see it does not fully corresponds
to what one can see in the branch. For instance, in the example that is
found in the tutorials, there is no RHS defined, no Jacobian, just the
IFunction.

Could you please send me the latest version of ex10.c ? Many thanks in
advance.

Christophe

CIEMAT
Laboratorio Nacional de Fusión por Confinamiento Magnético
Unidad de Materiales
Edificio 2 - Planta 0 - Despacho 28m
Avenida Complutense 40,
28040 Madrid, Spain
Tel: +34 91496 2582
Fax: +34 91346 6442

--
Q
Por favor, piense en el medio ambiente antes de imprimir este mensaje.
Please consider the environment before printing this email.


On Mon, Oct 7, 2013 at 2:00 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   Chris,
>
>     Take a look in the petsc branch barry/wirth-fusion-materials
> https://bitbucket.org/petsc/petsc/branch/barry%2Fwirth-fusion-materials
> in the file src/ts/examples/tutorials/advection-diffusion-reaction/ex10.c
>   feel free to ask any questions.
>
>     Barry
>
> On Oct 7, 2013, at 3:03 AM, Christophe Ortiz <christophe.ortiz at ciemat.es>
> wrote:
>
> > Hi all
> >
> > I need some suggestions to design a code with PETSc.
> >
> > I want to solve a 1D problem composed of several diffusion equations and
> a lot of ODEs (thousands).
> >
> > - After discretization, the diffusion equations have terms in i-1, i and
> i+1.
> >
> > - The diffusion equations have additional terms due to couping with all
> the ODEs. These terms are non-linear.
> >
> > - The terms of the ODEs are local (only depend on node i) but are
> non-linear.
> >
> > Any advice to design the code ?
> >
> > How should I distribute the terms between IFunction and RHSFunction ?
> >
> > Any special attention to DMDA ? Should I declare just one DMDA with dof
> >>1 ?
> >
> > Many thanks in advance !
> > Christophe
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131007/348fc509/attachment.html>


More information about the petsc-users mailing list