Deepika,
GridGenerator has a number of functions that do similar things to what you want to do, such as plate_with_a_hole(), channel_with_hole(), specifically merging different triangulations for different parts of the domain. You will want to study how they are implemented:
  https://github.com/dealii/dealii/blob/master/source/grid/grid_generator.cc

In the end, it all comes down to constructing the different pieces of a mesh separately but in a way so that the resulting vertices match, and then merging them. Search for merge_triangulation() in the file linked to above and try to understand the context in which it is used, say in the plate_with_a_hole() function. If you understand what is done there, you will understand how you can create the meshes you want to generate.

Best
 W.


On 2/9/23 21:03, Deepika Kushwah wrote:
*** Caution: EXTERNAL Sender ***

Thank you for your explanation.

Is there any other way by which I can create the same geometry (Circular inclusion in the square) ? My project is related to "Multiscale Modeling of Failure of Composite Materials" for that purpose I need to create a different RVE (Representative Volume Element) for the heterogeneous material. These RVE may include one or more circular fiber or inclusions.
How can I solve this problem with dealii?

Please see the attached example of RVE below, which I want to create in dealii.

image.png


Thanks and regards,
Deepika


On Fri, Feb 10, 2023 at 1:37 AM Wolfgang Bangerth <bange...@colostate.edu <mailto:bange...@colostate.edu>> wrote:

    On 2/9/23 11:28, Deepika Kushwah wrote:
     > **
     >
     > I have changed the default tolerance as you suggested but the problem is
     > still persisting.
     > In the coarse meshing, there are only 4 points connected between the two
     > triangulations and after refinement there is still the same connection.
     > How can we increase the connecting points?

    I see the problem now. If you count how many points there are on the
    circle from the inner mesh and the outer mesh, the number is different.
    These meshes *can't* be merged as you want. Merging meshes can only work
    if you have the same number of vertices coming together at the interface
    where you want to merge the meshes.

    Best
       W.

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

-- The deal.II project is located at http://www.dealii.org/
    
<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dealii.org%2F&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=w%2BmF3IiNsGXfIpVjYe9TH3f7gQGYEF8vRFXKdSEpncE%3D&reserved=0>
    For mailing list/forum options, see
    https://groups.google.com/d/forum/dealii?hl=en
    
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fforum%2Fdealii%3Fhl%3Den&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=KN2j6WWNRR9kN23JLtaujzUuXgfRmC5ygMpO%2BMYbnPs%3D&reserved=0>
    ---
    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
    <mailto:dealii%2bunsubscr...@googlegroups.com>.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/dealii/c50b5e9c-75e1-b4b8-3b82-73f8b58e6b15%40colostate.edu 
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdealii%2Fc50b5e9c-75e1-b4b8-3b82-73f8b58e6b15%2540colostate.edu&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=W2u8k86RtWkQIEeIjgGA2%2FZeAK91CgpM3P%2B7T2tMnfk%3D&reserved=0>.


**************************************************************************
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
************************************************************************************************

--
The deal.II project is located at http://www.dealii.org/ <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dealii.org%2F&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=w%2BmF3IiNsGXfIpVjYe9TH3f7gQGYEF8vRFXKdSEpncE%3D&reserved=0> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fforum%2Fdealii%3Fhl%3Den&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=KN2j6WWNRR9kN23JLtaujzUuXgfRmC5ygMpO%2BMYbnPs%3D&reserved=0>
---
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 <mailto:dealii+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAKTdrpqk3Kuo_VYnGxmwwcyaQLvX%2BLSS3rfi8dKq%2BojXOnY-iw%40mail.gmail.com <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdealii%2FCAKTdrpqk3Kuo_VYnGxmwwcyaQLvX%252BLSS3rfi8dKq%252BojXOnY-iw%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cd8425706e19d46b2ec6608db0b1bea49%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638115987960963969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=33l1HpuOEEYpiv33TPNEalyMAhWogLo5OqUDB%2BNxjEM%3D&reserved=0>.

--
------------------------------------------------------------------------
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/ce3994d0-6476-8f02-201a-2842441367b8%40colostate.edu.

Reply via email to