each surface has 32*32 cells. On Saturday, July 1, 2023 at 12:10:06 PM UTC+2 Lance Zhang wrote:
> Hello, > > I updated some parts in cook_membrance.cc to fulfill requests. > > But after updating I have one issue.Normally the rectangle has 6 surfaces > and control points on each surface as while.In my updated code,I can only > see control point in two surfaces. > > May I know which parts in code I should change? > > [image: image_2023-07-01_120629896.png] > [image: Screenshot from 2023-07-01 11-57-07.png] > > Here is the code from cc file. > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > 1096 template <int dim,typename NumberType> > 1097 void Solid<dim,NumberType>::make_grid() > 1098 { > 1099 // Divide the beam, but only along the x- and y-coordinate > directions > 1100 std::vector< unsigned int > repetitions(dim, > parameters.elements_per_edge); > 1101 // Only allow one element through the thickness > 1102 // (modelling a plane strain condition) > 1103 if (dim == 3){ > 1104 repetitions[dim-1] = 1; > 1105 > 1106 //repetitions[0] = 0; > 1107 //repetitions[1] = 0; > 1108 //repetitions[2] = 1; > 1109 } > 1110 // const Point<dim> bottom_left = (dim == 3 ? Point<dim>(0.0, 0.0, > -0.5) : Point<dim>(0.0, 0.0)); > 1111 // const Point<dim> top_right = (dim == 3 ? Point<dim>(48.0, 44.0, > 0.5) : Point<dim>(48.0, 44.0)); > 1112 const Point<dim> top_right =Point<dim>(0.0, 0.0, -10); > 1113 const Point<dim> bottom_left =Point<dim>(40,20, 10); > 1114 GridGenerator::subdivided_hyper_rectangle(triangulation, > 1115 repetitions, > 1116 bottom_left, > 1117 top_right); > 1118 > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > Can anyone provide any hint or suggestions? > Thanks in advance! > 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/31e05843-01ee-4db0-a04a-da0215485c5en%40googlegroups.com.