You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Hi Everyone,
Here, I have attempted to add the Neumann boundary conditions (forces) to the 2D elasticity problem. Now I can see that the top two layers of grids are under force. The force on the top layer is smaller than that on the second layer. please see my attachment figure.
My question is: should there be one layer or not in the boundary layer? If it is only one layer, why did I get these results?
Here is my code:
for (; cell!=endc; ++cell){ cell_matrix = 0; cell_rhs = 0;
int traction_surface_id = 7; for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face) if (cell->face(face)->at_boundary() && cell->face(face)->boundary_id() == traction_surface_id) { fe_face_values.reinit(cell, face); boundary_force_neumann.vector_value_list(fe_face_values.get_quadrature_points(), boundary_force_values);
for (unsigned int q_point=0; q_point<n_face_q_points; ++q_point) { for (unsigned int i = 0; i < dofs_per_cell; ++i) { const unsigned int component_i = fe.system_to_component_index(i).first; // if (component_i==1) cell_rhs(i) += fe_values.shape_value(i,q_point) * boundary_force_values[q_point][component_i]* // neumann_value[0][component_i]* fe_values.JxW(q_point); } } }