Lee:

I want to set 2 constraints (P = 0 and \delta P = 0) on the scalar pressure variable on a single point (4, 0.1) at the outlet. Here, \delta P is the Newton's iteration update value for P.

I used "constraints_hp_nonzero" to interpolate the real boundary values for my physical problem and "constraints_newton_boundary" to interpolate the Newton updates values on the boundaries.

I found that one can only set one type of constraint on a singel index. Therefore, the following snippet code would generate errors, since I was trying to set 2 different constraints simultaneously on the same dof index.

What specifically is the error you get?

I must admit that I don't quite seem to understand what it is you are doing. If you have a nonlinear (Newton) iteration, you are only solving for either P or delta P at any given time. Specifically, I imagine that you are first interpolating an initial guess (where you should apply the constraint for P) and then you are only solving for updates (where you should apply the constraint for delta P). You are not (or you *should* not be) applying two constraints at the same time for the same DoF, but these two constraints apply to entirely separate variables. In other words, without understanding what your overall algorithm is, I can't...

If I want to successfully impose the 2 constraints: P=0  and delta P=0 on point (4,0.1), does it exist a better way? Could you kindly give me some hints?

...quite understand what it is you are doing and why you are getting an error.

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/c2d2f8ed-a107-4a1b-8383-29c9767368be%40colostate.edu.

Reply via email to