Hello Karthik,

it is perfectly reasonable to treat refinement for the initial mesh 
separately.

I noticed that both your refine and coarsen fractions always add up to 
100%. This is not a requirement! You can adjust both fractions 
independently until you are okay fine with the results.

Marc

On Friday, January 29, 2021 at 6:28:15 AM UTC-7 Karthi wrote:

> If I use a smaller fraction, then it wouldn't adapt the 
> initial conditions properly. 
>
> So I sort of fixed the issue, by using a if statement as follow,
>
>
>     
>
>   if(time.get_step_number() == 0)
>
>       GridRefinement::refine_and_coarsen_fixed_fraction(triangulation,
>
>                                                         
> sum_estimated_error_per_cell,
>
>                                                         0.80,
>
>                                                         0.20);
>
>     else
>
>       GridRefinement::refine_and_coarsen_fixed_fraction(triangulation,
>
>                                                         
> sum_estimated_error_per_cell,
>
>                                                         0.30,
>
>                                                         0.70);
>
>
> I have attached the current mesh refinement plots, so that someone else 
> might find this post useful.
>
>
> Best,
>
> Karthi.
>
> On Fri, Jan 29, 2021 at 12:51 AM Wolfgang Bangerth <bang...@colostate.edu> 
> wrote:
>
>> On 1/28/21 3:51 PM, Karthikeyan Chockalingam wrote:
>> > The mesh continues to refine is this an acceptable behaviour?
>>
>> Yes, the mesh looks reasonable to me. I might try to refine a smaller 
>> fraction 
>> of the cells (it doesn't seem necessary to have this many cells refined) 
>> but 
>> the mesh seems adequate for the solution.
>>
>> 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 a topic in the 
>> Google Groups "deal.II User Group" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/dealii/YA-eLEs43bc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> dealii+un...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/8a0ff92a-4a24-f65e-a26f-74ebb41e41bf%40colostate.edu
>> .
>>
>

-- 
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/804b75f1-d4b1-41cf-be5d-17e64d1542cfn%40googlegroups.com.

Reply via email to