📄 edge_inf_edge2.c
字号:
// $Id: edge_inf_edge2.C 2789 2008-04-13 02:24:40Z roystgnr $// The libMesh Finite Element Library.// Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version. // This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details. // You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA// Local includes#include "libmesh_config.h"#ifdef ENABLE_INFINITE_ELEMENTS#include "edge_inf_edge2.h"// ------------------------------------------------------------// InfEdge2 class member functionsbool InfEdge2::is_vertex(const unsigned int i) const{ if (i) return false; return true;}bool InfEdge2::is_edge(const unsigned int i) const{ if (i) return true; return false;}bool InfEdge2::is_face(const unsigned int) const{ return false;}bool InfEdge2::is_node_on_side(const unsigned int n, const unsigned int s) const{ libmesh_assert(s < 1); return (s == n);}bool InfEdge2::is_node_on_edge(const unsigned int, const unsigned int e) const{ libmesh_assert(e == 0); return true;}void InfEdge2::connectivity(const unsigned int se, const IOPackage iop, std::vector<unsigned int>& conn) const{ libmesh_assert (se == 0); libmesh_assert (se < this->n_sub_elem()); libmesh_assert (iop != INVALID_IO_PACKAGE); conn.resize(2); switch (iop) { case TECPLOT: { conn[0] = this->node(0)+1; conn[1] = this->node(1)+1; return; } case VTK: { conn[0] = this->node(0); conn[1] = this->node(1); return; } default: libmesh_error(); } libmesh_error();}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -