On 1/31/22 10:22, Ali Seddiq wrote:

I am trying to mimic step-7 implementation of Neumann boundary condition in the case of a vector-valued problem.
I did some modifications as shown in the below, but it doesn't work as expected;

const FEValuesExtractors::Scalar pressure(0);

.....
         cell_rhs(i) +=
           (fe_face_values[pressure].value(i, q_point) *
            neumann_value *
            fe_face_values.JxW(q_point));

I tried to replicate step-20 and related documentation on vector problems but haven't yet been able to figure out the solution.
So any help is much appreciated.

Ali -- a good place to always start is by asking what "it doesn't work as expected" precisely is. We don't know what the problem is you are trying to solve, we don't know whether you get compiler errors, whether you get runtime errors, whether the solution looks wrong, in which way it looks wrong, etc.

Debugging typically starts with asking *yourself* precisely what doesn't work, and what that might mean for where the bug is.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/01451b66-7c40-3eb3-53c3-3024eaaad3db%40colostate.edu.

Reply via email to