Hello  Daniel,

thanks for your message.

With the link I have created  rectangular cuboid and using 
subdivided_hyper_rectangle() I got points rectangular cuboid in as well.

But I still have one question.

If I want to describe a deformation when the rectangular cuboid  object 
receives a force F , how could I control the mesh moving during the force 
deformation ? Should I use cell or node in the surface of  rectangular 
cuboid to represent the displacement?I s there any function in dealII for 
mesh control?

Thanks in advance!
Best regards
Lance


On Friday, June 9, 2023 at 3:57:08 PM UTC+2 d.arnd...@gmail.com wrote:

> Lance,
>
> Have a look at the documentation for 
> GridGenerator::subdivided_hyper_recyangle (
> https://www.dealii.org/current/doxygen/deal.II/namespaceGridGenerator.html#ac76417d7404b75cf53c732f456e6e971
> ).
> You need to specify the coordinates of the corner with the lowest 
> coordinates in all space dimensions, the corner with the highest 
> coordinates in all space dimensions, as well as the subdivisions for all 
> space dimensions.
>
> Best,
> Daniel
>
> On Fri, Jun 9, 2023 at 5:27 AM Lance Zhang <dim...@gmail.com> wrote:
>
>> Hello,
>>
>> I am a novice in dealII and I am interested in dealII.
>>
>> Currently, I am trying to use the code of cook_membrane.cc to create  a 
>> cantilever.
>> Please take a look at the link for your reference.
>>
>> https://www.dealii.org/current/doxygen/deal.II/code_gallery_Quasi_static_Finite_strain_Compressible_Elasticity.html
>>
>> 1)May I know how I could create a Rectangular cuboid like the object a) 
>> below? and then change the Rectangular  into a mesh?
>>
>>
>> [image: image_2023-06-09_111218320.png]
>>
>> 2)I tried to configure the parameter of const Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html> 
>> top_right = (dim == 3 ? Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html>(48.0, 
>> 44.0, 0.5) : Point 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html><dim>(48.0,
>>  
>> 44.0)) ,but I got failed information.
>>
>>
>>
>> template <int dim,typename NumberType>
>> void Solid<dim,NumberType>::make_grid()
>> {
>>
>> Divide the beam, but only along the x- and y-coordinate directions
>> std::vector< unsigned int > repetitions(dim, 
>> parameters.elements_per_edge);
>>
>> Only allow one element through the thickness (modelling a plane strain 
>> condition)
>> if (dim == 3)
>> repetitions[dim-1] = 1;
>> const Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html> 
>> bottom_left = (dim == 3 ? Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html>(0.0, 
>> 0.0, -0.5) : Point 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html><dim>(0.0, 
>> 0.0));
>> const Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html> 
>> top_right = (dim == 3 ? Point<dim> 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html>(48.0, 
>> 44.0, 0.5) : Point 
>> <https://www.dealii.org/developer/doxygen/deal.II/classPoint.html><dim>(48.0,
>>  
>> 44.0));
>> GridGenerator::subdivided_hyper_rectangle 
>> <https://www.dealii.org/developer/doxygen/deal.II/namespaceGridGenerator.html#ac76417d7404b75cf53c732f456e6e971>
>> (triangulation 
>> <https://www.dealii.org/developer/doxygen/deal.II/p4est__wrappers_8cc.html#ace00f2f80d9780ef9aa1007e1c22c6a4>
>> ,
>> repetitions,
>> bottom_left,
>> top_right);
>> [image: image_2023-06-09_112028575.png]n In the code lines:
>> 1067  template <int dim,typename NumberType>
>> 1068   void Solid<dim,NumberType>::make_grid()
>> 1069   {
>> 1070     // Divide the beam, but only along the x- and y-coordinate 
>> directions
>> 1071     std::vector< unsigned int > repetitions(dim, 
>> parameters.elements_per_edge);
>> 1072     // Only allow one element through the thickness
>> 1073     // (modelling a plane strain condition)
>> 1074     if (dim == 3)
>> 1075       repetitions[dim-1] = 1;
>> 1076 
>> 1077     const Point<dim> bottom_left = (dim == 3 ? Point<dim>(0.0, 0.0, 
>> -0.9) : Point<dim>(0.0, 0.0));
>> 1078     const Point<dim> top_right = (dim == 3 ? Point<dim>(48.0, 44.0, 
>> 20) : Point<dim>(48.0, 44.0));
>>
>>
>> Could anyone provide any hint or suggestions?
>>
>> Thank you in advance!
>>
>> Best regards
>> Lance
>>
>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/7debea34-8d99-4716-8e73-c62370efea69n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/dealii/7debea34-8d99-4716-8e73-c62370efea69n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/a31777e6-d69e-49be-ad86-2dcd7b5fe7c1n%40googlegroups.com.

Reply via email to