[deal.II] Hoe to merge hyper_cube_with_cylindrical_hole with hyper_ball()

2022-12-06 Thread Deepika Kushwah
Hello Everyone,

I am trying to create a triangulation with hyper_cube_with_cylindrical_hole 
function but in place of hole I want to use solid inclusion. I tried with 
function GridGenerator::merge_triangulations(tria_inner, tria_outer, 
triangulation) but I am getting the following geometry ( see the 
attachment).

How to resolve this please help.

Thanks & Regards 
Deepika



-- 
**

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/
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/d1f3c6a3-a408-4de8-905c-121b4e5a2c42n%40googlegroups.com.


[deal.II] deal.II Newsletter #235

2022-12-06 Thread 'Rene Gassmoeller' via deal.II User Group
Hello everyone!

This is deal.II newsletter #235.
It automatically reports recently merged features and discussions about the 
deal.II finite element library.


## Below you find a list of recently proposed or merged features:

#14536: Choose to initialize ghost elements with reinit(partitioner). (proposed 
by marcfehling) https://github.com/dealii/dealii/pull/14536

#14535: MarchingCubeAlgorithm<1>: Remove determination of a saddle point 
(proposed by mschreter) https://github.com/dealii/dealii/pull/14535

#14534: Don't use __has_trivial_copy (proposed by masterleinad; merged) 
https://github.com/dealii/dealii/pull/14534

#14533: Solver control history (proposed by vovannikov; merged) 
https://github.com/dealii/dealii/pull/14533

#14532: Remove a 'using' declaration in step-50 that is in the way. (proposed 
by bangerth; merged) https://github.com/dealii/dealii/pull/14532

#14531: Step 77: fix bug (proposed by tjhei) 
https://github.com/dealii/dealii/pull/14531

#14530: [9.4] Fix compilation of step-70. (proposed by drwells; merged) 
https://github.com/dealii/dealii/pull/14530

#14529: Fix compilation of step-70. (proposed by drwells; merged) 
https://github.com/dealii/dealii/pull/14529

#14528: CMake: remove a number of obscure configuration options (proposed by 
tamiko; merged) https://github.com/dealii/dealii/pull/14528

#14527: Add to the resources for programmers mentioned in step-1. (proposed by 
bangerth; merged) https://github.com/dealii/dealii/pull/14527

#14526: List step 12b in the list of tutorials. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/14526

#14524: Avoid using dealii:: qualified names. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/14524

#14523: Just do 'using namespace dealii' in main(). (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/14523

#14522: Reference the correct step. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/14522

#14521: Fix some warnings in tests (proposed by masterleinad; merged) 
https://github.com/dealii/dealii/pull/14521

#14520: Add support for the mold linker (proposed by masterleinad) 
https://github.com/dealii/dealii/pull/14520

#14519: fix warning: -1 assignment to unsigned (proposed by tjhei; merged) 
https://github.com/dealii/dealii/pull/14519

#14517: update changelog for release (proposed by tamiko; merged) 
https://github.com/dealii/dealii/pull/14517

#14516: step-85: add namespace to documentation (proposed by vyushut; merged) 
https://github.com/dealii/dealii/pull/14516

#14515: CMake: Bugfix: only add to the linker line what is needed (proposed by 
tamiko; merged) https://github.com/dealii/dealii/pull/14515

#14514: github/actions: install kokkos outside of deal.II source directory 
(proposed by tamiko; merged) https://github.com/dealii/dealii/pull/14514

#14513: Fix 'testing equality to None' python issue (proposed by luzpaz; 
merged) https://github.com/dealii/dealii/pull/14513

#14512: Fix typos in source function name (proposed by luzpaz; merged) 
https://github.com/dealii/dealii/pull/14512

#14511: Fix typos (proposed by luzpaz; merged) 
https://github.com/dealii/dealii/pull/14511

#14510: Use Kokkos in MemorySpaceData (proposed by masterleinad) 
https://github.com/dealii/dealii/pull/14510

#14509: github/actions: always configure and compile in separate build 
directory (proposed by tamiko; merged) 
https://github.com/dealii/dealii/pull/14509

#14508: CMake: add define_interface_target() (proposed by tamiko) 
https://github.com/dealii/dealii/pull/14508

#14507: CMake: Remove pkg-config pc file generation (proposed by tamiko; 
merged) https://github.com/dealii/dealii/pull/14507

#14506: CMake: Remove deal.IIFeatureConfig.cmake (proposed by tamiko; merged) 
https://github.com/dealii/dealii/pull/14506

#14505: update CI badges in readme (proposed by tjhei; merged) 
https://github.com/dealii/dealii/pull/14505

#14504: Run the different parts of creating VTU output in parallel. (proposed 
by bangerth; merged) https://github.com/dealii/dealii/pull/14504

#14503: Reorder declaration and use of local lambda functions. (proposed by 
bangerth; merged) https://github.com/dealii/dealii/pull/14503

#14502: Add Threads::TaskGroup::return_values(). (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/14502

#14500: CMake: silence configure warnings for ArborX and Ginkgo (proposed by 
tamiko; merged) https://github.com/dealii/dealii/pull/14500

#14499: Update some commentary. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/14499

#14498: Remove a dependency in writing VTU files. (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/14498

#14497: Bundled: avoid a warning in boost::serialization (proposed by tamiko; 
merged) https://github.com/dealii/dealii/pull/14497

#14496: base/work_stream: remove unused using declaration (proposed by tamiko; 
merged) https://github.com/dealii/dealii/pull/14496

#14495: CMake: 

Re: [deal.II] Importing .msh file from CUBIT

2022-12-06 Thread Wolfgang Bangerth

On 12/6/22 08:36, HIMAL MAGAR wrote:
I am trying to import .msh file that I have created in CUBIT in step-17. 
However, the code doesn't read the file and produces following error:


The error happens in read_ucd(), but that is clearly the wrong function for 
reading .msh files: You need to use read_msh().


That said, the error happens at the very top of the function. I believe that 
you are trying to read from a file that doesn't exist or can't be opened. Did 
you spell the file name and directory name correctly in your program? Does the 
file you are trying to read from actually exist?


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/69086bda-297f-6094-bfb9-1af3543a7a73%40colostate.edu.


Re: [deal.II] Re: Importing .msh file from CUBIT

2022-12-06 Thread Bruno Turcksin
Himal,

Take a look at
https://dealii.org/current/doxygen/deal.II/classGridIn.html#a51f7977b217e305d3538574cbd3d3a01
This has worked for me in the past.

Best,

Bruno

Le mar. 6 déc. 2022 à 11:08, HIMAL MAGAR <075bme018.hi...@pcampus.edu.np> a
écrit :

> Hi Bruno,
> I have used the .inp format file and used read_ucd here. I was actually
> trying to import a .msh file. However, the same error occurs for the
> read_msh function as well.
>
> Himal.
>
>
> On Tue, Dec 6, 2022 at 9:41 PM Bruno Turcksin 
> wrote:
>
>> Himal,
>>
>> It looks like there is a problem opening the file. How did you export the
>> mesh? Are you using read_ucd or read_abaqus?
>>
>> Best,
>>
>> Bruno
>>
>> On Tuesday, December 6, 2022 at 10:36:30 AM UTC-5
>> 075bme0...@pcampus.edu.np wrote:
>>
>>> Warm Greetings!,
>>> I am trying to import .msh file that I have created in CUBIT in step-17.
>>> However, the code doesn't read the file and produces following error:
>>> [image: Screenshot from 2022-12-06 21-15-16.png]
>>> Do i need to manually modify the contents in file before importing into
>>> the code? If so, how can i do that?
>>> Thanks
>>> Himal.
>>>
>> --
>> 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/qd-n-iiMx-k/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> dealii+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/dealii/bc9262ab-4258-4032-b839-bb9e78d75a41n%40googlegroups.com
>> 
>> .
>>
> --
> 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/qd-n-iiMx-k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CA%2BNXOPp393MsXvw2K8_SgUpK8WrjyHKnawiSjLQ9r-EDEAy0CA%40mail.gmail.com
> 
> .
>

-- 
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/CAGVt9ePB8VB%3DQErGZx25CpfzLe1kc5PLFYqObaGSSxaARKMQow%40mail.gmail.com.


Re: [deal.II] Re: Importing .msh file from CUBIT

2022-12-06 Thread HIMAL MAGAR
Hi Bruno,
I have used the .inp format file and used read_ucd here. I was actually
trying to import a .msh file. However, the same error occurs for the
read_msh function as well.

Himal.


On Tue, Dec 6, 2022 at 9:41 PM Bruno Turcksin 
wrote:

> Himal,
>
> It looks like there is a problem opening the file. How did you export the
> mesh? Are you using read_ucd or read_abaqus?
>
> Best,
>
> Bruno
>
> On Tuesday, December 6, 2022 at 10:36:30 AM UTC-5
> 075bme0...@pcampus.edu.np wrote:
>
>> Warm Greetings!,
>> I am trying to import .msh file that I have created in CUBIT in step-17.
>> However, the code doesn't read the file and produces following error:
>> [image: Screenshot from 2022-12-06 21-15-16.png]
>> Do i need to manually modify the contents in file before importing into
>> the code? If so, how can i do that?
>> Thanks
>> Himal.
>>
> --
> 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/qd-n-iiMx-k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/bc9262ab-4258-4032-b839-bb9e78d75a41n%40googlegroups.com
> 
> .
>

-- 
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/CA%2BNXOPp393MsXvw2K8_SgUpK8WrjyHKnawiSjLQ9r-EDEAy0CA%40mail.gmail.com.


[deal.II] Re: Importing .msh file from CUBIT

2022-12-06 Thread Bruno Turcksin
Himal,

It looks like there is a problem opening the file. How did you export the 
mesh? Are you using read_ucd or read_abaqus?

Best,

Bruno

On Tuesday, December 6, 2022 at 10:36:30 AM UTC-5 075bme0...@pcampus.edu.np 
wrote:

> Warm Greetings!,
> I am trying to import .msh file that I have created in CUBIT in step-17. 
> However, the code doesn't read the file and produces following error:
> [image: Screenshot from 2022-12-06 21-15-16.png]
> Do i need to manually modify the contents in file before importing into 
> the code? If so, how can i do that?
> Thanks
> Himal.
>

-- 
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/bc9262ab-4258-4032-b839-bb9e78d75a41n%40googlegroups.com.


[deal.II] Importing .msh file from CUBIT

2022-12-06 Thread HIMAL MAGAR
Warm Greetings!,
I am trying to import .msh file that I have created in CUBIT in step-17. 
However, the code doesn't read the file and produces following error:
[image: Screenshot from 2022-12-06 21-15-16.png]
Do i need to manually modify the contents in file before importing into the 
code? If so, how can i do that?
Thanks
Himal.

-- 
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/b003137d-78e5-4ed4-bb8c-18a5bf5066d7n%40googlegroups.com.


Re: [deal.II] How do I set initial solution vector to boundary values in DG?

2022-12-06 Thread Wolfgang Bangerth

On 12/5/22 07:21, Abbas wrote:



Prof. Bangerth, I probably wasn't clear in my question. I know how to apply 
BCs for an interior penalty problem weakly.
But, for a non-linear problem like step 15, one initialises the solution 
vector and sets it to the value of the BCs at the boundary before solving for 
the Newton update. This is done explicitly in function 'set_boundary_values()' 
in step 15 with the function 'VectorTools::interpolate_boundary_values 
'.
I cannot use this function with DG elements apparently and I am wondering if 
there are any alternatives.


I see now. In that case, like Timo Heister said, the boundary conditions are 
part of the weak form of the problem. The weak form is the residual that gives 
you the right hand side of the Newton steps, and the derivative of the 
residual gives you the Newton matrix. This is definitely the way to go.


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/26bc765c-ba0d-11b6-d0de-1669e375335c%40colostate.edu.