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?
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