Re: [deal.II] interpolating boundary values from a previously found FE solution

2018-04-16 Thread Wolfgang Bangerth

On 04/15/2018 07:34 PM, Jaekwang Kim wrote:


Is there any example tutorial related to the first approach?

_/"You can build a ConstraintMatrix object that sets boundary DoFs of V 
to the

corresponding values of U. This should be easy to do." /_



None that I would know of, but you build constraint matrices by calling
  constraints.add_line (i);
  constraints.set_inhomogeneity(i, xi);
if you want to constraint degree of freedom 'i' to value 'xi'.

In your case, 'i' are all of the DoFs located at the boundary, and xi is 
the value you need to set the DoF to.


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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] interpolating boundary values from a previously found FE solution

2018-04-15 Thread Jaekwang Kim
Dr. Bangerth

Is there any example tutorial related to the first approach? 


*"You can build a ConstraintMatrix object that sets boundary DoFs of V to 
the corresponding values of U. This should be easy to do." *

On Friday, March 30, 2018 at 8:15:23 AM UTC-5, Wolfgang Bangerth wrote:
>
> On 03/29/2018 11:18 PM, Mustafa Aggul wrote: 
> > 
> > suppose I assemble a system and solve it. Say my solution is U. In the 
> next 
> > step, I want to solve a different problem for V. My desire is to make V 
> > exactly same as U on the boundaries. 
> > 
>
> You can build a ConstraintMatrix object that sets boundary DoFs of V to 
> the 
> corresponding values of U. This should be easy to do. 
>
> Alternatively, you could solve for a function D so that V=U+D. D should 
> then 
> simply have zero boundary values. 
>
> Best 
>   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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] interpolating boundary values from a previously found FE solution

2018-04-01 Thread Mustafa Aggul
Thanks for your response. I did some sort of combination of the both
arguments. It works fine now.
Best,
Mustafa.

-- 
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.
For more options, visit https://groups.google.com/d/optout.