[petsc-users] Saving Multiple DMPlexes to a single HDF5 File

2024-01-05 Thread Brandon Denton via petsc-users
Happy New Year! I'm attempting to save multiple DMPlexes to a single HDF5 file. During my solution, I make modification to the DMPlex and would like to track and store these changes as the solution progresses. Currently, I the program writes the DMPlex to the HDF5 file the first time I call

[petsc-users] Applying Natural Boundary Conditions using PETSc FEM Technology

2023-12-12 Thread Brandon Denton via petsc-users
Good Afternoon, I am currently working on an Inviscid Navier-Stokes problem and would like to apply DM_BC_NATURAL boundary conditions to my domain. Looking through the example files on petsc.org, I noticed that in almost all cases there are the following series of calls.

Re: [petsc-users] Storing Values using a Triplet for using later

2023-11-09 Thread Brandon Denton via petsc-users
] Storing Values using a Triplet for using later On Wed, Nov 8, 2023 at 2:40 PM Brandon Denton via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Good Afternoon, Is there a structure within PETSc that allows storage of a value using a triple similar to PetscHMapIJSet with the key using a

[petsc-users] Storing Values using a Triplet for using later

2023-11-08 Thread Brandon Denton via petsc-users
Good Afternoon, Is there a structure within PETSc that allows storage of a value using a triple similar to PetscHMapIJSet with the key using a struct{PetscScalar i, j, k;}? I'm trying to access mesh information (the shape function coefficients I will calculate prior to their use) who's values

Re: [petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-11 Thread Brandon Denton via petsc-users
How exactly does the aux data work? What is typically available there? Is it something the user can populate? From: Matthew Knepley Sent: Wednesday, October 11, 2023 8:07 PM To: Brandon Denton Cc: Jed Brown ; petsc-users Subject: Re: [petsc-users] FEM

Re: [petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-11 Thread Brandon Denton via petsc-users
By natural coordinates, I am referring to the reference element coordinates. Usually these are represented as (xi, eta, zeta) in the literature. Yes. I would like to have the Jacobian and the derivatives of the map available within PetscDSSetResidual() f0 and f1 functions. I believe

Re: [petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-11 Thread Brandon Denton via petsc-users
Thank you for the discussion. Are we agreed then that the derivatives of the natural coordinates are required for the described approach? If so, is this something PETSc can currently do within the point-wise residual functions? Matt - Thank you for the command line option for the 2nd

Re: [petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-11 Thread Brandon Denton via petsc-users
have an example of the approach you mentioned, could you please send it over so I can review it? On Oct 11, 2023 6:02 AM, Matthew Knepley wrote: On Tue, Oct 10, 2023 at 9:34 PM Brandon Denton via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Good Evening, I am looking to implement

Re: [petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-10 Thread Brandon Denton via petsc-users
/latest/examples/fluids/ https://github.com/CEED/libCEED/blob/main/examples/fluids/qfunctions/stabilization.h#L76 On Tue, Oct 10, 2023, at 7:34 PM, Brandon Denton via petsc-users wrote: Good Evening, I am looking to implement a form of Navier-Stokes with SUPG Stabilization and shock capturing

[petsc-users] FEM Implementation of NS with SUPG Stabilization

2023-10-10 Thread Brandon Denton via petsc-users
Good Evening, I am looking to implement a form of Navier-Stokes with SUPG Stabilization and shock capturing using PETSc's FEM infrastructure. In this implementation, I need access to the cell's shape function gradients and natural coordinate gradients for calculations within the point-wise

Re: [petsc-users] PETSc :: FEM Help

2023-08-04 Thread Brandon Denton via petsc-users
. It runs for me but I have not checked the answer. Thanks, Matt On Wed, Jun 7, 2023 at 11:05 AM Brandon Denton via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Good Morning, I'm trying to verify that the CAD -> PETSc/DMPlex methods I've developed can be used for FEM

[petsc-users] PETSc :: FEM Help

2023-06-07 Thread Brandon Denton via petsc-users
Good Morning, I'm trying to verify that the CAD -> PETSc/DMPlex methods I've developed can be used for FEM analyses using PETSc. Attached is my current attempt where I import a CAD STEP file to create a volumetric tetrahedral discretization (DMPlex), designate boundary condition points using