⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex8.php

📁 一个用来实现偏微分方程中网格的计算库
💻 PHP
📖 第 1 页 / 共 4 页
字号:
The penalty parameter.</div><div class ="fragment"><pre>                  const Real penalty = 1.e10;        </pre></div><div class = "comment">Here we apply sinusoidal pressure values for 0<t<0.002at one end of the pipe-mesh.</div><div class ="fragment"><pre>                  Real p_value;        	  if (current_time &lt; .002 )        	    p_value = sin(2*pi*current_time/.002);        	  else        	    p_value = .0;        </pre></div><div class = "comment">Now add the contributions to the matrix and the rhs.</div><div class ="fragment"><pre>                  rhs.add(dn, p_value*penalty);        </pre></div><div class = "comment">Add the panalty parameter to the global matrixif desired.</div><div class ="fragment"><pre>                  if (do_for_matrix)        	    matrix.add(dn, dn, penalty);        	}            } // loop n_cnt        }</pre></div><a name="nocomments"></a> <br><br><br> <h1> The program without comments: </h1> <pre>     #include &lt;iostream&gt;  #include &lt;fstream&gt;  #include &lt;algorithm&gt;  #include &lt;stdio.h&gt;  #include &lt;math.h&gt;    #include <B><FONT COLOR="#BC8F8F">&quot;libmesh.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;mesh.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;gmv_io.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;newmark_system.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;equation_systems.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;fe.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;quadrature_gauss.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;dense_matrix.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;dense_vector.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;sparse_matrix.h&quot;</FONT></B>  #include <B><FONT COLOR="#BC8F8F">&quot;numeric_vector.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;dof_map.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;node.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;elem.h&quot;</FONT></B>    #include <B><FONT COLOR="#BC8F8F">&quot;mesh_data.h&quot;</FONT></B>    <B><FONT COLOR="#228B22">void</FONT></B> assemble_wave(EquationSystems&amp; es,  		   <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name);      <B><FONT COLOR="#228B22">void</FONT></B> apply_initial(EquationSystems&amp; es,  		   <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name);    <B><FONT COLOR="#228B22">void</FONT></B> fill_dirichlet_bc(EquationSystems&amp; es,  		       <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name);    <B><FONT COLOR="#228B22">int</FONT></B> main (<B><FONT COLOR="#228B22">int</FONT></B> argc, <B><FONT COLOR="#228B22">char</FONT></B>** argv)  {    <B><FONT COLOR="#5F9EA0">libMesh</FONT></B>::init (argc, argv);      {      <B><FONT COLOR="#A020F0">if</FONT></B> (argc &lt; 2)        {  	<B><FONT COLOR="#5F9EA0">std</FONT></B>::cerr &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;Usage: &quot;</FONT></B> &lt;&lt; argv[0] &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot; [meshfile]&quot;</FONT></B>  		  &lt;&lt; std::endl;  	  	error();        }            <B><FONT COLOR="#A020F0">else</FONT></B>         {  	<B><FONT COLOR="#5F9EA0">std</FONT></B>::cout &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;Running &quot;</FONT></B> &lt;&lt; argv[0];  	  	<B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">int</FONT></B> i=1; i&lt;argc; i++)  	  <B><FONT COLOR="#5F9EA0">std</FONT></B>::cout &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot; &quot;</FONT></B> &lt;&lt; argv[i];  	  	<B><FONT COLOR="#5F9EA0">std</FONT></B>::cout &lt;&lt; std::endl &lt;&lt; std::endl;          }    #ifdef HAVE_PETSC      <B><FONT COLOR="#A020F0">if</FONT></B> ((libMesh::on_command_line(<B><FONT COLOR="#BC8F8F">&quot;--use-laspack&quot;</FONT></B>)) ||  	(libMesh::on_command_line(<B><FONT COLOR="#BC8F8F">&quot;--disable-petsc&quot;</FONT></B>)))  #endif        {  	<B><FONT COLOR="#5F9EA0">std</FONT></B>::cerr &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;WARNING! It appears you are using the\n&quot;</FONT></B>  		  &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;LasPack solvers.  ex8 is known not to converge\n&quot;</FONT></B>  		  &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;using LasPack, but should work OK with PETSc.\n&quot;</FONT></B>  		  &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;If possible, download and install the PETSc\n&quot;</FONT></B>  		  &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;library from www-unix.mcs.anl.gov/petsc/petsc-2/\n&quot;</FONT></B>  		  &lt;&lt; std::endl;        }            <B><FONT COLOR="#5F9EA0">std</FONT></B>::string mesh_file = argv[1];      <B><FONT COLOR="#5F9EA0">std</FONT></B>::cout &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;Mesh file is: &quot;</FONT></B> &lt;&lt; mesh_file &lt;&lt; std::endl;        <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> dim = 3;        Mesh mesh (dim);      MeshData mesh_data(mesh);            mesh.read(mesh_file, &amp;mesh_data);               mesh.print_info();        <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> result_node = 274;              <B><FONT COLOR="#228B22">const</FONT></B> Real delta_t = .0000625;        <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> n_time_steps = 300;            EquationSystems equation_systems (mesh);        {        equation_systems.add_system&lt;NewmarkSystem&gt; (<B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);          NewmarkSystem &amp; t_system = equation_systems.get_system&lt;NewmarkSystem&gt; (<B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);                t_system.add_variable(<B><FONT COLOR="#BC8F8F">&quot;p&quot;</FONT></B>, FIRST);          t_system.attach_assemble_function  (assemble_wave);        t_system.attach_init_function      (apply_initial);            t_system.set_newmark_parameters(delta_t);          equation_systems.parameters.set&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;speed&quot;</FONT></B>)          = 1000.;        equation_systems.parameters.set&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;fluid density&quot;</FONT></B>)  = 1000.;          equation_systems.parameters.set&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;time&quot;</FONT></B>)           = 0.;          equation_systems.init();          equation_systems.print_info();      }        <B><FONT COLOR="#5F9EA0">std</FONT></B>::ofstream res_out(<B><FONT COLOR="#BC8F8F">&quot;pressure_node.res&quot;</FONT></B>);        <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> res_node_no = result_node;      <B><FONT COLOR="#228B22">const</FONT></B> Node&amp; res_node = mesh.node(res_node_no-1);      <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> dof_no = res_node.dof_number(0,0,0);        NewmarkSystem&amp; t_system = equation_systems.get_system&lt;NewmarkSystem&gt; (<B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);               t_system.assemble();        Real t_time = 0.;      res_out &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;# pressure at node &quot;</FONT></B> &lt;&lt; res_node_no &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;\n&quot;</FONT></B>  	    &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;# time\tpressure\n&quot;</FONT></B>  	    &lt;&lt; t_time &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;\t&quot;</FONT></B> &lt;&lt; 0 &lt;&lt; std::endl;          <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> time_step=0; time_step&lt;n_time_steps; time_step++)        {  	t_time += delta_t;  	equation_systems.parameters.set&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;time&quot;</FONT></B>)  = t_time;    	t_system.update_rhs();    	<B><FONT COLOR="#A020F0">if</FONT></B> (time_step == 0)  	  {  	    equation_systems.parameters.set&lt;<B><FONT COLOR="#228B22">bool</FONT></B>&gt;(<B><FONT COLOR="#BC8F8F">&quot;Newmark set BC for Matrix&quot;</FONT></B>) = true;    	    fill_dirichlet_bc(equation_systems, <B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);    	    equation_systems.parameters.set&lt;<B><FONT COLOR="#228B22">bool</FONT></B>&gt;(<B><FONT COLOR="#BC8F8F">&quot;Newmark set BC for Matrix&quot;</FONT></B>) = false;  	  }  	<B><FONT COLOR="#A020F0">else</FONT></B>  	  fill_dirichlet_bc(equation_systems, <B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);    	t_system.solve();    	<B><FONT COLOR="#A020F0">if</FONT></B> (time_step == 30 || time_step == 60 ||  	    time_step == 90 || time_step == 120 )  	  {  	    <B><FONT COLOR="#228B22">char</FONT></B> buf[14];  	    sprintf (buf, <B><FONT COLOR="#BC8F8F">&quot;out.%03d.gmv&quot;</FONT></B>, time_step);  	    GMVIO(mesh).write_equation_systems (buf,  						equation_systems);  	  }    	t_system.update_u_v_a();            NumericVector&lt;Number&gt; &amp;displacement            = t_system.get_vector(<B><FONT COLOR="#BC8F8F">&quot;displacement&quot;</FONT></B>);          <B><FONT COLOR="#5F9EA0">std</FONT></B>::vector&lt;Number&gt; global_displacement(displacement.size());          displacement.localize(global_displacement);            res_out &lt;&lt; t_time &lt;&lt; <B><FONT COLOR="#BC8F8F">&quot;\t&quot;</FONT></B>  		&lt;&lt; global_displacement[dof_no]  		&lt;&lt; std::endl;        }    }        <B><FONT COLOR="#A020F0">return</FONT></B> libMesh::close ();  }    <B><FONT COLOR="#228B22">void</FONT></B> assemble_wave(EquationSystems&amp; es,  		   <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name)  {      assert (system_name == <B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);      <B><FONT COLOR="#228B22">const</FONT></B> Mesh&amp; mesh = es.get_mesh();      <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> dim = mesh.mesh_dimension();      <B><FONT COLOR="#228B22">const</FONT></B> Real speed = es.parameters.get&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;speed&quot;</FONT></B>);    <B><FONT COLOR="#228B22">const</FONT></B> Real rho   = es.parameters.get&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;fluid density&quot;</FONT></B>);      NewmarkSystem &amp; t_system = es.get_system&lt;NewmarkSystem&gt; (system_name);      FEType fe_type = t_system.get_dof_map().variable_type(0);      SparseMatrix&lt;Number&gt;&amp;   stiffness = t_system.get_matrix(<B><FONT COLOR="#BC8F8F">&quot;stiffness&quot;</FONT></B>);    SparseMatrix&lt;Number&gt;&amp;   damping   = t_system.get_matrix(<B><FONT COLOR="#BC8F8F">&quot;damping&quot;</FONT></B>);    SparseMatrix&lt;Number&gt;&amp;   mass      = t_system.get_matrix(<B><FONT COLOR="#BC8F8F">&quot;mass&quot;</FONT></B>);      NumericVector&lt;Number&gt;&amp;  force     = t_system.get_vector(<B><FONT COLOR="#BC8F8F">&quot;force&quot;</FONT></B>);      SparseMatrix&lt;Number&gt;&amp;  matrix     = *t_system.matrix;    DenseMatrix&lt;Number&gt;    zero_matrix;      AutoPtr&lt;FEBase&gt; fe (FEBase::build(dim, fe_type));        QGauss qrule (dim, SECOND);      fe-&gt;attach_quadrature_rule (&amp;qrule);      <B><FONT COLOR="#228B22">const</FONT></B> std::vector&lt;Real&gt;&amp; JxW = fe-&gt;get_JxW();      <B><FONT COLOR="#228B22">const</FONT></B> std::vector&lt;std::vector&lt;Real&gt; &gt;&amp; phi = fe-&gt;get_phi();      <B><FONT COLOR="#228B22">const</FONT></B> std::vector&lt;std::vector&lt;RealGradient&gt; &gt;&amp; dphi = fe-&gt;get_dphi();      <B><FONT COLOR="#228B22">const</FONT></B> DofMap&amp; dof_map = t_system.get_dof_map();      DenseMatrix&lt;Number&gt;   Ke, Ce, Me;    DenseVector&lt;Number&gt;   Fe;      <B><FONT COLOR="#5F9EA0">std</FONT></B>::vector&lt;<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B>&gt; dof_indices;        <B><FONT COLOR="#5F9EA0">MeshBase</FONT></B>::const_element_iterator       el     = mesh.elements_begin();    <B><FONT COLOR="#228B22">const</FONT></B> MeshBase::const_element_iterator end_el = mesh.elements_end();        <B><FONT COLOR="#A020F0">for</FONT></B> ( ; el != end_el; ++el)      {        <B><FONT COLOR="#228B22">const</FONT></B> Elem* elem = *el;          dof_map.dof_indices (elem, dof_indices);          fe-&gt;reinit (elem);          {          <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> n_dof_indices = dof_indices.size();    	Ke.resize          (n_dof_indices, n_dof_indices);  	Ce.resize          (n_dof_indices, n_dof_indices);  	Me.resize          (n_dof_indices, n_dof_indices);  	zero_matrix.resize (n_dof_indices, n_dof_indices);  	Fe.resize          (n_dof_indices);        }          <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> qp=0; qp&lt;qrule.n_points(); qp++)  	{  	  <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> i=0; i&lt;phi.size(); i++)  	    <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> j=0; j&lt;phi.size(); j++)  	      {  		Ke(i,j) += JxW[qp]*(dphi[i][qp]*dphi[j][qp]);  		Me(i,j) += JxW[qp]*phi[i][qp]*phi[j][qp]  		           *1./(speed*speed);  	      } <I><FONT COLOR="#B22222">// end of the matrix summation loop	  </FONT></I>  	} <I><FONT COLOR="#B22222">// end of quadrature point loop</FONT></I>          {  	<B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> side=0; side&lt;elem-&gt;n_sides(); side++)  	  <B><FONT COLOR="#A020F0">if</FONT></B> (!true)  	    {  	      AutoPtr&lt;FEBase&gt; fe_face (FEBase::build(dim, fe_type));  	        	      QGauss qface(dim-1, SECOND);  	        	      fe_face-&gt;attach_quadrature_rule (&amp;qface);  	        	      <B><FONT COLOR="#228B22">const</FONT></B> std::vector&lt;std::vector&lt;Real&gt; &gt;&amp;  phi_face = fe_face-&gt;get_phi();  	        	      <B><FONT COLOR="#228B22">const</FONT></B> std::vector&lt;Real&gt;&amp; JxW_face = fe_face-&gt;get_JxW();  	        	      fe_face-&gt;reinit(elem, side);    	      <B><FONT COLOR="#228B22">const</FONT></B> Real acc_n_value = 1.0;  	        	      <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> qp=0; qp&lt;qface.n_points(); qp++)  		{  		  <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> i=0; i&lt;phi_face.size(); i++)  		    {  		      Fe(i) += acc_n_value*rho  			*phi_face[i][qp]*JxW_face[qp];  		    }  		} <I><FONT COLOR="#B22222">// end face quadrature point loop	  </FONT></I>  	    } <I><FONT COLOR="#B22222">// end if (elem-&gt;neighbor(side) == NULL)</FONT></I>  	  	        } <I><FONT COLOR="#B22222">// end boundary condition section	  </FONT></I>          stiffness.add_matrix (Ke, dof_indices);        damping.add_matrix   (Ce, dof_indices);        mass.add_matrix      (Me, dof_indices);                force.add_vector     (Fe, dof_indices);              matrix.add_matrix(zero_matrix, dof_indices);            } <I><FONT COLOR="#B22222">// end of element loop</FONT></I>        <B><FONT COLOR="#A020F0">return</FONT></B>;  }    <B><FONT COLOR="#228B22">void</FONT></B> apply_initial(EquationSystems&amp; es,  		   <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name)  {    NewmarkSystem &amp; t_system = es.get_system&lt;NewmarkSystem&gt; (system_name);        NumericVector&lt;Number&gt;&amp;  pres_vec       = t_system.get_vector(<B><FONT COLOR="#BC8F8F">&quot;displacement&quot;</FONT></B>);    NumericVector&lt;Number&gt;&amp;  vel_vec        = t_system.get_vector(<B><FONT COLOR="#BC8F8F">&quot;velocity&quot;</FONT></B>);    NumericVector&lt;Number&gt;&amp;  acc_vec        = t_system.get_vector(<B><FONT COLOR="#BC8F8F">&quot;acceleration&quot;</FONT></B>);      pres_vec.zero();    vel_vec.zero();    acc_vec.zero();  }    <B><FONT COLOR="#228B22">void</FONT></B> fill_dirichlet_bc(EquationSystems&amp; es,  		       <B><FONT COLOR="#228B22">const</FONT></B> std::string&amp; system_name)  {    assert (system_name == <B><FONT COLOR="#BC8F8F">&quot;Wave&quot;</FONT></B>);      NewmarkSystem &amp; t_system = es.get_system&lt;NewmarkSystem&gt; (system_name);      SparseMatrix&lt;Number&gt;&amp;  matrix = *t_system.matrix;    NumericVector&lt;Number&gt;&amp; rhs    = *t_system.rhs;      <B><FONT COLOR="#228B22">const</FONT></B> Mesh&amp; mesh = es.get_mesh();      <B><FONT COLOR="#228B22">const</FONT></B> Real pi = libMesh::pi;      <B><FONT COLOR="#228B22">const</FONT></B> <B><FONT COLOR="#228B22">bool</FONT></B> do_for_matrix =      es.parameters.get&lt;<B><FONT COLOR="#228B22">bool</FONT></B>&gt;(<B><FONT COLOR="#BC8F8F">&quot;Newmark set BC for Matrix&quot;</FONT></B>);      <B><FONT COLOR="#228B22">const</FONT></B> Real current_time = es.parameters.get&lt;Real&gt;(<B><FONT COLOR="#BC8F8F">&quot;time&quot;</FONT></B>);      <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> n_nodes = mesh.n_nodes();      <B><FONT COLOR="#A020F0">for</FONT></B> (<B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> n_cnt=0; n_cnt&lt;n_nodes; n_cnt++)      {        <B><FONT COLOR="#228B22">const</FONT></B> Node&amp; curr_node = mesh.node(n_cnt);          <B><FONT COLOR="#228B22">const</FONT></B> Real z_coo = 4.;          <B><FONT COLOR="#A020F0">if</FONT></B> (fabs(curr_node(2)-z_coo) &lt; TOLERANCE)  	{  	  <B><FONT COLOR="#228B22">unsigned</FONT></B> <B><FONT COLOR="#228B22">int</FONT></B> dn = curr_node.dof_number(0,0,0);    	  <B><FONT COLOR="#228B22">const</FONT></B> Real penalty = 1.e10;    	  Real p_value;  	  <B><FONT COLOR="#A020F0">if</FONT></B> (current_time &lt; .002 )  	    p_value = sin(2*pi*current_time/.002);  	  <B><FONT COLOR="#A020F0">else</FONT></B>  	    p_value = .0;    	  rhs.add(dn, p_value*penalty);    	  <B><FONT COLOR="#A020F0">if</FONT></B> (do_for_matrix)  	    matrix.add(dn, dn, penalty);  	}      } <I><FONT COLOR="#B22222">// loop n_cnt</FONT></I>  }</pre> <a name="output"></a> <br><br><br> <h1> The console output of the program: </h1> <pre>**************************************************************** Running Example  ./ex8-devel pipe-mesh.unv*************************************************************** Running ./ex8-devel pipe-mesh.unvMesh file is: pipe-mesh.unv Mesh Information:  mesh_dimension()=3  spatial_dimension()=3  n_nodes()=3977  n_elem()=3520   n_local_elem()=3520   n_active_elem()=3520  n_subdomains()=1  n_processors()=1  processor_id()=0 EquationSystems  n_systems()=1   System "Wave"    Type "Newmark"    Variables="p"     Finite Element Types="LAGRANGE"     Approximation Orders="FIRST"     n_dofs()=3977    n_local_dofs()=3977    n_constrained_dofs()=0    n_vectors()=9 **************************************************************** Done Running Example  ./ex8-devel pipe-mesh.unv***************************************************************</pre></div><?php make_footer() ?></body></html><?php if (0) { ?>\#Local Variables:\#mode: html\#End:<?php } ?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -