[petsc-users] different dof in DMDA creating

Danyang Su danyang.su at gmail.com
Thu Aug 15 11:33:25 CDT 2019


Hi Matt,

Thanks for the quick reply. Will let you know when I am confused in 
using it.

Regards,

Danyang

On 2019-08-15 9:22 a.m., Matthew Knepley wrote:
> On Thu, Aug 15, 2019 at 12:18 PM Danyang Su <danyang.su at gmail.com 
> <mailto:danyang.su at gmail.com>> wrote:
>
>     Hi Barry and Matt,
>
>     Would you please give me some advice on the functions I need to
>     use to
>     set different dof to the specified nodes. For now, I use
>     DMPlexCreateSection that dof is uniform throughout the domain. I am a
>     bit lost in choosing the right DMPlex functions, unfortunately.
>
>
> Chapter 10 of the PETSc User Manual discusses low-level data layout 
> using Section. How about we start
> there and then clarify anything that is confusing.
>
>   Thanks,
>
>     Matt
>
>     Thanks and regards,
>
>     Danyang
>
>     On 2019-02-07 1:53 p.m., Danyang Su wrote:
>     > Thanks, Barry. DMPlex also works for my code.
>     >
>     > Danyang
>     >
>     > On 2019-02-07 1:14 p.m., Smith, Barry F. wrote:
>     >>    No, you would need to use the more flexible DMPlex
>     >>
>     >>
>     >>> On Feb 7, 2019, at 3:04 PM, Danyang Su via petsc-users
>     >>> <petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>> wrote:
>     >>>
>     >>> Dear PETSc Users,
>     >>>
>     >>> Does DMDA support different number of degrees of freedom for
>     >>> different node? For example I have a 2D subsurface flow
>     problem with
>     >>> the default dof = 1 throughout the domain. Now I want to add some
>     >>> sparse fractures in the domain. For the nodes connected to the
>     >>> sparse fractures, I want to set dof to 2. Is it possible to
>     set dof
>     >>> to 2 for those nodes only?
>     >>>
>     >>> Thanks,
>     >>>
>     >>> Danyang
>     >>>
>
>
>
> -- 
> What most experimenters take for granted before they begin their 
> experiments is infinitely more interesting than any results to which 
> their experiments lead.
> -- Norbert Wiener
>
> https://www.cse.buffalo.edu/~knepley/ 
> <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190815/ac9bab6e/attachment-0001.html>


More information about the petsc-users mailing list