http://people.sc.fsu.edu/~jburkardt/classes/d2_2016/assignments.html
nonzeros band before band after reordering reordering linear ??? ??? ??? quadratic ??? ??? ??? cubic ??? ??? ???Turn in your report by Tuesday, May 31.
std::cout << "Solution at (1/3,1/3): " << VectorTools::point_value (dof_handler, solution, Point<2>(1./3, 1./3)) << std::endl;Now print out the solution value at (1/3,1/3) for each of 9 global refinement steps. We expect to see a list of values that seem to be converging.
std::cout << "Mean value: " << VectorTools::compute_mean_value (dof_handler, QGauss<2>(3), solution, 0) << std::endl;and use it to make a table of the mean value of the solution over the whole domain, for each of 9 successive refinement steps.
# include <deal.II/grid/grid_out.h>
for (unsigned int cycle=0; cycle<6; ++cycle) {to this (change 6 to 1, and add three lines of text):
for (unsigned int cycle=0; cycle<1; ++cycle) { std::ofstream out ("ucd.eps"); GridOut grid_out; grid_out.write_eps (triangulation, out);Run step-5, which should create the file "ucd.eps".
$MeshFormat 2.2 0 8 $EndMeshFormat $Nodes ??? <-- Number of nodes 1 x1 y1 z1 <-- Index, x, y, z of first node 2 x2 y2 z1 <-- Index, x, y, z of second node ... $EndNodes $Elements ??? <-- Number of elements 1 3 0 n1 n2 n3 n3 <-- Index, 3, 0, node1, node2, node3, node4 2 3 0 n1 n2 n3 n4 <-- Index, 3, 0, node1, node2, node3, node4 ... $EndElements
void Step5<dim>::run () { GridIn<dim> grid_in; grid_in.attach_triangulation (triangulation); std::ifstream input_file("circle-grid.msh");and change from "read_ucd" to "read_msh":
grid_in.read_msh ( input_file );and rename your output file image of the grid:
std::ofstream out ("msh.eps"); GridOut grid_out; grid_out.write_eps (triangulation, out);Rerun step-5, which should create the output file "msh.eps".
You can return to the D2 2016 web page.