Hi uw3 support team,
I encountered an error when applying a natural boundary condition to the Poisson solver in Underworld3, which prevents the solve from running successfully.
poisson.add_dirichlet_bc([17.0], "Top")
q_bottom = 0.065 # W/m2
poisson.add_natural_bc([q_bottom], "Bottom")
poisson.solve()
When applying a natural boundary condition to a Poisson solver, the following error occurs:
AttributeError Traceback (most recent call last)
Cell In[18], line 1
----> 1 poisson.solve()
File src/underworld3/cython/petsc_generic_snes_solvers.pyx:872, in underworld3.cython.generic_solvers.SNES_Scalar.solve()
File src/underworld3/cython/petsc_generic_snes_solvers.pyx:194, in underworld3.cython.generic_solvers.SolverBaseClass._build()
File src/underworld3/cython/petsc_generic_snes_solvers.pyx:744, in underworld3.cython.generic_solvers.SNES_Scalar._setup_pointwise_functions()
AttributeError: 'NaturalBC' object has no attribute 'fn_F'
Thanks for your time and help