[petsc-users] Fwd: Inquiry about the dual space (PetscFECreateTabulation_Basic)
neil liu
liufield at gmail.com
Fri Apr 21 08:40:37 CDT 2023
Hello, Petsc group,
I am learning the FE structure in Petsc by running case
https://petsc.org/main/src/snes/tutorials/ex12.c.html with -run_type test
-bc_type dirichlet -dm_plex_interpolate 0 -petscspace_degree 1
-show_initial -dm_plex_print_fem 1
When I check the subroutine PetscFECreateTabulation_Basic, I can not
understand some parameters there.
For the following lines in the file (
https://petsc.org/release//src/dm/dt/fe/impls/basic/febasic.c.html#PETSCFEBASIC
)
135: PetscCall
<https://petsc.org/release//manualpages/Sys/PetscCall/>(PetscDualSpaceGetDimension
<https://petsc.org/release//manualpages/DUALSPACE/PetscDualSpaceGetDimension/>(fem->dualSpace,
&pdim));136: PetscCall
<https://petsc.org/release//manualpages/Sys/PetscCall/>(PetscFEGetNumComponents
<https://petsc.org/release//manualpages/FE/PetscFEGetNumComponents/>(fem,
&Nc));
Here, Nc = 2, pdim =6. I am running a scalar case with degree of 1,
I expect Nc = 1 and pdim =3. Could you please explain this? In addition,
Thanks,
Xiaodong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230421/43e5c0ed/attachment.html>
More information about the petsc-users
mailing list