[petsc-users] PetscFEIntegrateBdResidual_Basic

David Fuentes fuentesdt at gmail.com
Mon Nov 20 10:46:25 CST 2017


*Is there a way to pass the boundary set id to the function pointers for
the residual evaluation on the boundary ?*

*https://bitbucket.org/petsc/petsc/src/d89bd21cf2b5366df29efb6006298d2bc22fb509/src/dm/dt/interface/dtfe.c?at=master&fileviewer=file-view-default#dtfe.c-4245
<https://bitbucket.org/petsc/petsc/src/d89bd21cf2b5366df29efb6006298d2bc22fb509/src/dm/dt/interface/dtfe.c?at=master&fileviewer=file-view-default#dtfe.c-4245>*


*I want to pass the boundary condition/constraint ID (ids):  PetscErrorCode
PetscDSAddBoundary(PetscDS ds, DMBoundaryConditionType type, const char
name[], const char labelname[], PetscInt field, PetscInt numcomps, const
PetscInt *comps, void (*bcFunc)(void), PetscInt numids, const PetscInt
*ids, void *ctx)*

*to the functions for the residual evaluation on the boundary.*


*For example, I have two side sets in an exodus file. I want to implement
Neumann boundary conditions on side set = 2 and Mixed/Cauchy BC on side set
= 3. Or similarly use different*

*gmsh BC tags for Neumann/Mixed BC.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171120/eafe5c71/attachment.html>


More information about the petsc-users mailing list