Re: [deal.II] Problems with Constraintmatrix and hanging nodes on corners in 3D

2019-06-07 Thread Wolfgang Bangerth


Bernhard,

> I' am trying to solve the stationary Navier-Stokes benchmark Problem with 
> configuration 2 given in
> 
> https://ganymed.math.uni-heidelberg.de/Paper/braackrichter-200410.pdf
> 
> The initial mesh is attached.
> 
> Here i used to following code fragment to set the boundary conditions for the 
> newton update:
> 
> 
> template
> void set_newton_bc(DoFHandler& dof_handler, ConstraintMatrix & 
> constraints, Dirichlet_Boundary dirichlet_doundary_enforcement =
>   Dirichlet_Boundary::strong)
> {
> 
>     std::vector component_mask(dof_handler.get_fe(0).n_components(), 
> true);
>     component_mask[dim] = false;
> 
>     VectorTools::interpolate_boundary_values(dof_handler, 0, 
> ZeroFunction(dof_handler.get_fe(0).n_components()), constraints,
>      component_mask);
>     VectorTools::interpolate_boundary_values(dof_handler, 2, 
> ZeroFunction(dof_handler.get_fe(0).n_components()), constraints,
>      component_mask);
> 
> 
> 
>     VectorTools::interpolate_boundary_values(dof_handler, 80, 
> ZeroFunction(dof_handler.get_fe(0).n_components()), constraints,
>      component_mask);
>     IndexSet indexset;
>     std::set boundaryids;
>     boundaryids.clear();
>     boundaryids.insert(80);
> 
> DoFTools::extract_boundary_dofs(dof_handler,ComponentMask(component_mask),indexset,boundaryids);
>     indexset.print(std::cout);
> }
> 
> 
> The last part of the code fragment is just to get an output of the index set 
> of the DoF which belong to boundary 80.

So to summarize, you are interpolating boundary conditions on boundaries with 
boundary_id 0, 2, 80, and then you are outputting all DoFs on boundary 80.


> The set is given by
> [...]
> 
> If manually look in the set of active cells  for the DoFs  which belong to 
> one 
> of the "problematic" points i find
> 
> 
> *231* : comp =0   at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 0
> 636 : comp =0   at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 1
> *2048* : comp =1  at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 0
> 2453 : comp =1  at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 1
> *3865* : comp =2  at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 0
> 4270 : comp =2   at the node located in 4.50e-01 2.50e-01 
> 2.05e-01 on level 1
> 
> However the bold ones are not contained in the indexset, an do have troubles 
> at this points, when i would like to apply 
> constraintmatrix.distribute(newton_update);

Even though I might have an idea where you are going, your message does not 
actually contain a *question* :-) Can you describe what you expect, what you 
see, and how the two differ? In other words, what the actual *problem* 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/4bc8c9b9-9f22-fb78-c4b0-0b316bb2784c%40colostate.edu.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Elementwise multiplication of Tensors

2019-06-07 Thread Wolfgang Bangerth
On 6/7/19 5:48 AM, 'Maxi Miller' via deal.II User Group wrote:
> Something like this: https://github.com/dealii/dealii/pull/8307?

Yes, exactly! Great start!
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/44e8fda9-2470-875f-2941-ec5ec1babce8%40colostate.edu.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Elementwise multiplication of Tensors

2019-06-07 Thread 'Maxi Miller' via deal.II User Group
Something like this: https://github.com/dealii/dealii/pull/8307?

Am Donnerstag, 6. Juni 2019 00:38:59 UTC+2 schrieb Wolfgang Bangerth:
>
> On 6/5/19 3:22 PM, 'Maxi Miller' via deal.II User Group wrote: 
> > is there a function for the elementwise multiplication of Tensors? I 
> could 
> > only find functions for the scalar product, but not the schur product. 
>
> You mean to compute 
>C_ij = A_ij * B_ij 
> ? No, there isn't one right now. But it should easy to implement. In 
> analogy 
> to scalar_product(), the best approach would probably a global function 
> schur_product(). Want to give this a try? We'd of course take the patch! 
>
> Cheers 
>   W. 
>
> -- 
>  
> Wolfgang Bangerth  email: bang...@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/985bb2a0-3408-4c6e-9e89-89ae8b7fd090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: Problems with Constraintmatrix and hanging nodes on corners in 3D

2019-06-07 Thread Bernhard Endtmayer
The problem appears in the marked node.

Thanks in advance for your help!

-- 
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/5d3442b7-d2ec-4c36-8ea9-a81e76603dd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.